Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {fr.chest.x} = 1000000
- {fr.chest.y} = 200
- {fr.chest.z} = 1000000
- command /chest [<text>]:
- permission: fr.chest.open
- permission message: &6You don't have required permission to do this.
- trigger:
- if arg 1 is not set:
- if {fr.%player%.chest} is not set:
- set block at the location ({fr.chest.x}, {fr.chest.y}, {fr.chest.z}) to chest
- set block at the location ({fr.chest.x}+1, {fr.chest.y}, {fr.chest.z}) to chest
- set {fr.%player%.chest} to location of block at the location ({fr.chest.x}, {fr.chest.y}, {fr.chest.z})
- if {fr.chest.x} is less than 1000300:
- add 3 to {fr.chest.x}
- else:
- set {fr.chest.x} to 1000300
- if {fr.chest.z} is less than 1000300:
- add 2 to {fr.chest.z}
- else:
- set {fr.chest.z} to 1000000
- add 1 to {fr.chest.y}
- open the inventory of the block at {fr.%player%.chest} to the player
- else:
- open the inventory of the block at {fr.%player%.chest} to the player
- else:
- if player has permission "fr.chest.admin":
- if {fr.%arg 1%.chest} is set:
- open the inventory of the block at {fr.%arg 1%.chest} to the player
- else:
- set block at the location ({fr.chest.x}, {fr.chest.y}, {fr.chest.z}) to chest
- set block at the location ({fr.chest.x}+1, {fr.chest.y}, {fr.chest.z}) to chest
- set {fr.%arg 1%.chest} to location of block at the location ({fr.chest.x}, {fr.chest.y}, {fr.chest.z})
- if {fr.chest.x} is less than 1000300:
- add 3 to {fr.chest.x}
- else:
- set {fr.chest.x} to 1000300
- if {fr.chest.z} is less than 1000300:
- add 2 to {fr.chest.z}
- else:
- set {fr.chest.z} to 1000000
- add 1 to {fr.chest.y}
- open the inventory of the block at {fr.%arg 1%.chest} to the player
- else:
- send "&6You don't have required permission to do this."
Advertisement
Add Comment
Please, Sign In to add comment