Kici33

Untitled

Aug 14th, 2017
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 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 10 enchanted golden apple to player's inventory
  10. message "&c&lOsiagnieto 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 10 ender pearl to player's inventory
  18. message "&c&lOsiagnieto 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 10 enchanted golden apple to player's inventory
  29. message "&c&lOsiagnieto 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 10 ender pearl to player's inventory
  37. message "&c&lOsiagnieto maksymalna ilosc ender perel w twoim ekwipunku. Zostawiono 8, reszte odlozono do twojego enderchestu."
  38. stop
  39.  
  40.  
  41. //Skrypt autorstwa krzysek lecz ja rozszerzylem tylko z koxow perel na koxy perly i refile :D
  42.  
  43. on inventory close:
  44. if amount of golden apple in player's inventory is greater than 16:
  45. set {_amount} to amount of golden apple in player's inventory
  46. set {_amountend} to {_amount}-16
  47. set {_add} to "%{_amountend}% golden apple"
  48. add "%{_add}%" parsed as item to player's enderchest
  49. remove all golden apple from player's inventory
  50. add 10 golden apple to player's inventory
  51. message "&c&lOsiagnieto maksymalna ilosc refili w twoim ekwipunku. Zostawiono 16, reszte odlozono do twojego enderchestu."
  52.  
  53. on pick up:
  54. wait 0.1 second
  55. if amount of golden apple in player's inventory is greater than 16:
  56. set {_amount} to amount of golden apple in player's inventory
  57. set {_amountend} to {_amount}-16
  58. set {_add} to "%{_amountend}% golden apple"
  59. add "%{_add}%" parsed as item to player's enderchest
  60. remove all golden apple from player's inventory
  61. add 10 golden apple to player's inventory
Advertisement
Add Comment
Please, Sign In to add comment