mirror of
https://github.com/TechnoVisionDev/Forge-Modding-Tutorial-1.16
synced 2026-03-02 03:40:08 +00:00
Advanced block models
This commit is contained in:
@@ -8,7 +8,7 @@ issueTrackerURL="http://my.issue.tracker/" #optional
|
||||
|
||||
modId="tutorial" #mandatory
|
||||
|
||||
version="1.15.2-1.0.0" #mandatory
|
||||
version="1.16.1-1.0.0" #mandatory
|
||||
|
||||
displayName="Tutorial Mod" #mandatory
|
||||
|
||||
@@ -16,7 +16,7 @@ updateJSONURL="http://myurl.me/" #optional
|
||||
|
||||
displayURL="http://example.com/" #optional
|
||||
|
||||
logoFile="examplemod.png" #optional
|
||||
logoFile="logo.png" #optional
|
||||
|
||||
credits="Thanks to my incredible subscribers!" #optional
|
||||
|
||||
|
||||
8
src/main/resources/assets/tutorial/blockstates/oven.json
Normal file
8
src/main/resources/assets/tutorial/blockstates/oven.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"variants": {
|
||||
"facing=north": { "model": "tutorial:block/oven" },
|
||||
"facing=south": { "model": "tutorial:block/oven", "y": 180},
|
||||
"facing=west": { "model": "tutorial:block/oven", "y": 270},
|
||||
"facing=east": { "model": "tutorial:block/oven", "y": 90}
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
"item.tutorial.poison_apple": "Poison Apple",
|
||||
"block.tutorial.ruby_block": "Block of Ruby",
|
||||
"block.tutorial.ruby_ore": "Ruby Ore",
|
||||
"block.tutorial.oven": "Oven",
|
||||
"itemGroup.tutorialTab": "Tutorial",
|
||||
"item.tutorial.ruby_sword": "Ruby Sword",
|
||||
"item.tutorial.ruby_pickaxe": "Ruby Pickaxe",
|
||||
|
||||
255
src/main/resources/assets/tutorial/models/block/oven.json
Normal file
255
src/main/resources/assets/tutorial/models/block/oven.json
Normal file
@@ -0,0 +1,255 @@
|
||||
{
|
||||
"credit": "Made with Blockbench",
|
||||
"textures": {
|
||||
"0": "tutorial:blocks/oven",
|
||||
"particle": "tutorial:blocks/oven"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [0, 2, 1],
|
||||
"to": [3, 3, 2],
|
||||
"faces": {
|
||||
"north": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"east": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"south": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"west": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"up": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"down": {"uv": [9, 4, 12, 5], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [0, 0, 1],
|
||||
"to": [1, 2, 2],
|
||||
"faces": {
|
||||
"north": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"east": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"south": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"west": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"up": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"down": {"uv": [9, 4, 12, 5], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [0, 2, 14],
|
||||
"to": [3, 3, 15],
|
||||
"faces": {
|
||||
"north": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"east": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"south": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"west": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"up": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"down": {"uv": [9, 4, 12, 5], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [0, 0, 14],
|
||||
"to": [1, 2, 15],
|
||||
"faces": {
|
||||
"north": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"east": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"south": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"west": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"up": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"down": {"uv": [9, 4, 12, 5], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [13, 2, 14],
|
||||
"to": [16, 3, 15],
|
||||
"faces": {
|
||||
"north": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"east": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"south": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"west": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"up": {"uv": [9, 4, 12, 5], "rotation": 180, "texture": "#0"},
|
||||
"down": {"uv": [9, 4, 12, 5], "rotation": 180, "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [15, 0, 14],
|
||||
"to": [16, 2, 15],
|
||||
"faces": {
|
||||
"north": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"east": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"south": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"west": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"up": {"uv": [9, 4, 12, 5], "rotation": 180, "texture": "#0"},
|
||||
"down": {"uv": [9, 4, 12, 5], "rotation": 180, "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [13, 2, 1],
|
||||
"to": [16, 3, 2],
|
||||
"faces": {
|
||||
"north": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"east": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"south": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"west": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"up": {"uv": [9, 4, 12, 5], "rotation": 180, "texture": "#0"},
|
||||
"down": {"uv": [9, 4, 12, 5], "rotation": 180, "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [15, 0, 1],
|
||||
"to": [16, 2, 2],
|
||||
"faces": {
|
||||
"north": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"east": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"south": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"west": {"uv": [9, 4, 12, 5], "texture": "#0"},
|
||||
"up": {"uv": [9, 4, 12, 5], "rotation": 180, "texture": "#0"},
|
||||
"down": {"uv": [9, 4, 12, 5], "rotation": 180, "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Base",
|
||||
"from": [2, 1, 2],
|
||||
"to": [14, 9, 14],
|
||||
"faces": {
|
||||
"north": {"uv": [3, 3, 6, 5], "texture": "#0"},
|
||||
"east": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"south": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"west": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"up": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"down": {"uv": [0, 3, 3, 5], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "semi-top",
|
||||
"from": [1, 9, 1],
|
||||
"to": [15, 10, 15],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"east": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"south": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"west": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"up": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"down": {"uv": [0, 3, 3, 5], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "top",
|
||||
"from": [3, 10, 3],
|
||||
"to": [13, 11, 13],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 3, 2, 5], "texture": "#0"},
|
||||
"east": {"uv": [0, 3, 2, 5], "texture": "#0"},
|
||||
"south": {"uv": [0, 3, 2, 5], "texture": "#0"},
|
||||
"west": {"uv": [0, 3, 2, 5], "texture": "#0"},
|
||||
"up": {"uv": [0, 3, 2, 5], "texture": "#0"},
|
||||
"down": {"uv": [0, 3, 2, 5], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "fume pipe",
|
||||
"from": [6, 11, 12],
|
||||
"to": [10, 16, 13],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"east": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"south": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"west": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"up": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"down": {"uv": [0, 3, 3, 5], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "fume pipe",
|
||||
"from": [6, 3, 14],
|
||||
"to": [10, 16, 15],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"east": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"south": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"west": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"up": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"down": {"uv": [0, 3, 3, 5], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "fume pipe",
|
||||
"from": [6, 10, 13],
|
||||
"to": [10, 16, 14],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"east": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"south": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"west": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"up": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"down": {"uv": [0, 3, 3, 5], "texture": "#0"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "fume pipe",
|
||||
"from": [6, 12, 15],
|
||||
"to": [10, 16, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"east": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"south": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"west": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"up": {"uv": [0, 3, 3, 5], "texture": "#0"},
|
||||
"down": {"uv": [0, 3, 3, 5], "texture": "#0"}
|
||||
}
|
||||
}
|
||||
],
|
||||
"display": {
|
||||
"thirdperson_righthand": {
|
||||
"rotation": [41, 0, 0],
|
||||
"translation": [0, 1, 0],
|
||||
"scale": [0.3, 0.3, 0.3]
|
||||
},
|
||||
"thirdperson_lefthand": {
|
||||
"rotation": [41, 0, 0],
|
||||
"translation": [0, 1, 0],
|
||||
"scale": [0.3, 0.3, 0.3]
|
||||
},
|
||||
"firstperson_righthand": {
|
||||
"scale": [0.3, 0.3, 0.3]
|
||||
},
|
||||
"firstperson_lefthand": {
|
||||
"scale": [0.3, 0.3, 0.3]
|
||||
},
|
||||
"ground": {
|
||||
"translation": [0, 2.5, 0],
|
||||
"scale": [0.3, 0.3, 0.3]
|
||||
},
|
||||
"gui": {
|
||||
"rotation": [13, 19, 0],
|
||||
"scale": [0.7, 0.7, 0.7]
|
||||
},
|
||||
"head": {
|
||||
"translation": [0, 12.75, 0]
|
||||
},
|
||||
"fixed": {
|
||||
"translation": [0, 1.75, 2.75]
|
||||
}
|
||||
},
|
||||
"groups": [
|
||||
{
|
||||
"name": "Leg1",
|
||||
"origin": [8, 8, 8],
|
||||
"children": [0, 1]
|
||||
},
|
||||
{
|
||||
"name": "leg2",
|
||||
"origin": [8, 8, 8],
|
||||
"children": [2, 3]
|
||||
},
|
||||
{
|
||||
"name": "leg3",
|
||||
"origin": [8, 8, 8],
|
||||
"children": [4, 5]
|
||||
},
|
||||
{
|
||||
"name": "leg 4",
|
||||
"origin": [8, 8, 8],
|
||||
"children": [6, 7]
|
||||
}, 8, 9, 10,
|
||||
{
|
||||
"name": "group",
|
||||
"origin": [8, 8, 8],
|
||||
"children": [11, 12, 13, 14]
|
||||
}
|
||||
]
|
||||
}
|
||||
3
src/main/resources/assets/tutorial/models/item/oven.json
Normal file
3
src/main/resources/assets/tutorial/models/item/oven.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"parent": "tutorial:block/oven"
|
||||
}
|
||||
BIN
src/main/resources/assets/tutorial/textures/blocks/oven.png
Normal file
BIN
src/main/resources/assets/tutorial/textures/blocks/oven.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/main/resources/logo.png
Normal file
BIN
src/main/resources/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Reference in New Issue
Block a user