Guard Villagers

Guard Villagers

46M Downloads

Creating guards from Villagers with jobs in creative makes them disapear

AlyaVie opened this issue ยท 2 comments

commented

Version : 1.16.5
World : Single player
Optifine : yes
Modloader : Forge-36.2.23
Mod version : guardvillagers-1.16.5.1.2.6

Current behavior :
In creative, giving a sword to a villager with a job makes it disappear

Intended behavior :
In creative, villagers with a job makes should refuse the sword

Summary, give a sword to a villager:
Creative:
With job -> disappear
Without job -> becomes guard

Survival:
With job -> refuse the sword
Without job -> becomes guard

I am currently playing a modpack (VaultHunter), and tried adding the guardvillagers mod. To test if it is working, I went into creative. When I tried to create guards from newly spawned villagers, there was no problem. I then went to my villagers hall to check if there was no problem with already existing villagers. I tried to give an iron sword to a villager with a job, and it simply disapeared. I spawned a new villager, gave it a job, gave it a sword and it disapeared again.
I went to a previously existing (before installing this mod) villager without a job, the guard worked fine.
I then went into survival.
I could transform villagers without a job into guards, and villagers with jobs didn't accept the sword. It was intended behavior.
When dispearing, no particule are seen.

Logs when loading the world :
[14:55:08] [main/ERROR]: Pool element: Not a JSON object: null
[14:55:08] [main/INFO]: Injecting existing registry data into this CLIENT instance
[14:55:08] [main/WARN]: Registry minecraft:item: Object did not get ID it asked for. Name: guardvillagers:guard_spawn_egg Expected: 1646 Got: 11779
[14:55:08] [main/WARN]: Registry minecraft:item: Object did not get ID it asked for. Name: guardvillagers:iron_golem_spawn_egg Expected: 1647 Got: 11780
[14:55:08] [main/WARN]: Registry minecraft:item: Object did not get ID it asked for. Name: guardvillagers:snow_golem_spawn_egg Expected: 1648 Got: 11781
[14:55:08] [main/WARN]: Registry minecraft:item: Object did not get ID it asked for. Name: guardvillagers:illusioner_spawn_egg Expected: 1649 Got: 11782
[14:55:08] [main/WARN]: Registry minecraft:entity_type: Object did not get ID it asked for. Name: guardvillagers:guard Expected: 109 Got: 270
[14:55:21] [main/INFO]: Injecting data pack finder.

It is the only time when guard villagers is mentionned in my logs

Here is a video of giving a sword to a villager with a job in creative

Minecraft_.1.16.5.-.Singleplayer.-.Creative.mp4

.

commented

Oh, the log was latest.log.

Here is a debug.log when I recreate the bug

profile-results-2022-04-19_15.55.52.txt

commented

Sorry but 1.16.5 isn't supported anymore, it seems like your issue is probably being caused by another mod conflicting since I can
t seem to recreate it alone, to see which mod is conflicting try removing each mod by one.