#Get if a block is placed by a player

12 messages · Page 1 of 1 (latest)

candid geyser
#

Hi !

I was wondering if there was a way to get if a block as been placed by a player ? I'm trying to allow players to break blocks that have only been placed by players ? I know I could do this with a tag added to each block placed, but is there another way ?

static viperBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

eternal wren
#

well, you actually cannot do it with a tag

#

tags are applied to either all or none

#

the only way to do this is to make a list of all placed blocks and update it every time its placed, destroyed, exploded, etc

candid geyser
#

Oh, okayy, it seems that I misunderstood the behaviour of tags, thanks for the clarification ! Can I ask you what would be the best way to store those info ? I've already tried to use JSON files in other scripts, but this such a headache to setup. Maybe I should store the position of the block ? What would be the best way to identify each block ?

Sorry that's a lot of questions, but I'm not used to block management, even if I've already done some scripts... blobfoxheartcute

eternal wren
#

sorry for the delay~

#

first of all, adorable emote

#

to store the data you can use server persistent data and an object where you have a few keys for each dimension, then each dimension with a set of coordinates

candid geyser
# eternal wren sorry for the delay~

Ahah no worries, I'm not that on time either 😅. And I know that you have a life on the side. I don't get why some people get soooo mad when they do not get answer in the minute.

candid geyser
candid geyser