How do I drop the item I selected when the wolf dies?

Started by North4146 on

Topic category: Help with modding (Java Edition)

Last seen on 20:42, 15. Apr 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I drop the item I selected when the wolf dies?

How do I drop the item I selected when the wolf dies? (sorry for bad english, i am using translate)

Last seen on 05:05, 30. Oct 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sounds like you want to make…
Fri, 04/15/2022 - 18:41

Sounds like you want to make a new Loot Table for the Wolf entity.  The Wolf's vanilla loot table entry is empty, so nothing gets dropped when killed.  This makes it no problem to replace it with your own.

 

Make a new Loot Table, lets call it "WolfLoot".

The Loot table registry name will default to "blocks/wolf_loot".  Change this to "entities/wolf".

Change the default Loot table namespace from "mod" to "minecraft".

Change the default Loot table type from "Block" to "Entity".

Add your desired item to the loot table pool below.