Making chicken like mob that drops items at certain intervals

Started by JonahMCMaster05 on Wed, 07/24/2019 - 00:34

Topic category: Advanced modding

Last seen on 01:08, 25. Jul 2019
Joined Aug 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Making chicken like mob that drops items at certain intervals
Wed, 07/24/2019 - 00:34

I want to be able to create a mob like a chicken that drops random spawn eggs like the Eversource from Minecraft: Story Mode at certain intervals. I don't know how to create a custom procedure that drops a gem at tick intervals. Can someone explain how to?

Last seen on 14:33, 24. Jun 2020
Joined Dec 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
You can use update tickā€¦
Thu, 07/25/2019 - 20:14

You can use update tick event for your mob and set an entity NBT tag which counts +1 each time the procedure it's executed. Then if the NBT tag reaches a certain number of your preference, reset it to 0 and spawn the item. Just that