Posted November 2, 201212 yr hiya ! Wondering if a hook for making babies spawn from already existing creatures exist or not. If not, i would like to request one ^^ ex: I made a new mob and a want a pig to spawn it, without having to change baseclasses ! thanks ^^ https://minecraft.curseforge.com/members/Subaraki/projects
November 3, 201212 yr EntityPig ep = new EntityPig(world); ep.setGrowingAge(-200) will make the pig be a baby for 200 ticks, according to the javadocs Protip: try and find answers yourself before asking on the forum. It's pretty likely that there is an answer. Was I helpful? Give me a thank you! http://bit.ly/HZ03zy[/img] Tired of waiting for mods to port to bukkit? use BukkitForge! (now with a working version of WorldEdit!)
November 3, 201212 yr Author no no, you got it all wrong I dont want the pig to be a baby I want the pig to spawn a baby cow and a baby pig. but i would have to edit base classes to do so. https://minecraft.curseforge.com/members/Subaraki/projects
November 4, 201212 yr You can edit entity ai tasks without editing any base classes. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
December 24, 201212 yr Author An entity AI wont make my custom entity have a spawning chance of 30% Cow, 30% Pig or 40% Chicken if you know what I mean. https://minecraft.curseforge.com/members/Subaraki/projects
December 25, 201212 yr An entity AI wont make my custom entity have a spawning chance of 30% Cow, 30% Pig or 40% Chicken if you know what I mean. Actually it can, you can define various parameters and complete design of how it should work by making your own AI task and injecting it in. I actually do that myself, so I know it works and is quite simple.
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.