Is it possible to have a mob generate an ore in the chunk it's killed in?

Started by TreeIsCool on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to have a mob generate an ore in the chunk it's killed in?

I have a custom creeper I want to use. I want it to generate an ore in the chunk it is killed in. Is this possible?

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a custom feature mod…
Thu, 09/11/2025 - 19:40

make a custom feature mod element of type ore and place it in the location where the creeper died upon death using procedure attached to death event in the entity triggers tab

or if you mean you want the ore to spawn underground, use an indexed loop to loop while decreasing y position index until the block at the y position index is equal to stone or whatever, then go down a few more blocks and place the ore