How do I detect, when a player walks off a block

Started by EnbyAkira on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Mar 2023
Points:
272

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
How do I detect, when a player walks off a block

I wanna create a mod, that deletes the block the player stood on, when he walks of of it. I tried some things but I can’t manage to get some kind of triggers to work, maybe one of you has a clue, how I could make it work

Active 3 weeks ago
Joined Aug 2022
Points:
692

User statistics:

  • Modifications: 4
  • Forum topics: 30
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 246
Maybe make a block that…
Mon, 03/20/2023 - 13:57

Maybe make a block that breaks itself after a cerain amount of time, and make a procedure for boots that places that block when in the air?

Active 1 year ago
Joined Mar 2023
Points:
272

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
this is supposed to be a…
Tue, 03/21/2023 - 21:09

this is supposed to be a challenge for a streamer i watch, i already made this challenge as a datapack, but it doesnt really work with the dimensions, so i wanted to give it a try in MCreator as a Java mod
maybe i didnt give much information anyway, in the datapack a armor stand spawns inside the player, when the player moves 1.1 blocks out of the armorstand, the armorstand gets killed and the blocks under it get deleted and a new armor stand spawns.

i dont know how i would make that work as a Java mod, so i thought maybe i could detect the player walking of the block trough another trigger or something

so this isnt really what i was searching for, but thank you for your idea and help