Guest User

Untitled

a guest
Jan 27th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. # by Filsek1337
  2. # skrypt poprawiony przez xAxee
  3.  
  4. command /magic [<item>]:
  5. trigger:
  6. if arg 1 is set:
  7. send "&7>> &aPoprawnie wybrales id (%arg 1%)"
  8. set lore of player's tool to "&6Block: &c%arg 1%"
  9. else:
  10. send "&7>> &cPoprawne użycie /magic (id blocku)"
  11.  
  12. on right click with stick:
  13. if name of player's tool is "&4Magic":
  14. if target block is not air:
  15. set {_block} to lore of player's tool
  16. if {_block} is set:
  17. replace all "&6Block: &c" with "" in {_block}
  18. set target block to ({_block} parsed as item)
  19. else:
  20. send "&7>> &cPoprawne użycie /magic (id blocku)"
  21. else:
  22. send "&7>> &cTym nie zamienisz powietrza!"
  23.  
  24. on left click with stick:
  25. if name of player's tool is "&4Magic":
  26. if target block is not air:
  27. cancel event
  28. set target block to grass
  29. else:
  30. send "&7>> &cTym nie zamienisz powietrza!"
  31. command /magicdaj:
  32. trigger:
  33. if player has permission "magic":
  34. give 1 stick named "&4Magic" to player
  35. else:
  36. send "&7>> &cNie masz permisji!"
Advertisement
Add Comment
Please, Sign In to add comment