Procedur for sword to drop certain items instead of other items

Started by DaiEgul on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedur for sword to drop certain items instead of other items

Hey,

 

I am pretty new here and I looked up in the forum to find an answer so far I was not able to find anything by the topics that are already open.

What I want to do is if I kill a mob with a certain sword let it be a Chicken, Pig, Cow, Sheep - anything that drops meat that you can eat, that the killed entity does not drop the meat but instead rotten flesh.

 

I can not figure it out so far and tutorials I watched didn't help me.

Is it even possible to do such thing?

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do explain the case a bit…
Wed, 02/08/2023 - 11:02

Do explain the case a bit better.

I created Pickaxe, Axe, Shovel, Hoe and Sword with my new material. I would like to do whenever I kill a creature (vanilla creature for now) with those tool/sword, that the creature drops rotten flesh instead of his actuall meat as the material is kind of poisonous/toxic.

 

I know you can do that you get buffs, strike lightning, burn the creature, smelt stuff when mined etc. etc. So far I was not able to find tutorial for changing drops when killed with certain tools/weapons. 

 

If there is something like that as tutorial for the current version in mcreator - may you can share it? 

 

Thanks in advance :)