Started by
CloudtailRox
on
Topic category: Advanced modding
Hi. I came up with a way for "tameable" mobs in Mcreator. Problem is, I don't know how to make it work. I'd like to make a mob that will attack you, but if you feed it some meat, it will despawn and be replaced with another mob thats exactly the same except peaceful and rideable. I just don't know how to make mobs despawn. I'm assuming it would go in the "Custom Code" section for the events. Could someone show me what the code would be? (By the way I know almost nothing about coding to where and how to put the code in would also be appreciated.) Thanks. Bye!
anyone help?
if (!this.worldObj.isRemote)
{
this.setDead();
}
Omg thank you so much! I am finally able to make tamable mobs!
I'm lost, what exactly did you do? I want to do the opposite, a mob that can't take damage directly but when damaged replaces mob with a hostile one that looks similar. If anyone knows how pls help- Thnx!
Also making only a certain item or the mob they turn into able to hurt them would be cool as well...