I use custom stuff and got a mod that adds the following - Cobalt, Mythril, Titanium, Hellfire and lastly Adamantite. I want some of the things to be able to have a very low chance to explode but...I dont know how to, i cant find a java scripting tutorial or any commands. Ive searched everywhere but no luck...can you help?
Edit: BTW srry for the off-topic, mod looks cool. Adds danger more danger to minecraft. We need more traps and stuff for mc.
you need this to put this code below into a script file in the functions folder
RandomExplode = Math.floor((10-0)*Math.random()) + 1;
// draws a random number between 1 and 10
if (RandomExplode <= 3)
// triggers the block to explode when less than or equal to 3, should be less than or equal since the number would be
// something like 2.45245433
{
world.createExplosion(origin,2);
}
i would like to make magnesium and program it to randomly explode when mined.
how would i make the get random function draw a number between 1 and 10 and if if the number drawled was say 4 and the number required to make the statement true was 4
then the function would run another function to make the block explode
This custom stuff mod you created has now reached the potential to become a minecraft software development kit
i would highly recommend you start a SDK with what you have created with custom stuff
the only thing is you would have to release the source code with a Software Development Kit since if it is closed source it is not a Software development kit since multiple people have to work together on the same source code to make a good SDK.
you create a open sourced Minecraft SDK, it has the potential to become the #1 Mod on the forums.
i heard that the forums may soon require that all mods will have to release their source code. (all mods may have to be released as open source due to some picky issues with the original game related to copyright ect.)
0
This stuff may blow you to kingdom come if you mine it
0
0
you need this to put this code below into a script file in the functions folder
0
They get their legs blown off!!
0
Magnesium in Minecraft
0
Magnesium in Minecraft
0
Magnesium in Minecraft
0
It Looks Just like Coal...
Some poor Miner is going to think this is coal and mine it and suddenly... BOOM!!!
They get their legs blown off!!
0
it now randomly explodes when mined
now how would i code it to make any neighboring blocks that where made from the same block id explode when the first one exploded
0
the game is crashing
0
everything works fine up until the point i create the script to make the magnesium explode
this is all i typed into the script file
0
how would i make the get random function draw a number between 1 and 10 and if if the number drawled was say 4 and the number required to make the statement true was 4
then the function would run another function to make the block explode
0
0
This custom stuff mod you created has now reached the potential to become a minecraft software development kit
i would highly recommend you start a SDK with what you have created with custom stuff
the only thing is you would have to release the source code with a Software Development Kit since if it is closed source it is not a Software development kit since multiple people have to work together on the same source code to make a good SDK.
you create a open sourced Minecraft SDK, it has the potential to become the #1 Mod on the forums.
0
also you need to get liquids into this mod.