ProjectZulu / Project-Zulu

Project Zulu Mod for Minecraft
24 stars 14 forks source link

Add NBT Tag to Override CreatureType #20

Open Crudedragos opened 11 years ago

Crudedragos commented 11 years ago

Should Probably have two, one for Spawn Check, one for Creature Check

The usefulness behind this would be for NBT tag would be to set the entity type from the Limited Spawner on a per mob basic; overriding the global configuration settings. But again, it would only apply to PZ entities.

Blue001 commented 11 years ago

Would this effect how Rei's mini-map detects them as well? If so. Awesome. I'm tired of having certain mobs added by other mods not appear as monsters when they clearly are. (Wisp, from Thaumcraft shows up as "other living" when its clearly dangerous. XD)

Crudedragos commented 11 years ago

@Blue001 It would only apply to PZ entities. Rei's and Thaumcraft need to use the entity method public Entity.class boolean isCreatureType(EnumCreatureType type, boolean forSpawnCount) to determine and assign respectively the entity types. It was only added at the beginning of 1.5, so they are likely not even aware of it. It has the advantage over the old way of also allowing, for example, entities to show up as monsters after spawning, but not count as monsters for the monster entity count cap.

An educational campaign as was with mod specific entities is likely in order.

Links of me explaining to Bloodshot the check to use. http://www.minecraftforum.net/topic/81771-152-mo-creatures-v522-with-raccoons-ants-mini-golems-silver-skeletons-and-more-fish/page__st__51060#entry22231145 http://www.minecraftforum.net/topic/81771-152-mo-creatures-v522-with-raccoons-ants-mini-golems-silver-skeletons-and-more-fish/page__st__51060#entry22232500