Improved Mobs (Forge)

Improved Mobs (Forge)

8M Downloads

[Feature Request]: Support for blocklisted containers mobs are not allowed to steal from

FenHex opened this issue ยท 0 comments

commented

Suggestions

The stealing mechanic works mostly as intended, but currently all storage blocks are considered in the algorithm to steal from and there's no way to stop that, leading to pathfinding and stealing from weird blocks like hoppers and brewing stands, plus other strange ones from other mods. Similar to blocks being configurable as unbreakable it would be great of they were also configurable to be unstealable, with maybe some way to prevent locked containers from being stolen from as well. Otherwise this is an extremely customizable mod with lots of configurations and mod integrations that work seamlessly, and very well done overall.

Solution

Best to add a "valid steal target" blocklist to the config file, same as the blockbreaking one, and give it a whitelist option. I tried manually overwriting it with some success, but I don't have the knowhow to differentiate tags like {Lock:} from tagless blocks in this format, let alone modded locking code. (Maybe run a rightclickEvent on the block and determine if it's stealable if the mob can or can't access it, assuming they were a player?) For all I know it's not possible or feasible, however it would be another good addition as a "can mobs steal from locked containers" true/false variable.