#Natural or placed
1 messages · Page 1 of 1 (latest)
on place:
set tag "custom;placedBy" of event-block to uuid of player
function isBlockNatural(l:location) :: boolean:
return false if nbt compound of block at {_l} has tag "custom;placedBy" else true```
is this skript?
skript + skbee
it just does this
on place it's setting the custom tag placedBy of the block to the uuid of the player that placed it, then you can use the function to know if the block at the location you provided is placed by someone or not
oh but how can i check whenn the player breaks the block if its a placed one or a natural one
use the function
although jake i think you meant to flip the true/false
and capitalize b
oh right
it shows me an error
lemme write it 1sec
Can't understand this condition: nbt compound of block at {_l} has tag "custom;placedBy" else true
@vivid skiff
do you have skbee?
ok 1 second
on place:
set tag "custom;placedBy" of nbt compound of event-block to uuid of player
function isBlockNatural(l:location) :: boolean:
return false if nbt compound of block at {_l} has tag "custom;placedBy" else true```
fixed
works for me
can you show a screenshot of the error?
yeah you need 2.3.2
yeah your skbee is very behind
oh
latest is 2.3.3 and that condition was added in 2.3.2