#Is there any way to remove {var..%loop-player's uuid%*} from a block?
1 messages · Page 1 of 1 (latest)
When i place a block a add location of event-block to {placedblocks::%player's uuid%::*} this will happend
after that someone will eventually break my block to place their block
after that when i die my all of the location when i placed my block will be removed
how do i stop that?
remove the part that deletes it after you die... did you code this?
wdym
set blocks at {placedblocks::%victim's UUID%::*} to air
delete {placedblocks::%victim's UUID%::*}``` this part of the code deletes the var
do you want that or not
i dont get what youre looking for
Its like
when i placed a block
after that if i die
the block gets remove
its perfect atm
but theres an issue
when i place a block
the other player will see it
then theyll destroy it
But when they destroy it
my var is still there
which causing them to lose their block after i die
I just want to prevent that my adding this?
loop all players:
if location of event-block contains {placedblocks::%loop-player's UUID%::*}:
remove {placedblocks::%loop-player's uuid%::*} from event-location```
But ive never done it before so i dont really have much experience in it
i get why youre removing an event-location from a var....
But youre not doing that, youre removing a var from event-location
other way around.......
loop all players:
if location of event-block contains {placedblocks::%loop-player's UUID%::*}:
remove event-location from {placedblocks::%loop-player's uuid%::*}```
?
?!?!?!
damn im sorry i havent try lemme try xd
it
doesnt
work
damn
Sorry for not messaging in 1 sentense
You still did not fix your issue?
yes im trying to figure it out :(
Btw there will be always bugs, if players use pistons and move the blocks
Just saying
I think i'll remake it a little
you can cancel those events
Yes, you can. But i act like Rapiii doesn't want to
cancel pistons
on place:
set {placedBlocks::blocks::%location of block%} to player's uuid
add (location of block) to {placedBlocks::players::%player's uuid%:*}
on death of player:
set (blocks at {placedBlocks::players::%victim's uuid%::*}) to air
remove (victim's uuid) from {placedBlocks::blocks::*}
delete {placedBlocks::players::%victim's uuid%}
on break:
delete {placedBlocks::blocks::%location of block%}
remove (location of block) from {placedBlocks::players::%player's uuid%::*}
Not sure now. It'll require some testing
Love it! Thanks for your help :D I really appreciate it.
Also, you might have issue with sand
When player places it in air and it falls
Sand and gravel and anyy other falling blocks like anvil
ah okay
Thank you
Test it and see
Np