Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /block <text>:
- permission: tps.block
- usage: /block <iron/diamond/emerald/redstone/lapis>
- trigger:
- arg is "emerald":
- set {_temp} to amount of emerald in player's inventory
- set {_temp} to {_temp}/9
- set {_temp2} to 0
- remove 10000 emeralds from the player
- send "<gray>You have replaced your emeralds to emerald blocks"
- loop 1000 times:
- set {_temp2} to {_temp2}+1
- {_temp2} > {_temp}:
- stop trigger
- give player an emerald block
- arg is "iron":
- set {_temp} to amount of iron ingots in player's inventory
- set {_temp} to {_temp}/9
- set {_temp2} to 0
- remove 10000 iron ingots from the player
- send "<gray>You have replaced your iron to iron blocks"
- loop 1000 times:
- set {_temp2} to {_temp2}+1
- {_temp2} > {_temp}:
- stop trigger
- give player an iron block
- arg is "diamond":
- set {_temp} to amount of diamond in player's inventory
- set {_temp} to {_temp}/9
- set {_temp2} to 0
- remove 10000 diamonds from the player
- send "<gray>You have replaced your diamonds to diamond blocks"
- loop 1000 times:
- set {_temp2} to {_temp2}+1
- {_temp2} > {_temp}:
- stop trigger
- give player an diamond block
- arg is "redstone":
- set {_temp} to amount of redstone in player's inventory
- set {_temp} to {_temp}/9
- set {_temp2} to 0
- remove 10000 redstone from the player
- send "<gray>You have replaced your redstone to redstone blocks"
- loop 1000 times:
- set {_temp2} to {_temp2}+1
- {_temp2} > {_temp}:
- stop trigger
- give player an redstone block
- arg is "lapis":
- set {_temp} to amount of lapis lazuli in player's inventory
- set {_temp} to {_temp}/9
- set {_temp2} to 0
- remove 10000 lapis lazuli from the player
- send "<gray>You have replaced your lapis lazuli to lapis blocks"
- loop 1000 times:
- set {_temp2} to {_temp2}+1
- {_temp2} > {_temp}:
- stop trigger
- give player an lapis block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement