Making chicken like mob that drops items at certain intervals

Started by JonahMCMaster05 on

Topic category: Advanced modding

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making chicken like mob that drops items at certain intervals

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 11:16, 14. Oct 2021
Joined Dec 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • 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