Started by
RoboMan
on
Topic category: Help with Minecraft modding (Java Edition)
The title might sound a bit confusing, but I will try my best to explain it better. I have a custom block (I'll call Block 0 to avoid confusion) that kills you when you step on it. I have 13 other custom blocks (I'll call Blocks 1 - 13) that I want to have a random chance of spawning when an entity is killed by Block 0. For example, when an entity dies to Block 0, there is a 1/13 chance of Block 7 being spawned. I would also like Blocks 1 - 13 to only spawn once. How would I do this?
player dies
if block at X Y - 1 Z = Block 0
do if random 0, 1 =< 0.13
do place at X Y Z
else if random 0, 1 =< 0.13
etc etc etc
Wouldn't using the global trigger "Player dies" mean that regardless of how they die, it will spawn a block?
then why not put it next to your procedure to kill the player on block triggers
there is no longer a "player dies" trigger. Is there a replacement, or did I just miss it?
Entity is killed maybe?
Then you can check if the entity that died is a player.