Marker for NPC pathing/NPC spawner fixes
norfaremc opened this issue ยท 3 comments
Hello there! I'd love to have an item that you can use in-game to create a specific pathway for NPCs to walk, like a specific route that guards will walk on. Very much like Minecolonie's guard pathing item. [Link] (https://minecolonies.com/wiki/systems/pathing/)
- Also would love to be able to create a shape via pathing blocks that NPCs can walk in. Right now, the "walk around home" feature is EXCELLENT! However, being able to control how big their "home" walking region would be even better.
Also, it seems that the NPC spawners cause a lot of problems as you cannot control how many truly spawn. I can set it to spawn one at a time, but they continue to spawn at intervals, eventually my region is filled up by the same NPC. Having the ability to make sure that only one can spawn at a time would be ideal.
For example: NPC spawns, player kills NPC, so another one spawns. Only one NPC is present at a time.
Additionally, having a command to "unlock" a spawner would be... amazing. I'd love to place these spawners in certain regions (creating bosses or special NPCs), that only spawn said NPC when the player unlocks it via a command (FTB Quests would be the way players can unlock this spawn).
Also, it seems that the NPC spawners cause a lot of problems as you cannot control how many truly spawn. I can set it to spawn one at a time, but they continue to spawn at intervals, eventually my region is filled up by the same NPC. Having the ability to make sure that only one can spawn at a time would be ideal. For example: NPC spawns, player kills NPC, so another one spawns. Only one NPC is present at a time.
I have one boss spawn working:
required player range: 16
delay: 60
max nearby entities: 1
spawn count: 1
despawn range 64
I support the idea with waypoints for npc
I also miss a command that would turn on the spawner (for example, after opening the door to the dungeon), and then turn it off after killing the boss.
At the very least, it would be great to be able to activate it with redstone and a command block.
I tried to do it this way and now the spawner works only if there is a signal, this solved my problem:
// Common\src\main\java\de\markusbordihn\easynpc\block\entity\BaseEasyNPCSpawnerBlockEntity.java
public static void spawnTick( /*...*/) {
boolean hasRedstoneSignal = level.hasNeighborSignal(blockPos);
if (!blockEntity.checkSpawnConditions() || !hasRedstoneSignal) {
return;
}
/*...*/
}
Also, it seems that the NPC spawners cause a lot of problems as you cannot control how many truly spawn. I can set it to spawn one at a time, but they continue to spawn at intervals, eventually my region is filled up by the same NPC. Having the ability to make sure that only one can spawn at a time would be ideal. For example: NPC spawns, player kills NPC, so another one spawns. Only one NPC is present at a time.
I found the problem, npcs to spawn infinitely even if you specify only one, once they run away from the spawner If the npc is at the spawner - no additional npcs spawn
Another pathing request