knugi

Untitled

Feb 24th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. on enchant:
  2. if event-item is golden shovel:
  3. wait 1 tick
  4. if event-item is enchanted with silk touch 1:
  5. set lore of event-item to "&r&6ROZWALACZ BEDROCKAa!!||&9Pozostalych uzyc: &f5"
  6. on rightclick on bedrock:
  7. if player's tool is golden shovel:
  8. if player's tool is enchanted with silk touch 1:
  9. if player cannot build at event-block:
  10. send "&cNie mozesz rozwalic tutaj bedrocka!"
  11. stop
  12. set {_l} to last character of lore of player's tool
  13. set {_l} to {_l} parsed as integer
  14. if y-location of event-block is smaller than 3:
  15. cancel event
  16. stop
  17. if {_l} is 0:
  18. remove golden shovel with lore "&r&6ROZWALACZ BEDROCKAa!!||&9Pozostalych uzyc: &f0" from player
  19. stop
  20. set lore of player's tool to "&r&6ROZWALACZ BEDROCKAa!!||&9Pozostalych uzyc: &f%{_l} - 1%"
  21. set event-block to air
Advertisement
Add Comment
Please, Sign In to add comment