Posted October 19, 201411 yr My pet won't save the owner when i re-launch Minecraft. Minecraft 1.7.10, latest Forge version! Pet's code: http://pastebin.com/UuTZYuJg Item that spawns the pet code: http://pastebin.com/Nx7J63vw Thanks for helping out!
October 19, 201411 yr Author how do you save the owner? I thought this line does it mob.func_152115_b(par3EntityPlayer.getUniqueID().toString()); (this code is use when taming the wolf)
October 19, 201411 yr I have all this along with the "this.func_152115_b(entityPlayer.getUniqueID().toString());" this.setTamed(true); this.setPathToEntity((PathEntity) null); this.setAttackTarget((EntityLivingBase) null); this.func_152115_b(entityPlayer.getUniqueID().toString()); this.playTameEffect(true); this.worldObj.setEntityState(this, (byte) 7); if(!entityPlayer.capabilities.isCreativeMode) itemstack.stackSize--;
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.