The Meaning of Life, the Universe, and Everything.
Join Date:
6/30/2014
Posts:
51
Member Details
hi, i need to know how to make that my custom MOB drop a item with random number, for example 1, 2 or 3 raw bief, randomly.
And second, if my MOB its base on a Chiken (for example), how can i make that when i kill it, the MOB doesnt drop the chiken items (feather and raw chiken)? thanks a lot!
Please give me an Internet. Please. Pretty Please with sprinkles on top
I have a twitter!! Follow me for regular updates on my mods! https://twitter.com/DamienMiller11
And second, if my MOB its base on a Chiken (for example), how can i make that when i kill it, the MOB doesnt drop the chiken items (feather and raw chiken)? thanks a lot!
Var nodrop
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumRandom numbers:
var num;
num = (int) Math.random()*200+1; //puts a random number until 200 in the variable num
[code]
var rand = Math.floor(Math.random()*3+1);
function attackHook(a, v){
if(Entity.getMobSkin = "mob/yourskin.png"){
Level.dropItem(Entity.getX(v), Entity.getY(v), Entity.getZ(v), 280, rand, 0);
}
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumBetter do that with deathHook(), because so it would drop the Item whenever it is attacked.