The Hordes

The Hordes

8M Downloads

Horde Scripts not overwriting handitem NBTs

BalanceecnalaB opened this issue ยท 0 comments

commented

Hi. I've been working on a pretty big project, and making scripts to give mobs random weapons and armors scaled with the day number. However, I have noticed something very odd.

In the case of zombies, they work correctly. When they spawn, armor and handitems are appropriately given to zombies depending on the day with random chance. However, when mobs already have a weapon when spawned, such as skeletons or zombie piglins, the armor will be given to them but not the weapons. In fact, when testing through horde tables, setting a handitem nbt for any mob, even air or nothing, still is not overwritten by the scripts.

I am attaching two of my scripts: One for skeletons and one for zombies. They are quite a mess, but I made sure to check that there are no formatting errors. In fact, if there were, they wouldn't be getting their armor.

P.S: I have no idea how pasting files in github works I hope it isnt just a fake link. I'll edit this if it is.

skeletons.json

zombies.json