Fandom

Minecraft Mod Custom Stuff Wiki

Throwable Bomb

175pages on
this wiki
Add New Page
Comments4 Share
CS1 Custom Stuff 1

Information presented below this line is outdated syntax or information used for Custom Stuff 1. It will not work with Custom Stuff 2.

Dinamite

This is how you can make a thrown bomb in customstuff. First, the basics:

name="example bomb";
id=230;
type="grenade";
iconfile="customstuff.png";
iconindex=0;

You can change name, id, texturefile and textureindex to what you are using. This is just an example.

Now for the "bomb" part:

grenadetime=50;    //measured in ticks so 50/20=2.5 seconds delay
grenadethrowforce=1.0;  //how hard you throw the grenade (default value used)
explode="world.createExplosion(origin,3);";
bounce="0.5";

The grenadetime attribute is an amount of delay between when the grenade is thrown to when the explode event occurs. The measurement for grenadetime is a tick and there are normally 20 ticks per second. The grenadethrowforce attribute will determine how hard you throw the grenade. The higher this is, the farther it is thrown. It is a good idea to set grenadethrowforce to a higher value if you plan to use a powerful explosion. This will create an explosion of strength 3 at the place you threw the bomb. You can change the 3 to something else if you want a more or less powerful bomb. The bounce isn't necessary, but if you do not use it it will be set to the default bounciness.

You could also create a lightning bomb like so:

explode="world.createThunderbolt(origin);";

Replace the other explode trigger with this to make it a lightning bomb.

Now, go and destroy your world with custom bombs!

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.