#Entity properties to determine projectile aux val?

1 messages · Page 1 of 1 (latest)

indigo eagle
#

I have an entity that I'd like to be able to modify the arrow type of.

I want to be able to right click the entity with a tipped arrow as an interaction and then change a property to match the arrow enum:
I think I can figure out both of these parts using the snow golem shear interaction as an example.

What I want to do afterward is take the property value and pass it in to the minecraft shooter aux_val value so I don't have to make 43 different component groups. Is that possible?

Instead of:

"minecraft:shooter": {
"def": "minecraft:arrow",
"aux_val": 19
},

it would be:

"minecraft:shooter": {
"def": "minecraft:arrow",
"aux_val": [entity property value]
},

dense bear
#

I think that you're going to need to make a bunch of interact cases setting the value to each individual aux value.