some problems with MrCrayfish's Gun Mod[Forge]
bucketBrian opened this issue ยท 11 comments
Describe the bug
1.unable to equip "MrCrayfish's Gun Mod" 's Guns to NPC
2.unable to summon NPCs which equip Guns with Attachments
Platform(s)
1.18.1-Forge_39.0.79
Environment(s)
Singleplayer
Versions
- Minecraft 1.18.1
- Taterzens 1.8.4
- MrCrayfish's Gun Mod 1.1.3
To Reproduce
problem 1:
- get into the game.
- create an NPC.
- get into the equipment mode, then hold the Guns and right click to NPC.
- the NPC won't equip the gun. (this will only happen to guns (I didn't test all of them), rest of the item from this mod will be work fine.
problem 2:
- create a NPC preset
- open the correspond json file, to the "HandItems" setting and input the code for the Guns with Attachments(it will works fine if don't add any NBT or just with "AmmoCount"). example: cgm:pistol{AmmoCount: 15, Attachments: {Scope: {id: "", Count: 1b}, Barrel: {id: "", Count: 1b}}, Color: 15961002}.
- save, and go back to game. use command to summon preset NPC.
- it will show a red text said similar to "unknown error occur".
Expected behavior
as describe above in each last step.
Logs
N/A
Additional context
N/A
We're back to the first problem then ... It might be that gun items operate differently
this is the preset json I tested.
1.zip
the preset file is work, but there was a new problem, the summoned NPC 's Gun is lost, I use the /data command and it shows that they doesn't have anything on its hands
I'm think so, right click will let player aiming, it might because it's overwrite the operation of "use".
I can't summon mobs with "Gun+Attachments", guns with no Attachments will work fine.
but mobs can collect "Gun+Attachments", at least I seen fox can do that.
Does /item replace entity <taterzen>
work then? Or have you only checked other mobs?
it should be relate to summon command, because I can equip the guns(with Attachment) by "item" command.