#How to equip an item to an entity's hand with a right click ?

1 messages · Page 1 of 1 (latest)

hazy stag
#

Hello, I would like to know how to equip an object to my entity with a right click (how an armor stand), I have already tried to do something with the "interact" component but I did not succeed :(

lament turret
#

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.

hazy stag
lament turret
#

Not sure about taking items in and out of armour slots actually, sorry.

#

What is is you want to achieve exactly with this entity?

hazy stag
#

Like Armor stand

#

Hmm Armor stand x Robot

lament turret
#

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.

hazy stag
#

giving it the armour stand runtime ID ?

#

How ? 🤔

lament turret
#

?runtime identifiers

hollow wolfBOT
hazy stag
lament turret
#

Could well be. A lot of the time there are funky side effects.

#

When using Runtime IDs, that is

hazy stag
#

Hmm

hazy stag
#

?