Guest User

Untitled

a guest
Apr 26th, 2016
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. on pick up:
  2. wait 0.1 second
  3. if amount of enchanted golden apple in player's inventory is greater than 5:
  4. set {_amount} to amount of enchanted golden apple in player's inventory
  5. set {_amountend} to {_amount}-5
  6. set {_add} to "%{_amountend}% enchanted golden apple"
  7. add "%{_add}%" parsed as item to player's enderchest
  8. remove all enchanted golden apple from player's inventory
  9. add 5 enchanted golden apple to player's inventory
  10. message "&3LimitG»&6Osiagnieto maksymalna ilosc koxow w twoim ekwipunku. Zostawiono 5, reszte odlozono do twojego enderchestu."
  11. if amount of ender pearl in player's inventory is greater than 8:
  12. set {_amount} to amount of ender pearl in player's inventory
  13. set {_amountend} to {_amount}-8
  14. set {_add} to "%{_amountend}% ender pearl"
  15. add "%{_add}%" parsed as item to player's enderchest
  16. remove all ender pearl from player's inventory
  17. add 8 ender pearl to player's inventory
  18. message "&3LimitG»&6Osiagnieto maksymalna ilosc ender perel w twoim ekwipunku. Zostawiono 8, reszte odlozono do twojego enderchestu."
  19. stop
  20.  
  21. on inventory close:
  22. if amount of enchanted golden apple in player's inventory is greater than 5:
  23. set {_amount} to amount of enchanted golden apple in player's inventory
  24. set {_amountend} to {_amount}-5
  25. set {_add} to "%{_amountend}% enchanted golden apple"
  26. add "%{_add}%" parsed as item to player's enderchest
  27. remove all enchanted golden apple from player's inventory
  28. add 5 enchanted golden apple to player's inventory
  29. message "&3LimitG»&6Osiagnieto maksymalna ilosc koxow w twoim ekwipunku. Zostawiono 5, reszte odlozono do twojego enderchestu."
  30. if amount of ender pearl in player's inventory is greater than 8:
  31. set {_amount} to amount of ender pearl in player's inventory
  32. set {_amountend} to {_amount}-8
  33. set {_add} to "%{_amountend}% ender pearl"
  34. add "%{_add}%" parsed as item to player's enderchest
  35. remove all ender pearl from player's inventory
  36. add 8 ender pearl to player's inventory
  37. message "&3LimitG»&6Osiagnieto maksymalna ilosc ender perel w twoim ekwipunku. Zostawiono 8, reszte odlozono do twojego enderchestu."
  38. stop
Advertisement
Add Comment
Please, Sign In to add comment