RustyPeanuts98

Untitled

Oct 10th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. command /bapple:
  2. description: Crafts a bloody apple for you.
  3. usage: /gapple
  4. trigger:
  5. if player has 8 redstone blocks and 1 head:
  6. remove 8 redstone blocks and 1 head from the player
  7. drop 1 apple named "&c&lBloody apple" at the player
  8. message "&fYou have just made a &cbloody apple&7!"
  9. else:
  10. message "&fYou do not have the correct amount of materials"
  11. stop
  12.  
  13. on consume of apple:
  14. if name of player's tool is "&c&lBloody apple":
  15. if max health of player is 20:
  16. cancel the event
  17. give the player 1 apple named "&c&lBloody apple"
  18. message "&fYou have maxed out your health!"
  19. stop
  20. add 2 to the player's max health
Advertisement
Add Comment
Please, Sign In to add comment