#3D Held Item

1 messages · Page 1 of 1 (latest)

olive flint
#

I quite literally suck at code, and I'm trying to figure out how this works, and I ended up with this, anyone able to help?
I can't see it in first person

errant nova
#

I'm guessing you want it to be held in your hand

#

I can send a template

olive flint
#

Of course!

#

I'm trying to get it to first person and third person

errant nova
#

I'll just put what I have my geometry as for my sword

olive flint
#

Ok

#

Also this is someone else's addon, and I think we ruled out the idea of the 3D model either way, but in the future I may want to use 3D items so it's still useful, thank you Alien Edds!

errant nova
#

{
"format_version": "1.10.0",
"minecraft:attachable": {
"description": {
"identifier": "minecraft:diamond_sword",
"render_controllers": [
"controller.render.item_default"
],
"materials": {
"default": "entity_alphatest",
"enchanted": "entity_alphatest_glint"
},
"textures": {
"default": "textures/models/item/diamond_sword_3D",
"enchanted": "textures/misc/enchanted_item_glint"
},
"geometry": {
"default": "geometry.3D_sword"
},
"animations": {
"first_person_hold": "animation.3D_Item.first_person_hold",
"third_person_hold": "animation.3D_Item.third_person_hold"
},
"scripts": {
"animate": [
{
"first_person_hold": "c.is_first_person"
},
{
"third_person_hold": "!c.is_first_person"
}
]
}
}
}
}

#

{
"format_version": "1.8.0",
"animations": {
"animation.3D_Item.third_person_hold": {
"loop": true,
"bones": {
"root_item": {
"rotation": [
90,
0,
0
],
"position": [
0.5,
22.5,
3.5
]
}
}
},
"animation.3D_Item.first_person_hold": {
"loop": true,
"bones": {
"root_item": {
"rotation": [
66,
60,
-60
],
"position": [
3,
23,
4
]
}
}
}
}
}

#

that should be all it needs to work

#

besides the texture

olive flint
#

Ok, thank you!