How to make mobs drop items passively?

Started by codeninjatnfranklin on

Topic category: Advanced modding

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make mobs drop items passively?

I am working on a mod that makes items attainable without killing peaceful farm animals. I have added a recipe for leather but I am trying to add a procedure where chickens drop feathers at random intervals the same way that they lay eggs. Does anyone know where I should start with this? Also if you have any ideas of other recipes or methods i should add for making other items attainable please let me know.

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
trigger: on entity tickif…
Wed, 10/29/2025 - 06:06

trigger: on entity tick
if entity = chicken
if random[0,1] < 0.008 (can find in the procedure template as "do with 70% chance")
spawn dropped item [feather] at xyz