Started by
minecraftepic
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make napalm (which is a fluid) and i want it to set blocks around it on fire, is there i way i can do this?
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make napalm (which is a fluid) and i want it to set blocks around it on fire, is there i way i can do this?
Use a few "Execute Command" blocks with commands: "/fill ~-1 ~ ~-1 ~1 ~ ~1 fire replace air", "/fill ~-1 ~ ~-1 ~1 ~ ~1 fire replace grass"
Or (in on tick update procedure):
int varRandX = 1-(random_inclusive(0, 1) * 3)
int varRandZ = 1-(random_inclusive(0, 1) * 3)
if (random_inclusive(0,4000)==0&&getblock(varRandX, varRandZ) in tag("yourmodid:block_fire_replacables")) {
setblock(varRandX, [BLOCK_Y], varRandZ, fire)
}
btw the procedure code shouldn't be put in the code editor, interpret the code to procedure blocks.
sorry but ,could you simply the procedure because i cant really read that
Here is the link, the variable "_Y" and the functions "Get Block" and "Set Block" are placeholders:
https://www.jdoodle.com/ia/1OaV
New Link (Use this over the other one supplied!): https://www.jdoodle.com/ia/1Ob5