I want to make a trap command were you can do /trap <Player> <Time> and it puts glass all around then for a certain amount of time and then goes back to normal. I found my skript has some problems to it.
1. If the player is jumping there is no floor because I dont know how to save block data and when the timer is up only half of the glass disapears
2. The script is very long and anoyying to edit I asume there is a loop script to make it easier but I cant figure that out!
My script:
As you can see its not ideal. Help would be awsome!
1. If the player is jumping there is no floor because I dont know how to save block data and when the timer is up only half of the glass disapears
2. The script is very long and anoyying to edit I asume there is a loop script to make it easier but I cant figure that out!
My script:
Code:
command /trap [<player>] [<text>]:
permission: troll.trap
permission message: &cYou dont have access!
usage: /trap <player> <seconds>
trigger:
set block 1 north of the arg-1 to glass
set block 1 block up north of the arg-1 to glass
set block 1 north of the arg-1 to glass
set block 1 block up east of the arg-1 to glass
set block 1 east of the arg-1 to glass
set block 1 block up south of the arg-1 to glass
set block 1 south of the arg-1 to glass
set block 1 block up west of the arg-1 to glass
set block 1 west of the arg-1 to glass
set block 2 blocks above the arg-1 to glass
wait "%arg-2% seconds" parsed as timespan
set block 1 north of the arg-1 to air
set block 1 block up north of the arg-1 to air
set block 1 north of the arg-1 to air
set block 1 block up east of the arg-1 to air
set block 1 east of the arg-1 to air
set block 1 block up south of the arg-1 to air
set block 1 south of the arg-1 to air
set block 1 block up west of the arg-1 to air
set block 1 west of the arg-1 to air
set block 2 blocks above the arg-1 to air
As you can see its not ideal. Help would be awsome!