thanksyeah so
place block -> append element(%player%_blocks-placed, block location)
function(Extract) -> if var(%player%_current-Index, more than 0) -> get element(%player%_blocks-placed, %player%_current-Index, %player%_block-location) -> set block( %player%_block-location, air) -> wait(1/2tick) -> decrement(%player_current-Index) ELSE Create array(%player%_blocks-placed) -> OPTIONAL Send message{all}( &cRemoved all the blocks placed by %player%.)
Note: set the variable "%player%-current-Index" to Array length(%player%_block-placed) before calling function(Extract)
Edit: Thanks for the likes <3
Edit(2):Forgot to delete array after its done going through all of the locations.ADDED
Could you send a picture of the code? I think I'm dumb or something.yeah so
place block -> append element(%player%_blocks-placed, block location)
function(Extract) -> if var(%player%_current-Index, more than 0) -> get element(%player%_blocks-placed, %player%_current-Index, %player%_block-location) -> set block( %player%_block-location, air) -> wait(1/2tick) -> decrement(%player_current-Index) ELSE Create array(%player%_blocks-placed) -> OPTIONAL Send message{all}( &cRemoved all the blocks placed by %player%.)
Note: set the variable "%player%-current-Index" to Array length(%player%_block-placed) before calling function(Extract)
Edit: Thanks for the likes <3
Edit(2):Forgot to delete array after its done going through all of the locations.ADDED
newbie nerd happy
*insert yippee*
+ ophelios said his code works betteryeah so
place block -> append element(%player%_blocks-placed, block location)
function(Extract) -> if var(%player%_current-Index, more than 0) -> get element(%player%_blocks-placed, %player%_current-Index, %player%_block-location) -> set block( %player%_block-location, air) -> wait(1/2tick) -> decrement(%player_current-Index) ELSE Create array(%player%_blocks-placed) -> OPTIONAL Send message{all}( &cRemoved all the blocks placed by %player%.)
Note: set the variable "%player%-current-Index" to Array length(%player%_block-placed) before calling function(Extract)
Edit: Thanks for the likes <3
Edit(2):Forgot to delete array after its done going through all of the locations.ADDED
You forgot to recall the function but besides that it works great. Only problem is dumb nerd wannabe forgot to say it is a global code, not local.yeah so
place block -> append element(%player%_blocks-placed, block location)
function(Extract) -> if var(%player%_current-Index, more than 0) -> get element(%player%_blocks-placed, %player%_current-Index, %player%_block-location) -> set block( %player%_block-location, air) -> wait(1/2tick) -> decrement(%player_current-Index) ELSE Create array(%player%_blocks-placed) -> OPTIONAL Send message{all}( &cRemoved all the blocks placed by %player%.)
Note: set the variable "%player%-current-Index" to Array length(%player%_block-placed) before calling function(Extract)
Edit: Thanks for the likes <3
Edit(2):Forgot to delete array after its done going through all of the locations.ADDED
nope i can't i don play minecraft anyoreCould you send a picture of the code? I think I'm dumb or something.
Basically this guy wanted it global, so without %player% but instead said by a player.thanks i added calling function and uh the other part idk context
oh so that blocks placed by all players at once?Basically this guy wanted it global, so without %player% but instead said by a player.
didn wok at first!1!!!1just remove %player% from everything
just send the error message or a code ss, who tf am i gonna know hwat thing you messed updidn wok at first!1!!!1
It is already fixedjust send the error message or a code ss, who tf am i gonna know hwat thing you messed up
coolIt is already fixed
why not coolnot cool