#Target only player-placed blocks?

1 messages · Page 1 of 1 (latest)

vague juniper
#

Is there a way to specify the code to target only a block that a specific player has placed? For example if I have a script that lets players build in a region, but I don't want them to break what others have built, how can I allow break to ONLY the player that placed the blocks? Essentially owner-placed?

gaunt geyser
#

if you have SkBee, you can create custom block nbt and set it to the blocks there, you can find info on the wiki https://www.github.com/ShaneBeee/SkBee/wiki

Alternatively, you can add the block to a list associated to the player that placed them, and use a separate on mine event to check if that block mined (get the location, not the block) is theirs or not

GitHub

Contribute to ShaneBeee/SkBee development by creating an account on GitHub.