MarkusBordihn / BOs-Easy-NPC

Create easily NPC for your world or for your mod.
Other
20 stars 8 forks source link

Npc Spawner Not Working #81

Closed NPCKevin96 closed 9 months ago

NPCKevin96 commented 9 months ago

Hello I recently have my team and I working on a server that we just created. We have a bunch of mods in this server and one of the mods was the easy NPC mod. The mod loads up with all the other mods just fine. But when I select one of the eggs for the spawner and try to right click it to make an NPC nothing happens all that happens is the NPC quickly is placed in within 1/2 a second it is gone. My server is through Apex hosting and I had a couple of their agents try to help and fix the issue we've tried to go to single player server which worked and I was able to place the NPC and also customize it at my leisure. But once we got over to the multiplayer world it was not working. I also uninstalled all of my other mods and just This mod installed to see if Any other mod was interfering with this one And unfortunately that isn't the case so I don't know if this mod can't work with multiplayer worlds but I just wanted to know if this was possible or this is a common bug that happens. Thank you for your time.

MarkusBordihn commented 9 months ago

Thanks for the report. There is none know bug about such behavior, but maybe we could isolate the issue.

Could you please perform the following steps and share the corresponding debug.log with me to get more insides to this.

1.) Load a new world on the server and make sure that the game difficulty is not set to peaceful with /difficulty or so. 2.) Try to spawn an NPC over the NPC spawn egg. 3.) If this is not working use the summon command like /summon easy_npc:humanoid or /summon easy_npc:humanoid_slim. 4.) If this is still not working use /summon minecraft:phantom to see if any other entities are able to spawn. 5.) Share the corresponding debug.log, which should include entries like:

[20:50:37] [Server thread/DEBUG] [Easy NPC/]: [Custom Entity Data] Define custom data item de.markusbordihn.easynpc.data.custom.CustomDataItem@1727d60b with <custom data: ACTION_EVENT_SET serializer:de.markusbordihn.easynpc.data.entity.CustomDataSerializers$1@4fedf908>
[20:50:37] [Server thread/DEBUG] [Easy NPC/]: [Custom Entity Data] Define custom data item de.markusbordihn.easynpc.data.custom.CustomDataItem@7e63b91 with <custom data: DATA_0 serializer:net.minecraft.network.syncher.EntityDataSerializers$2@172f4514>
[20:50:37] [Server thread/DEBUG] [Easy NPC/]: [Custom Entity Data] Define custom data item de.markusbordihn.easynpc.data.custom.CustomDataItem@7c955af1 with <custom data: DIALOG_DATA_SET serializer:de.markusbordihn.easynpc.data.entity.CustomDataSerializers$2@5341641d>
[20:50:37] [Server thread/DEBUG] [Easy NPC/]: [Custom Entity Data] Define custom data item de.markusbordihn.easynpc.data.custom.CustomDataItem@6c50c2a5 with <custom data: OBJECTIVE_DATA_SET serializer:de.markusbordihn.easynpc.data.entity.CustomDataSerializers$3@7b3c0ecb>
[20:50:37] [Server thread/DEBUG] [Easy NPC/]: [Custom Entity Data] Define custom data item de.markusbordihn.easynpc.data.custom.CustomDataItem@456ec6aa with <custom data: OBJECTIVE_PLAYER_SET serializer:de.markusbordihn.easynpc.data.entity.CustomDataSerializers$7@3006bfb>
[20:50:37] [Server thread/DEBUG] [Easy NPC/]: [Custom Entity Data] Define custom data item de.markusbordihn.easynpc.data.custom.CustomDataItem@73624725 with <custom data: OBJECTIVE_ENTITY_SET serializer:de.markusbordihn.easynpc.data.entity.CustomDataSerializers$8@5402612e>
[20:50:37] [Server thread/WARN] [Easy NPC/]: Legacy Easy NPC Data for Humanoid['Humanoid'/6152, l='ServerLevel[Test World 1.18.2]', x=0.00, y=0.00, z=0.00]! Will try to convert data to new format.
[20:50:37] [Server thread/INFO] [Easy NPC/]: Converting legacy objectives for Humanoid['Humanoid'/6152, l='ServerLevel[Test World 1.18.2]', x=0.00, y=0.00, z=0.00]
[20:50:37] [Server thread/DEBUG] [Easy NPC/]: Register standard objectives for Humanoid['Humanoid'/6152, l='ServerLevel[Test World 1.18.2]', x=0.00, y=0.00, z=0.00]
[20:50:37] [Server thread/DEBUG] [Easy NPC/]: - Adding goal ResetLookAtPlayerGoal for Humanoid['Humanoid'/6152, l='ServerLevel[Test World 1.18.2]', x=0.00, y=0.00, z=0.00]
[20:50:37] [Server thread/DEBUG] [Easy NPC/]: - Adding goal CustomLookAtPlayerGoal for Humanoid['Humanoid'/6152, l='ServerLevel[Test World 1.18.2]', x=0.00, y=0.00, z=0.00]
[20:50:37] [Server thread/DEBUG] [Easy NPC/]: - Adding goal CustomLookAtPlayerGoal for Humanoid['Humanoid'/6152, l='ServerLevel[Test World 1.18.2]', x=0.00, y=0.00, z=0.00]
[20:50:37] [Server thread/INFO] [Easy NPC/]: Register attribute based objectives for Humanoid['Humanoid'/6152, l='ServerLevel[Test World 1.18.2]', x=0.00, y=0.00, z=0.00]
[20:50:37] [Server thread/DEBUG] [Easy NPC/]: [EntityManager] [Add] EASY NPC entity 66ba715f-9d63-468d-977c-f5b64768a540: Humanoid['Humanoid'/6152, l='ServerLevel[Test World 1.18.2]', x=13.87, y=63.00, z=403.36]
[20:50:37] [Server thread/INFO] [minecraft/MinecraftServer]: [Dev: Summoned new Humanoid]
[20:50:37] [Render thread/DEBUG] [Easy NPC/]: [EntityManager] [Add] EASY NPC entity 66ba715f-9d63-468d-977c-f5b64768a540: Humanoid['Humanoid'/6152, l='ClientLevel', x=13.87, y=63.00, z=403.36]
[20:50:37] [Render thread/INFO] [minecraft/ChatComponent]: [CHAT] Summoned new Humanoid

In most cases something like this happens when the difficulty is set to peaceful, the gamerule doMobSpawning is disabled or when the spawn / chunk is protected with FTB Chunks or something else.