szumielxd

Fast

Dec 22nd, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. command /szglowa <integer> <integer>:
  2. usage: /szglowa <linijka_lore> <ilosc_loopow>
  3. trigger:
  4. set block at player to chest
  5. set {_z} to block at player
  6. set {_i} to player's tool
  7. loop arg 2 times:
  8. set {_a} to line arg 1 of lore of {_i}
  9. set {_a} to last 2 characters of {_a} parsed as integer
  10. set {_l} to line arg 1 of lore of {_i}
  11. replace all "+%{_a}%" with "+%{_a}+1%" in {_l}
  12. set line arg 1 of lore of {_i} to {_l}
  13. add {_i} to {_z}'s inventory
Advertisement
Add Comment
Please, Sign In to add comment