Started by
carnivowrist
on
Topic category: Help with Minecraft modding (Java Edition)
i made a procedure for an item in which it has 80% chance to play a sound when an entity is attacked with it, and 20% to deal double the original damage, make some particles, and choose between 4 sounds to play
except something is off, its supposed to do either this or that but it seems like it mixes some of the things it can do, like sometimes it would just make particles and a noise but no additional damage, like it picks different stuff from 20% and 80%
this is what the procedure looks like https://ibb.co/sdbpKFd7
I think your "else if" blocks instead need to be separate "If do" blocks for each variable. I'll link my procedure that is similar. What this one is for a sound triggered spawner and for each trigger it will select one of 3 mobs to be spawned. This method is somewhat similar to a loot table. Each mob has a set rarity of their spawning
https://ibb.co/twQPNGYc