How do I make a mob drop a custom potion

Started by jadenquinn8 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a mob drop a custom potion

A friend and I are trying to make a mod where MrBeasto drops a custom potion, but the potion doesn't actually appear in the list of items that can be dropped, and we had no luck in the code trying to figure it out, so we figured this is a good a place as any to ask how to accomplish this.

So.... how should this be done?

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This makes a zombie always…
Mon, 10/03/2022 - 18:00

This makes a zombie always drop one,  Speed 2 (strong_swiftness), Hero of  the Village (boosted to level 2) potion. It lasts for 3000 ticks. 

You can change the custom potion effect with the potion ID which you can search for. 

/summon zombie ~ ~ ~ {HandItems:[{id:"minecraft:potion",Count:1b,tag:{CustomPotionEffects:[{Id:32,Amplifier:2b,Duration:3000}],Potion:"minecraft:strong_swiftness"}},{}],HandDropChances:[1.000F,0.085F]}