Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # by Filsek1337
- # skrypt poprawiony przez xAxee
- command /magic [<item>]:
- trigger:
- if arg 1 is set:
- send "&7>> &aPoprawnie wybrales id (%arg 1%)"
- set lore of player's tool to "&6Block: &c%arg 1%"
- else:
- send "&7>> &cPoprawne użycie /magic (id blocku)"
- on right click with stick:
- if name of player's tool is "&4Magic":
- if target block is not air:
- set {_block} to lore of player's tool
- if {_block} is set:
- replace all "&6Block: &c" with "" in {_block}
- set target block to ({_block} parsed as item)
- else:
- send "&7>> &cPoprawne użycie /magic (id blocku)"
- else:
- send "&7>> &cTym nie zamienisz powietrza!"
- on left click with stick:
- if name of player's tool is "&4Magic":
- if target block is not air:
- cancel event
- set target block to grass
- else:
- send "&7>> &cTym nie zamienisz powietrza!"
- command /magicdaj:
- trigger:
- if player has permission "magic":
- give 1 stick named "&4Magic" to player
- else:
- send "&7>> &cNie masz permisji!"
Advertisement
Add Comment
Please, Sign In to add comment