1: I know how you spawn an entity and set the render type and healt and all that... but how do you get a unique id so you dont have to spawn a retextured and rerendered cow or something? Cause the game thinks my mkb is a cow, and it goes around mooing and stuff
2: Is it possible to use that id in attackHook? So say your custom entitie's unique id is 113, would you do it like:
function attackHook(a, v)
{
if(v==113)
Level.spawnMob(x+5, y, z+2);
Level.spawnMob(x+3, y, z+5);
}
Help maybe?
Rollback Post to RevisionRollBack
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
Hopefully this gets changed soon, would like to see this as a feature! Could help with a mod I'm working on, which is far from finished since I don't have my Kindle Fire currently
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
2: Is it possible to use that id in attackHook? So say your custom entitie's unique id is 113, would you do it like:
function attackHook(a, v) { if(v==113) Level.spawnMob(x+5, y, z+2); Level.spawnMob(x+3, y, z+5); }Help maybe?
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11