#Only use attachable in the offhand in third person

1 messages · Page 1 of 1 (latest)

fast lance
#

id like to make so my item displays a custom attachable (a bracelet here), but only when its held in the offhand. currently, as shown in the second sc, when held in the main hand, it also displays the attachable, which i dont want. i also want it so it always displays its item form in first person, even in offhand. any help?

smoky creek
smoky creek
fast lance
#

pain why not valid 😔

#

oh i think itd format version

#

yes it is

#

i think im getting there ty

#

im not getting there im so lost :flatten:

smoky creek
#

I'll later make a test on an attachable of mine so I can show you what I mean (but that takes some hours)

fast lance
#

no rush!

fast lance
#

okay, i figured it out, using an armor attachable for a held slot also overrides the held form model by default. how do i make it so the item sprite model is used in first person and third person mainhand?

#

because if i make this a head armor or something itll work properly

#

but when its an offhand armor its using the armor attachable for the first person anims too

smoky creek
fast lance
#

i know theres molang queries but i dont know what syntax would be used to change the geometry (this is an example from the wiki)

fast lance
smoky creek
#

Well you can rotate, scale and push the item around
For changing geometry you need either 2 different render controllers with conditions on which to use or 1 geometry with both possibilities and part visibility (so make it partially invisible)

fast lance
#

i mean i will note im not using animations anymore because i figured thats not what i needed here

fast lance
smoky creek
#

In the render controller section instead of "render.controller.attachable" do {"render.cintroller.attachable":"query. "}

And that for as many render controllers as you need and with the query that you want (on the website that I send you if you go to reference nad then molang then there should be a list of all usable and what they do) as soon as the query turns 1 or true the render controller will be used on the item (keep on mind that only 1 should ever be active at the same time)

I hope I did it right (otherwise you'll get an error and I'll need to look into the file where I did it tomorrow)

fast lance
#

sorry, coming back to this after a break and some pain; what exactly would this look like? im having a hard time following what you said sorry 😭

smoky creek
#

Here an example in an entity

fast lance
#

alright, i got something working! however, still shows like this in first person, when i want the item geometry applied

smoky creek
fast lance
#

my original desire kinda changed but yes. i just want it so in third person, its the armor model, and in first person, its the item model

smoky creek
fast lance
#

i just want the default appearance of an item in first person, would i need to recreate that here?

smoky creek
fast lance
#

ah. could i make the arm render with the model somehow?

smoky creek
terse widget
#

?

#

Like without an item

smoky creek
terse widget
#

That I can activate via a menu

smoky creek
terse widget
#

Ah ok

#

Can I do if the player has a specific tag it renders a hat for example

smoky creek
edgy pine
terse widget
#

Can I do that

edgy pine
terse widget
#

And what do I put in this

edgy pine
#

Put in what

terse widget
#

What does it do

edgy pine
#

U set a property in the entity’s behavior file

#

Then u check the property value

#

Like for example

#

query.property(“addon:cosmetic”) == “hat”

#

Something along those lines

terse widget
#

Oh okay and how do I trigger this to show on command by a script or command?

edgy pine
terse widget
#

Ohhhhhh

#

Thank you very much