Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /szglowa <integer> <integer>:
- usage: /szglowa <linijka_lore> <ilosc_loopow>
- trigger:
- set block at player to chest
- set {_z} to block at player
- set {_i} to player's tool
- loop arg 2 times:
- set {_a} to line arg 1 of lore of {_i}
- set {_a} to last 2 characters of {_a} parsed as integer
- set {_l} to line arg 1 of lore of {_i}
- replace all "+%{_a}%" with "+%{_a}+1%" in {_l}
- set line arg 1 of lore of {_i} to {_l}
- add {_i} to {_z}'s inventory
Advertisement
Add Comment
Please, Sign In to add comment