In Control!

In Control!

76M Downloads

helditem not working with mobs that spawn with items

property-owner opened this issue ยท 1 comments

commented

[ { "mob": ["minecraft:skeleton"], "seesky": "true", "result": "allow", "armorhelmet": ["minecraft:diamond_helmet"], "handitems": ["minecraft:wooden_sword"] }, { "mob": ["minecraft:zombie"], "seesky": "true", "result": "allow", "armorhelmet": ["minecraft:diamond_helmet"], "helditem": ["minecraft:wooden_sword"] } ]

I'm aware that mobs like skeletons, and zombie pigman already have an item when spawned, and therefore cannot take other held items, or if there is a way to change this than I cannot find a way to do so. In this syntax, the Zombie will spawn correctly with a wooden sword, but the skeleton will still hold its bow. Is there a way to clear these initial held items to allow another item to be held?
Thanks in advance!

commented

I found a solution: "onjoin": true