McJtyMods / InControl

Be In Control of Mob Spawns and others
MIT License
46 stars 17 forks source link

Suggestion: Allow NBT Spawn Filtering #364

Closed firemaster1294 closed 1 year ago

firemaster1294 commented 1 year ago

Feel free to close this issue if this is possible - I haven’t seen a way to do this yet though.

it would be nice to have the ability to allow/disallow spawns if a mob matches a given NBT state. You could have two conditions: hasNBT or hasExactNBT. This would allow for greater control over mob spawns especially with mods that rely heavily on NBT-based mob behaviour instead of different mobs.

To go along with this, it seems Vanilla just overrides the NBT of a mob with whatever is provided by this mod. If there’s a way to extract this info beforehand (as would be needed for the above functions to work), perhaps you could store this NBT data and then give In Control users the option to either merge or override the existing data tag. Just an idea.

Thanks for taking the time to read this suggestion!

McJty commented 1 year ago

This is already possible using the "nbt" keyword