Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on pick up:
- wait 0.1 second
- if amount of enchanted golden apple in player's inventory is greater than 5:
- set {_amount} to amount of enchanted golden apple in player's inventory
- set {_amountend} to {_amount}-5
- set {_add} to "%{_amountend}% enchanted golden apple"
- add "%{_add}%" parsed as item to player's enderchest
- remove all enchanted golden apple from player's inventory
- add 5 enchanted golden apple to player's inventory
- message "&3LimitG»&6Osiagnieto maksymalna ilosc koxow w twoim ekwipunku. Zostawiono 5, reszte odlozono do twojego enderchestu."
- if amount of ender pearl in player's inventory is greater than 8:
- set {_amount} to amount of ender pearl in player's inventory
- set {_amountend} to {_amount}-8
- set {_add} to "%{_amountend}% ender pearl"
- add "%{_add}%" parsed as item to player's enderchest
- remove all ender pearl from player's inventory
- add 8 ender pearl to player's inventory
- message "&3LimitG»&6Osiagnieto maksymalna ilosc ender perel w twoim ekwipunku. Zostawiono 8, reszte odlozono do twojego enderchestu."
- stop
- on inventory close:
- if amount of enchanted golden apple in player's inventory is greater than 5:
- set {_amount} to amount of enchanted golden apple in player's inventory
- set {_amountend} to {_amount}-5
- set {_add} to "%{_amountend}% enchanted golden apple"
- add "%{_add}%" parsed as item to player's enderchest
- remove all enchanted golden apple from player's inventory
- add 5 enchanted golden apple to player's inventory
- message "&3LimitG»&6Osiagnieto maksymalna ilosc koxow w twoim ekwipunku. Zostawiono 5, reszte odlozono do twojego enderchestu."
- if amount of ender pearl in player's inventory is greater than 8:
- set {_amount} to amount of ender pearl in player's inventory
- set {_amountend} to {_amount}-8
- set {_add} to "%{_amountend}% ender pearl"
- add "%{_add}%" parsed as item to player's enderchest
- remove all ender pearl from player's inventory
- add 8 ender pearl to player's inventory
- message "&3LimitG»&6Osiagnieto maksymalna ilosc ender perel w twoim ekwipunku. Zostawiono 8, reszte odlozono do twojego enderchestu."
- stop
Advertisement
Add Comment
Please, Sign In to add comment