Started by
jadenquinn8
on
Topic category: Help with Minecraft modding (Java Edition)
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?
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]}