#offhand item isn't rendering
1 messages · Page 1 of 1 (latest)
what bone is it bound to?
it's my first time with item
q.item_slot_to_bone_name(c.item_slot)
are you using binding or shared bones
in the model?
if i go on binding this is shown: q.item_slot_to_bone_name(c.item_slot)
@gusty jungle
mb, sorry
how does it look in third person
does it follow the left hand bone when in offhand
but if i put it in the off hand in first person i dont see it
hmm
when i use attachables, i usually use an animation to make it render differently in 3rd person and 1st person
i do it too
can i see your attachable code
bp o rs
isnt attachable only rs?
idk
{
"format_version": "1.10.0",
"minecraft:attachable": {
"description": {
"identifier": "vapore:talismanominatore",
"render_controllers": ["controller.render.item_default"],
"materials": {
"default": "entity_emissive",
"enchanted": "entity_alphatest_glint"
},
"textures": {
"default": "textures/entity/attachable/talismanominatore",
"enchanted": "textures/misc/enchanted_item_glint"
},
"geometry": {
"default": "geometry.talismanominatore"
},
"animations": {
"first_person_hold": "animation.talismanominatore.first_person_hold",
"third_person_hold": "animation.talismanominatore.third_person_hold"
},
"scripts": {
"animate": [
{
"first_person_hold": "c.is_first_person"
},
{
"third_person_hold": "!c.is_first_person"
}
]
}
}
}
}
now im confused, you did everything right tho
i'm using entity_emissive idk if this can inpact the renderign
Materials shouldn’t mess with how it renders like that
yh
is there an animation file for offhand that i can change?
or it's minecraft mirroring it
So, it doesn’t render at all when it is in your offhand, and just your offhand nothing in main hand
it does render well in tp, but not fp
do u know why?
its because of the animation
theres one for first person in mainhand
but none for first person in offhand
You might need to make an animation for when it is in offhand.
exactly
"scripts": {
"animate": [
{
"first_person_hold": "c.is_first_person"
},
{
"third_person_hold": "!c.is_first_person"
}
if i do it what i have to write here?
{
"format_version": "1.10.0",
"minecraft:attachable": {
"description": {
"identifier": "vapore:talismanominatore",
"render_controllers": ["controller.render.item_default"],
"materials": {
"default": "entity_emissive",
"enchanted": "entity_alphatest_glint"
},
"textures": {
"default": "textures/entity/attachable/talismanominatore",
"enchanted": "textures/misc/enchanted_item_glint"
},
"geometry": {
"default": "geometry.talismanominatore"
},
"animations": {
"first_person_hold": "animation.talismanominatore.first_person_hold",
"third_person_hold": "animation.talismanominatore.third_person_hold"
},
"scripts": {
"animate": [
{
"first_person_hold": "c.is_first_person"
},
{
"third_person_hold": "!c.is_first_person"
},
{
"first_person_offhand":"c.is_first_person && q.[i've forgotten the query to check for item slot]"
}
]
}
}
}
} ```
Test if the item is in the off hand slot I think with c.item_slot != ‘main_hand’, this is from the shield animation
i'm trying it
now it render but it's not in 3d @gusty jungle
Make one for 3rd as well
"format_version": "1.10.0",
"minecraft:attachable": {
"description": {
"identifier": "vapore:talismanominatore",
"render_controllers": [
"controller.render.item_default"
],
"materials": {
"default": "entity_emissive",
"enchanted": "entity_alphatest_glint"
},
"textures": {
"default": "textures/entity/attachable/talismanominatore",
"enchanted": "textures/misc/enchanted_item_glint"
},
"geometry": {
"default": "geometry.talismanominatore"
},
"animations": {
"first_person_hold": "animation.talismanominatore.first_person_hold",
"third_person_hold": "animation.talismanominatore.third_person_hold",
"first_person_offhand": "animation.talismanominatore.first_person_offhand",
"third_person_offhand": "animation.talismanominatore.third_person_offhand"
},
"scripts": {
"animate": [
{
"first_person_hold": "c.is_first_person"
},
{
"third_person_hold": "!c.is_first_person"
},
{
"first_person_offhand": "c.is_first_person && q.item_slot != ‘main_hand’"
},
{
"third_person_offhand": "c.is_third_person && q.item_slot != ‘main_hand’"
}
]
}
}
}
}```
ok done
still isn't working
i have found the bug
q.item_slot doesn't exist
you sure?
yes
i found this
"third_person_offhand": "!c.is_first_person && query.is_item_equipped == 1"
c.item_slot not q.item_slot
q.is_item_name_any('slot.weapon.offhand', 0, '[your item name]')
this can work as well
identificator? or only name
Full name like tdb:item
identificator
the animation in blockbench is right but it render like this
"format_version": "1.10.0",
"minecraft:attachable": {
"description": {
"identifier": "vapore:talismanominatore",
"render_controllers": [
"controller.render.item_default"
],
"materials": {
"default": "entity_emissive",
"enchanted": "entity_alphatest_glint"
},
"textures": {
"default": "textures/entity/attachable/talismanominatore",
"enchanted": "textures/misc/enchanted_item_glint"
},
"geometry": {
"default": "geometry.talismanominatore"
},
"animations": {
"first_person_hold": "animation.talismanominatore.first_person_hold",
"third_person_hold": "animation.talismanominatore.third_person_hold",
"first_person_offhand": "animation.talismanominatore.first_person_offhand",
"third_person_offhand": "animation.talismanominatore.third_person_offhand"
},
"scripts": {
"animate": [
{
"first_person_hold": "c.is_first_person"
},
{
"third_person_hold": "!c.is_first_person"
},
{
"first_person_offhand": "c.is_first_person && q.is_item_name_any('slot.weapon.offhand', 0, 'vapore:talismanominatore')"
},
{
"third_person_offhand": "!c.is_first_person && q.is_item_name_any('slot.weapon.offhand', 0, 'vapore:talismanominatore')"
}
]
}
}
}
}```
do you really need to make an anim, for tp offhand?
since the problem was only with fp
the item is supposed to be held in offhand
The 3rd person isn't necessary unless if one of the other animations messes it up, which rarely occurs. Try to see if the offhand in shows without the third_person_offhand. If it doesn't show in 3rd and only 1st, then an animation would be needed to fix it. If it shows, then it doesn't need that animation
{
"format_version": "1.10.0",
"minecraft:attachable": {
"description": {
"identifier": "vapore:talismanominatore",
"render_controllers": [
"controller.render.item_default"
],
"materials": {
"default": "entity_emissive",
"enchanted": "entity_alphatest_glint"
},
"textures": {
"default": "textures/entity/attachable/talismanominatore",
"enchanted": "textures/misc/enchanted_item_glint"
},
"geometry": {
"default": "geometry.talismanominatore"
},
"animations": {
"first_person_hold": "animation.talismanominatore.first_person_hold",
"third_person_hold": "animation.talismanominatore.third_person_hold",
"first_person_offhand": "animation.talismanominatore.first_person_offhand",
"third_person_offhand": "animation.talismanominatore.third_person_offhand"
},
"scripts": {
"animate": [
{
"first_person_hold": "c.is_first_person && !q.is_item_name_any('slot.weapon.offhand', 1, 'vapore:talismanominatore')"
},
{
"third_person_hold": "!c.is_first_person"
},
{
"first_person_offhand": "c.is_first_person && q.is_item_name_any('slot.weapon.offhand', 1, 'vapore:talismanominatore')"
}
]
}
}
}
}
i have tried this code and the 3rd is working
but 1st isn't showing up
Can you change the slot number from 1 to 0. Usually slot number 0 is the first one
i have noticed that if i'm in 3rd person in game and i pause the game the animation changes
I have noticed that with my custom Armour. Don't know if it is a bug or not
but if i'm holding another item the animation is displayed correctly
thanks for helping, i will continue tomorrow
@kind galleon i have noticed that if i hold the item in mainhand and offhand it render correctly but if i hold any other thing it don't work, do you know what it might be?
I am afraid that I don’t know why that happens and how to fix it
@gusty jungle do u have any idea?
wdym by any other thing?
I think he means that if he holds anything else with it, it breaks the render