Blacklist on blocks to avoid stepping on
Shibva opened this issue ยท 1 comments
Is your feature request related to a problem? Please describe.
This request is to a bug/problem ive encountered but figured id make a suggestion request on it to solve the issue in general instead of one having to patch it EACH AND EVERY time a problem block arises.
Describe the solution you'd like
INstead of just adding the block to the mod, why not just add a config option to tell the AI to avoid walking on top of blocks that are considered dangerous or a way to tell them what some block is considered based on already programed things in a list wtih 2 statements, one being the block you want to target and the second being what block it should be treated as based on existing behavior
example; lets say you have a block that they keep touching that hurts them like it would for a cactus, you create a value in the list that would be like "mod:blockName, minecraft:cactus" and that will tell the pathfinder to treat any block like that as if it was a cactus hazard.
Describe alternatives you've considered
if the idea is a bit too complex then simply include some way to add blocks to avoid walking on or encode a method to detect if walking on a block from another mod may be dangerous (the stove in this case behaving like magma)
Additional context
Good news: I made a slightly custom pathfinder and this is indeed possible. Bad news, it's buggy (#522) and by nature incompatible with path finding improvement mods.
I will add it, simply because its already possible, but I strongly suggest looking for a dedicated mod designed to improve overall path finding rather than fixing a single entity. I may disable my custom pathfinder by default at any time.