Skip to content

Commit

Permalink
custom 3d item model
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaupenjoe committed Jan 2, 2025
1 parent 0476abe commit 379553b
Show file tree
Hide file tree
Showing 5 changed files with 292 additions and 4 deletions.
290 changes: 286 additions & 4 deletions src/main/resources/assets/tutorialmod/models/item/radiation_staff.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,288 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "tutorialmod:item/radiation_staff"
}
"credit": "Made with Blockbench",
"texture_size": [32, 32],
"textures": {
"0": "tutorialmod:item/radiation_staff",
"particle": "tutorialmod:item/radiation_staff"
},
"elements": [
{
"name": "staff_grip",
"from": [7.25, 0, 7.25],
"to": [8.75, 11, 8.75],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 6.5, 8]},
"faces": {
"north": {"uv": [0.5, 3, 1, 8.5], "texture": "#0"},
"east": {"uv": [0, 3, 0.5, 8.5], "texture": "#0"},
"south": {"uv": [1.5, 3, 2, 8.5], "texture": "#0"},
"west": {"uv": [1, 3, 1.5, 8.5], "texture": "#0"},
"up": {"uv": [1, 3, 0.5, 2.5], "texture": "#0"},
"down": {"uv": [1.5, 2.5, 1, 3], "texture": "#0"}
}
},
{
"name": "staff_pommel_ring_bottom",
"from": [7, 1, 7],
"to": [9, 2, 9],
"faces": {
"north": {"uv": [6, 8, 7, 8.5], "texture": "#0"},
"east": {"uv": [5, 8, 6, 8.5], "texture": "#0"},
"south": {"uv": [8, 8, 9, 8.5], "texture": "#0"},
"west": {"uv": [7, 8, 8, 8.5], "texture": "#0"},
"up": {"uv": [7, 8, 6, 7], "texture": "#0"},
"down": {"uv": [8, 7, 7, 8], "texture": "#0"}
}
},
{
"name": "staff_pommel_ring_top",
"from": [7, 9, 7],
"to": [9, 10, 9],
"faces": {
"north": {"uv": [7, 2.5, 8, 3], "texture": "#0"},
"east": {"uv": [6, 2.5, 7, 3], "texture": "#0"},
"south": {"uv": [9, 2.5, 10, 3], "texture": "#0"},
"west": {"uv": [8, 2.5, 9, 3], "texture": "#0"},
"up": {"uv": [8, 2.5, 7, 1.5], "texture": "#0"},
"down": {"uv": [9, 1.5, 8, 2.5], "texture": "#0"}
}
},
{
"name": "chappe_base",
"from": [7, 11, 7],
"to": [9, 12, 9],
"faces": {
"north": {"uv": [2.5, 9, 3.5, 9.5], "texture": "#0"},
"east": {"uv": [1.5, 9, 2.5, 9.5], "texture": "#0"},
"south": {"uv": [4.5, 9, 5.5, 9.5], "texture": "#0"},
"west": {"uv": [3.5, 9, 4.5, 9.5], "texture": "#0"},
"up": {"uv": [3.5, 9, 2.5, 8], "texture": "#0"},
"down": {"uv": [4.5, 8, 3.5, 9], "texture": "#0"}
}
},
{
"name": "crystal_base_centre",
"from": [6.5, 12, 6.5],
"to": [9.5, 13, 9.5],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 12.5, 8]},
"faces": {
"north": {"uv": [1.5, 1.5, 3, 2], "texture": "#0"},
"east": {"uv": [0, 1.5, 1.5, 2], "texture": "#0"},
"south": {"uv": [4.5, 1.5, 6, 2], "texture": "#0"},
"west": {"uv": [3, 1.5, 4.5, 2], "texture": "#0"},
"up": {"uv": [3, 1.5, 1.5, 0], "texture": "#0"},
"down": {"uv": [4.5, 0, 3, 1.5], "texture": "#0"}
}
},
{
"from": [9, 12.4, 7.1],
"to": [10, 16.4, 8.9],
"rotation": {"angle": -45, "axis": "z", "origin": [8, 13, 8]},
"faces": {
"north": {"uv": [9, 9.5, 9.5, 11.5], "texture": "#0"},
"east": {"uv": [8.5, 9.5, 9, 11.5], "texture": "#0"},
"south": {"uv": [10, 9.5, 10.5, 11.5], "texture": "#0"},
"west": {"uv": [9.5, 9.5, 10, 11.5], "texture": "#0"},
"up": {"uv": [9.5, 9.5, 9, 9], "texture": "#0"},
"down": {"uv": [10, 9, 9.5, 9.5], "texture": "#0"}
}
},
{
"from": [11, 12.4, 7],
"to": [12, 16, 9],
"rotation": {"angle": 22.5, "axis": "z", "origin": [8, 13, 8]},
"faces": {
"north": {"uv": [7, 5, 7.5, 6.5], "texture": "#0"},
"east": {"uv": [6, 5, 7, 6.5], "texture": "#0"},
"south": {"uv": [8.5, 5, 9, 6.5], "texture": "#0"},
"west": {"uv": [7.5, 5, 8.5, 6.5], "texture": "#0"},
"up": {"uv": [7.5, 5, 7, 4], "texture": "#0"},
"down": {"uv": [8, 4, 7.5, 5], "texture": "#0"}
}
},
{
"from": [8, 17.25, 7.1],
"to": [9, 19.25, 8.9],
"rotation": {"angle": -22.5, "axis": "z", "origin": [8, 13, 8]},
"faces": {
"north": {"uv": [10, 4, 10.5, 5], "texture": "#0"},
"east": {"uv": [9.5, 4, 10, 5], "texture": "#0"},
"south": {"uv": [11, 4, 11.5, 5], "texture": "#0"},
"west": {"uv": [10.5, 4, 11, 5], "texture": "#0"},
"up": {"uv": [10.5, 4, 10, 3.5], "texture": "#0"},
"down": {"uv": [11, 3.5, 10.5, 4], "texture": "#0"}
}
},
{
"from": [6, 12.4, 7.1],
"to": [7, 16.4, 8.9],
"rotation": {"angle": 45, "axis": "z", "origin": [8, 13, 8]},
"faces": {
"north": {"uv": [6.5, 9.5, 7, 11.5], "texture": "#0"},
"east": {"uv": [6, 9.5, 6.5, 11.5], "texture": "#0"},
"south": {"uv": [7.5, 9.5, 8, 11.5], "texture": "#0"},
"west": {"uv": [7, 9.5, 7.5, 11.5], "texture": "#0"},
"up": {"uv": [7, 9.5, 6.5, 9], "texture": "#0"},
"down": {"uv": [7.5, 9, 7, 9.5], "texture": "#0"}
}
},
{
"from": [4, 12.4, 7],
"to": [5, 16, 9],
"rotation": {"angle": -22.5, "axis": "z", "origin": [8, 13, 8]},
"faces": {
"north": {"uv": [3.5, 6, 4, 7.5], "texture": "#0"},
"east": {"uv": [2.5, 6, 3.5, 7.5], "texture": "#0"},
"south": {"uv": [5, 6, 5.5, 7.5], "texture": "#0"},
"west": {"uv": [4, 6, 5, 7.5], "texture": "#0"},
"up": {"uv": [4, 6, 3.5, 5], "texture": "#0"},
"down": {"uv": [4.5, 5, 4, 6], "texture": "#0"}
}
},
{
"from": [7, 17.25, 7.1],
"to": [8, 19.25, 8.9],
"rotation": {"angle": 22.5, "axis": "z", "origin": [8, 13, 8]},
"faces": {
"north": {"uv": [10, 0.5, 10.5, 1.5], "texture": "#0"},
"east": {"uv": [9.5, 0.5, 10, 1.5], "texture": "#0"},
"south": {"uv": [11, 0.5, 11.5, 1.5], "texture": "#0"},
"west": {"uv": [10.5, 0.5, 11, 1.5], "texture": "#0"},
"up": {"uv": [10.5, 0.5, 10, 0], "texture": "#0"},
"down": {"uv": [11, 0, 10.5, 0.5], "texture": "#0"}
}
},
{
"from": [7, 15, 7],
"to": [9, 17, 9],
"rotation": {"angle": 45, "axis": "z", "origin": [8, 16, 8]},
"faces": {
"north": {"uv": [3.5, 3.5, 4.5, 4.5], "texture": "#0"},
"east": {"uv": [2.5, 3.5, 3.5, 4.5], "texture": "#0"},
"south": {"uv": [5.5, 3.5, 6.5, 4.5], "texture": "#0"},
"west": {"uv": [4.5, 3.5, 5.5, 4.5], "texture": "#0"},
"up": {"uv": [4.5, 3.5, 3.5, 2.5], "texture": "#0"},
"down": {"uv": [5.5, 2.5, 4.5, 3.5], "texture": "#0"}
}
},
{
"from": [6.2, 9.05, 7.75],
"to": [6.7, 11.3, 8.25],
"rotation": {"angle": -45, "axis": "z", "origin": [6.75, 10, 8]},
"faces": {
"north": {"uv": [10, 6.5, 10, 7.5], "texture": "#0"},
"east": {"uv": [10, 6.5, 10, 7.5], "texture": "#0"},
"south": {"uv": [10, 6.5, 10, 7.5], "texture": "#0"},
"west": {"uv": [10, 6.5, 10, 7.5], "texture": "#0"},
"up": {"uv": [10, 6.5, 10, 6.5], "texture": "#0"},
"down": {"uv": [10, 6.5, 10, 6.5], "texture": "#0"}
}
},
{
"from": [6, 8.75, 7.75],
"to": [7.75, 9.25, 8.25],
"rotation": {"angle": -45, "axis": "z", "origin": [6.75, 9, 8]},
"faces": {
"north": {"uv": [9.5, 6.5, 10, 6.5], "rotation": 90, "texture": "#0"},
"east": {"uv": [9.5, 6.5, 9.5, 6.5], "rotation": 270, "texture": "#0"},
"south": {"uv": [10, 6.5, 10.5, 6.5], "rotation": 270, "texture": "#0"},
"west": {"uv": [10, 6.5, 10, 6.5], "rotation": 270, "texture": "#0"},
"up": {"uv": [10, 6.5, 9.5, 6.5], "rotation": 270, "texture": "#0"},
"down": {"uv": [10.5, 6.5, 10, 6.5], "rotation": 270, "texture": "#0"}
}
},
{
"from": [8.25, 8.75, 7.75],
"to": [10, 9.25, 8.25],
"rotation": {"angle": 45, "axis": "z", "origin": [9.25, 9, 8]},
"faces": {
"north": {"uv": [9.5, 7, 10, 7], "rotation": 90, "texture": "#0"},
"east": {"uv": [9.5, 7, 9.5, 7], "rotation": 270, "texture": "#0"},
"south": {"uv": [10, 7, 10.5, 7], "rotation": 270, "texture": "#0"},
"west": {"uv": [10, 7, 10, 7], "rotation": 270, "texture": "#0"},
"up": {"uv": [10, 7, 9.5, 7], "rotation": 270, "texture": "#0"},
"down": {"uv": [10.5, 7, 10, 7], "rotation": 270, "texture": "#0"}
}
},
{
"from": [9.3, 9.05, 7.75],
"to": [9.8, 11.3, 8.25],
"rotation": {"angle": 45, "axis": "z", "origin": [9.25, 10, 8]},
"faces": {
"north": {"uv": [10, 6.5, 10, 7.5], "texture": "#0"},
"east": {"uv": [10, 6.5, 10, 7.5], "texture": "#0"},
"south": {"uv": [10, 6.5, 10, 7.5], "texture": "#0"},
"west": {"uv": [10, 6.5, 10, 7.5], "texture": "#0"},
"up": {"uv": [10, 6.5, 10, 6.5], "texture": "#0"},
"down": {"uv": [10, 6.5, 10, 6.5], "texture": "#0"}
}
}
],
"display": {
"thirdperson_righthand": {
"translation": [0, 1.5, 1.5]
},
"thirdperson_lefthand": {
"translation": [0, 1.5, 1.5]
},
"firstperson_lefthand": {
"rotation": [0, -28, 0]
},
"ground": {
"rotation": [80.01, 25.34, -128.08],
"translation": [0, -0.5, 0]
},
"gui": {
"rotation": [0, 0, -46.5],
"translation": [-1.75, -1.75, 0]
},
"head": {
"rotation": [-90, 0, 0],
"translation": [0, 6, 0]
},
"fixed": {
"rotation": [180, -180, 180],
"translation": [0, -1.25, 0]
}
},
"groups": [
{
"name": "hilt",
"origin": [0, 0, 0],
"color": 0,
"children": [
0,
1,
2,
{
"name": "chappe",
"origin": [0, 0, 0],
"color": 0,
"children": [3]
}
]
},
{
"name": "clinger_base",
"origin": [8, 8, 8],
"color": 0,
"children": [4]
},
{
"name": "staff_tip_east",
"origin": [8, 13, 8],
"color": 0,
"children": [5, 6, 7]
},
{
"name": "staff_tip_west",
"origin": [8, 13, 8],
"color": 0,
"children": [8, 9, 10]
},
11,
12,
13,
14,
15
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "tutorialmod:item/radiation_staff_2d"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 379553b

Please sign in to comment.