ItzOPOfficial

Untitled

Dec 17th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. on rightclick on ripe_crops or potato_plant or carrot_plant or beetroot_block or nether_wart_block:
  2. if player is sneaking:
  3. if data value of block = 3:
  4. if type of block = beetroot_block:
  5. drop ((random integer between 0 and 3) - 1) of beetroot_seeds
  6. set block to beetroot_block
  7. else if type of block = nether_wart_block:
  8. drop ((random number between 2 and 4) - 1) of nether_wart_item
  9. set block to nether_wart_block
  10. else if data value of block = 7:
  11. if type of block = ripe_wheat:
  12. drop (random integer between 1 and 2) of wheat
  13. drop ((random integer between 0 and 3) - 1) of wheat_seeds
  14. set block to freshly_planted_wheat
  15. else if type of block = potato_plant:
  16. drop ((random integer between 1 and 4) - 1) of potato
  17. set block to potato_plant
  18. chance of 2%:
  19. drop poisonous_potato
  20. else if type of block = carrot_plant:
  21. drop ((random integer between 1 and 4) - 1) of carrot_item
  22. set block to carrot_plant
Advertisement
Add Comment
Please, Sign In to add comment