Started by
PairOfPiplups
on
Topic category: Help with Minecraft modding (Java Edition)
I'm creating a Prop Hunt mod that lets you place the block in your hand where you're standing. You press a keybind and the block spawns. My problem is that I want to either delete it if the player moves, or kill the player if it gets destroyed at any point. How can I track these things after the keybind is already released? Thank you in advance!
Edited by PairOfPiplups on Thu, 10/26/2023 - 16:16
create a separate procedure for detecting when the player moves or when a block is destroyed
there should be some default event triggers for detecting when the player moves or when a block is destroyed, just open a new procedure window and click on the dropdown in the green event block and search for those
then just put "remove block" or "set player health to 0" under that and voila your done
ask again if you're having trouble making this