[SOLVED] Tick Update on Procedurally Generated Block.

Started by PairOfPiplups on

Topic category: Help with modding (Java Edition)

Last seen on 13:29, 27. Oct 2023
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED] Tick Update on Procedurally Generated Block.
Thu, 10/26/2023 - 16:16 (edited)

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
Last seen on 19:25, 19. Jun 2024
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
create a separate procedure…
Wed, 10/25/2023 - 19:58

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