Deleting Previous Instances of Blocks

Started by @USB_Headphones2 on

Topic category: Help with modding (Java Edition)

Last seen on 18:38, 15. Aug 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Deleting Previous Instances of Blocks

I have a tool called the Travel Stick. What I want it to do is basically when i right click with it, it will delete all previous instances of, lets say, stone made with thie stick. it will then place a block underneath the player. any ideas on how i would do that? for creating the block I have been using the command /setblock ~ ~-1 ~ minecraft:stone, But i still need a way to delete all previous insances of the blocks maed with the stick.

Last seen on 18:11, 24. Aug 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe try saving the…
Sat, 08/10/2024 - 00:02

Maybe try saving the coordinates that you did the first command at and run the same command but with air

Last seen on 18:38, 15. Aug 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
would i just use scoreboard…
Sat, 08/10/2024 - 02:09

would i just use scoreboard values for that? I have not had sucess with that in the pasl

Last seen on 18:38, 15. Aug 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok, solved. thank you!
Sat, 08/10/2024 - 15:39

ok, solved. thank you!