So i wrote a script for temporary platforms for a kit im making and here it is:
on right click:
if offhand tool of player is clay:
player is wearing diamond boots
block below player is air
set {checkblock.%player%} to block below player
block south of {checkblock.%player%} is air
block southeast of {checkblock.%player%} is air
block southwest of {checkblock.%player%} is air
block east of {checkblock.%player%} is air
block west of {checkblock.%player%} is air
block northwest of {checkblock.%player%} is air
block northeast of {checkblock.%player%} is air
block north of {checkblock.%player%} is air
set block south of {checkblock.%player%} to white wool
set block southeast of {checkblock.%player%} to white wool
set block southwest of {checkblock.%player%} to white wool
set block west of {checkblock.%player%} to white wool
set block east of {checkblock.%player%} to white wool
set block north of {checkblock.%player%} to white wool
set block northwest of {checkblock.%player%} to white wool
set block northeast of {checkblock.%player%} to white wool
set block below player to white wool
add block south of {checkblock.%player%} to {d.%player%}
add block southeast of {checkblock.%player%} to {d.%player%}
add block southwest of {checkblock.%player%} to {d.%player%}
add block west of {checkblock.%player%} to {d.%player%}
add block east of {checkblock.%player%} to {d.%player%}
add block north of {checkblock.%player%} to {d.%player%}
add block northwest of {checkblock.%player%} to {d.%player%}
add block northeast of {checkblock.%player%} to {d.%player%}
add block below player to {d.%player%}
remove 1 clay ball from player
on mine of white wool:
cancel event
set event-block to air
on block place of damaged anvil:
player is wearing diamond boots
wait 6 second
set event-block to air
set {checkblockanvil.%player%} to event-block
loop 20 times:
if block below {checkblockanvil.%player%} is damaged anvil:
set block below {checkblockanvil.%player%} to air
else:
set {checkblockanvil.%player%} to block below {checkblockanvil.%player%}
on death:
set block at {d.%player%} to air
(the anvil code works fine its the deleting platfroms when dead that doesnt work)
plz help me fix!
TYSM!
[doublepost=1649259175,1649229540][/doublepost]NVM I GOT IT WORKING:
on right click:
if offhand tool of player is clay:
player is wearing diamond boots
block below player is air
set {checkblock.%player%} to block below player
block south of {checkblock.%player%} is air
block southeast of {checkblock.%player%} is air
block southwest of {checkblock.%player%} is air
block east of {checkblock.%player%} is air
block west of {checkblock.%player%} is air
block northwest of {checkblock.%player%} is air
block northeast of {checkblock.%player%} is air
block north of {checkblock.%player%} is air
set block south of {checkblock.%player%} to white wool
set block southeast of {checkblock.%player%} to white wool
set block southwest of {checkblock.%player%} to white wool
set block west of {checkblock.%player%} to white wool
set block east of {checkblock.%player%} to white wool
set block north of {checkblock.%player%} to white wool
set block northwest of {checkblock.%player%} to white wool
set block northeast of {checkblock.%player%} to white wool
set block below player to white wool
add location south of {checkblock.%player%} to {d.%player%::*}
add location southeast of {checkblock.%player%} to {d.%player%::*}
add location southwest of {checkblock.%player%} to {d.%player%::*}
add location east of {checkblock.%player%} to {d.%player%::*}
add location west of {checkblock.%player%} to {d.%player%::*}
add location north of {checkblock.%player%} to {d.%player%::*}
add location northwest of {checkblock.%player%} to {d.%player%::*}
add location northeast of {checkblock.%player%} to {d.%player%::*}
add location below player to {d.%player%::*}
remove 1 clay ball from player
on mine of white wool:
cancel event
set event-block to air
on block place of damaged anvil:
player is wearing diamond boots
wait 6 second
set event-block to air
set {checkblockanvil.%player%} to event-block
loop 20 times:
if block below {checkblockanvil.%player%} is damaged anvil:
set block below {checkblockanvil.%player%} to air
else:
set {checkblockanvil.%player%} to block below {checkblockanvil.%player%}
on death:
if size of {d.%player%::*} is more than 1:
broadcast "&4%player%'s Blocks will be removed in 10 seconds!!!"
wait 5 seconds
broadcast "&4%player%'s Blocks will be removed in 5 seconds!!!"
wait 5 seconds
broadcast "&4%player%'s Blocks have been removed!"
set blocks at {d.%player%::*} to air
on right click:
if offhand tool of player is clay:
player is wearing diamond boots
block below player is air
set {checkblock.%player%} to block below player
block south of {checkblock.%player%} is air
block southeast of {checkblock.%player%} is air
block southwest of {checkblock.%player%} is air
block east of {checkblock.%player%} is air
block west of {checkblock.%player%} is air
block northwest of {checkblock.%player%} is air
block northeast of {checkblock.%player%} is air
block north of {checkblock.%player%} is air
set block south of {checkblock.%player%} to white wool
set block southeast of {checkblock.%player%} to white wool
set block southwest of {checkblock.%player%} to white wool
set block west of {checkblock.%player%} to white wool
set block east of {checkblock.%player%} to white wool
set block north of {checkblock.%player%} to white wool
set block northwest of {checkblock.%player%} to white wool
set block northeast of {checkblock.%player%} to white wool
set block below player to white wool
add block south of {checkblock.%player%} to {d.%player%}
add block southeast of {checkblock.%player%} to {d.%player%}
add block southwest of {checkblock.%player%} to {d.%player%}
add block west of {checkblock.%player%} to {d.%player%}
add block east of {checkblock.%player%} to {d.%player%}
add block north of {checkblock.%player%} to {d.%player%}
add block northwest of {checkblock.%player%} to {d.%player%}
add block northeast of {checkblock.%player%} to {d.%player%}
add block below player to {d.%player%}
remove 1 clay ball from player
on mine of white wool:
cancel event
set event-block to air
on block place of damaged anvil:
player is wearing diamond boots
wait 6 second
set event-block to air
set {checkblockanvil.%player%} to event-block
loop 20 times:
if block below {checkblockanvil.%player%} is damaged anvil:
set block below {checkblockanvil.%player%} to air
else:
set {checkblockanvil.%player%} to block below {checkblockanvil.%player%}
on death:
set block at {d.%player%} to air
(the anvil code works fine its the deleting platfroms when dead that doesnt work)
plz help me fix!
TYSM!
[doublepost=1649259175,1649229540][/doublepost]NVM I GOT IT WORKING:
on right click:
if offhand tool of player is clay:
player is wearing diamond boots
block below player is air
set {checkblock.%player%} to block below player
block south of {checkblock.%player%} is air
block southeast of {checkblock.%player%} is air
block southwest of {checkblock.%player%} is air
block east of {checkblock.%player%} is air
block west of {checkblock.%player%} is air
block northwest of {checkblock.%player%} is air
block northeast of {checkblock.%player%} is air
block north of {checkblock.%player%} is air
set block south of {checkblock.%player%} to white wool
set block southeast of {checkblock.%player%} to white wool
set block southwest of {checkblock.%player%} to white wool
set block west of {checkblock.%player%} to white wool
set block east of {checkblock.%player%} to white wool
set block north of {checkblock.%player%} to white wool
set block northwest of {checkblock.%player%} to white wool
set block northeast of {checkblock.%player%} to white wool
set block below player to white wool
add location south of {checkblock.%player%} to {d.%player%::*}
add location southeast of {checkblock.%player%} to {d.%player%::*}
add location southwest of {checkblock.%player%} to {d.%player%::*}
add location east of {checkblock.%player%} to {d.%player%::*}
add location west of {checkblock.%player%} to {d.%player%::*}
add location north of {checkblock.%player%} to {d.%player%::*}
add location northwest of {checkblock.%player%} to {d.%player%::*}
add location northeast of {checkblock.%player%} to {d.%player%::*}
add location below player to {d.%player%::*}
remove 1 clay ball from player
on mine of white wool:
cancel event
set event-block to air
on block place of damaged anvil:
player is wearing diamond boots
wait 6 second
set event-block to air
set {checkblockanvil.%player%} to event-block
loop 20 times:
if block below {checkblockanvil.%player%} is damaged anvil:
set block below {checkblockanvil.%player%} to air
else:
set {checkblockanvil.%player%} to block below {checkblockanvil.%player%}
on death:
if size of {d.%player%::*} is more than 1:
broadcast "&4%player%'s Blocks will be removed in 10 seconds!!!"
wait 5 seconds
broadcast "&4%player%'s Blocks will be removed in 5 seconds!!!"
wait 5 seconds
broadcast "&4%player%'s Blocks have been removed!"
set blocks at {d.%player%::*} to air