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/snow/clay/coal> or /bl <i/d/e/r/l/s/c/cl>
- aliases: /bl
- trigger:
- arg is "emerald" or "e":
- player does not have 9 emerald:
- send "<light red>You need more materials for this."
- 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" or "i":
- player does not have 9 iron ingots:
- send "<light red>You need more materials for this."
- 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" or "d":
- player does not have 9 diamond:
- send "<light red>You need more materials for this."
- 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" or "r":
- player does not have 9 redstone:
- send "<light red>You need more materials for this."
- 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" or "l":
- player does not have 9 lapis lazuli:
- send "<light red>You need more materials for this."
- 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
- arg is "clay" or "c":
- player does not have 4 clay:
- send "<light red>You need more materials for this."
- set {_temp} to amount of 337 in player's inventory
- set {_temp} to {_temp}/4
- set {_temp2} to 0
- remove 10000 337 from the player
- send "<gray>You have replaced your clay to clay blocks"
- loop 1000 times:
- set {_temp2} to {_temp2}+1
- {_temp2} > {_temp}:
- stop trigger
- give player an clay block
- arg is "snow" or "s":
- player does not have 4 snow:
- send "<light red>You need more materials for this."
- set {_temp} to amount of snowballs in player's inventory
- set {_temp} to {_temp}/4
- set {_temp2} to 0
- remove 10000 snowballs from the player
- send "<gray>You have replaced your snow to snow blocks"
- loop 1000 times:
- set {_temp2} to {_temp2}+1
- {_temp2} > {_temp}:
- stop trigger
- give player an snow block
- arg is "coal" or "cl":
- player does not have 9 coal:
- send "<light red>You need more materials for this."
- set {_temp} to amount of coal in player's inventory
- set {_temp} to {_temp}/4
- set {_temp2} to 0
- remove 10000 coal from the player
- send "<gray>You have replaced your coal to coal blocks"
- loop 1000 times:
- set {_temp2} to {_temp2}+1
- {_temp2} > {_temp}:
- stop trigger
- give player an coal block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement