ChiriVulpes / soulus

A Minecraft mod. You must sift through the ashes of the dead to restore life to the world.
https://soulus.info
Other
3 stars 3 forks source link

Allow mobs to be spawned using eggs or morbs #44

Closed YaibaToKen closed 5 years ago

YaibaToKen commented 6 years ago

Is it possible to allow mobs to be spawned using eggs or morbs (item with pokéball like mechanism, added by Thermal Expansion)?

ChiriVulpes commented 6 years ago

Unfortunately there is no event fired by spawn eggs, so I have no way to tell that they were spawned by an egg. There is a potential solution that I thought of a while ago but I'm not sure if it would work and it would take a lot of effort. (Especially for other mods that add their own things like morbs, safari nets, soul vials, as each of these would likely take their own implementation). This is worth doing for sure, but may be implemented far into the future.

YaibaToKen commented 6 years ago

Any chance the good folks from the forge development team could add an event fired for spawn eggs? If so, I might just ask them for that xD

ChiriVulpes commented 6 years ago

Usually if you want something in forge you have to write a PR yourself, I definitely don't have that kind of time right now. I have a solution for the spawn eggs, but it won't work for other mods, and it's not high on my todo — again, I don't have a lot of free time right now. Atm all I can really do for my mods is bugfixes

ChiriVulpes commented 5 years ago

You can now whitelist items for spawning creatures. By default, spawn eggs and a few other mod items are whitelisted. This is not 100% guaranteed to work, due to the way everything works.

ChiriVulpes commented 5 years ago

Fixed as of v4.1.0