Deleting Previous Instances of Blocks

Started by @USB_Headphones2 on

Topic category: Help with Minecraft modding (Java Edition)

Active 8 months ago
Joined Aug 2024
Points:
50

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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.

Active 2 weeks ago
Joined Aug 2024
Points:
52

User statistics:

  • Modifications: 1
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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

Active 8 months ago
Joined Aug 2024
Points:
50

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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

Active 8 months ago
Joined Aug 2024
Points:
50

User statistics:

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

ok, solved. thank you!