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 10 enchanted golden apple to player's inventory
- message "&c&lOsiagnieto 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 10 ender pearl to player's inventory
- message "&c&lOsiagnieto 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 10 enchanted golden apple to player's inventory
- message "&c&lOsiagnieto 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 10 ender pearl to player's inventory
- message "&c&lOsiagnieto maksymalna ilosc ender perel w twoim ekwipunku. Zostawiono 8, reszte odlozono do twojego enderchestu."
- stop
- //Skrypt autorstwa krzysek lecz ja rozszerzylem tylko z koxow perel na koxy perly i refile :D
- on inventory close:
- if amount of golden apple in player's inventory is greater than 16:
- set {_amount} to amount of golden apple in player's inventory
- set {_amountend} to {_amount}-16
- set {_add} to "%{_amountend}% golden apple"
- add "%{_add}%" parsed as item to player's enderchest
- remove all golden apple from player's inventory
- add 10 golden apple to player's inventory
- message "&c&lOsiagnieto maksymalna ilosc refili w twoim ekwipunku. Zostawiono 16, reszte odlozono do twojego enderchestu."
- on pick up:
- wait 0.1 second
- if amount of golden apple in player's inventory is greater than 16:
- set {_amount} to amount of golden apple in player's inventory
- set {_amountend} to {_amount}-16
- set {_add} to "%{_amountend}% golden apple"
- add "%{_add}%" parsed as item to player's enderchest
- remove all golden apple from player's inventory
- add 10 golden apple to player's inventory
Advertisement
Add Comment
Please, Sign In to add comment