Minecraft PC IP: play.cubecraft.net

bys1

Well-Known Member
Aug 10, 2016
87
39
93
21
Home
Hi,
Does anyone know How to set animal drop chances?
I want to summon a cow with a 100% chance to drop 1 leather and nothing else on death. I've been googling for hours but couldn't find it.
Thanks in advance.
 

bys1

Well-Known Member
Aug 10, 2016
87
39
93
21
Home
......can you read? That's not helping, That's randomly posting a wiki page with stuff even my pet rabbit knows.
I want to SET DROP CHANCES FOR A COW.
 

MagnificentSpam

Forum Expert
Mar 16, 2016
2,306
2,238
298
In vanilla minecraft with commands or as a spigot plugin? I don't know about commands, but it would be pretty easy to do as a plugin by adding a handler for the EntityDeathEvent that checks if the entity was that cow and then clears the drop list and adds 1 leather to it.

Edit:
I noticed that if you put an item in a cows hand, it will not be visible but you can set the drop chance.
This summons a cow that drops an extra leather:
Code:
/summon minecraft:cow ~0 ~1 ~0 {HandItems:[{Count:1,id:leather},{}],HandDropChances:[2.0F,0.0F]}
I don't know how to disable the regular mob loot though.
 
Last edited:

GeldHaftige

Dedicated Member
May 4, 2017
2,500
1,552
228
25
Belgium
There is No lock needed untill the problem is solved.

Otherwise what do you mean? You can contact a Staff member for true and better information
Hij wilt de drop kansen van alle dieren hebben en ik heb hem de link gegeven of ben ik fout?9'
 
Members Online

Team online

Latest profile posts

Eli wrote on Egg🥚's profile.
Happy Birthday!!!
JokeKaedee wrote on Egg🥚's profile.
Gefeliciteerd met je verjaardag!! :egg:
1714062934709.png

fun new launcher lol
marshduck11 wrote on Mintypie231's profile.
I'm waiting for my facts!
Top Bottom