#How to equip an item to an entity's hand with a right click ?
1 messages · Page 1 of 1 (latest)
You can in fact achieve this through the Interact component. Take a look at vbp/entities/allay.json
You may need to set a runtime identifier of minecraft:allay in your entity's behaviour file for this to work, but from what I recall you shouldn't.
Thanks !
Is it also possible to make him directly put the armor that I hold in my hands ?
Not sure about taking items in and out of armour slots actually, sorry.
What is is you want to achieve exactly with this entity?
I'd start off by just making creating a new entity, pasting the contents of the vanilla armour stand behaviour file into it, and then giving it the armour stand runtime ID
fairly sure that stuff is hardcoded, so that'd be the only way you'd be likely to be able to replicate that.
?runtime identifiers
Yes i think too
Thank you for your help, last little question, is it normal that it removes animations since I added the runtime to it?
Could well be. A lot of the time there are funky side effects.
When using Runtime IDs, that is
Hmm
Can we run commands, like /replaceitem within the behavior
?