PLZ HELP WHY THIS IS NOT WORKING!

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

iLazer

Member
Apr 1, 2022
15
0
1
22
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
 
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
Can you please edit this and do insert then code and place the code. On death you have to use victim or attacker in this case you have to use victim and also do on death of a player
 
Status
Not open for further replies.