stairs, slabs and similar

This commit is contained in:
Kaupenjoe
2023-07-28 20:44:45 +02:00
parent de2ac013fb
commit a54dff03b0
74 changed files with 1421 additions and 9 deletions

View File

@@ -1,6 +1,15 @@
// 1.20.1 2023-07-28T17:37:52.3060132 Item Models: tutorialmod
// 1.20.1 2023-07-28T20:39:56.8441302 Item Models: tutorialmod
93719e53df04c62d91023fe733206eb93b7aac86 assets/tutorialmod/models/item/metal_detector.json
d56de8e6898d1c12a15eca045badafe1947aa387 assets/tutorialmod/models/item/pine_cone.json
d24305376f58c1ef118279a5c8f5b087a07b1d47 assets/tutorialmod/models/item/raw_sapphire.json
0a16bffc527696b64e4304b7efccfda93e2b9422 assets/tutorialmod/models/item/sapphire.json
ee95c0df3b8341e73bc7488bf7b22013e5452930 assets/tutorialmod/models/item/sapphire_button.json
5fb321ce210e610f7aa0b54b94dd60600b4799eb assets/tutorialmod/models/item/sapphire_door.json
8f9a97fbc1219f33829e6052616569467b572412 assets/tutorialmod/models/item/sapphire_fence.json
2e3c5e7d4fb6b7c1119a061cffcf78342a084c25 assets/tutorialmod/models/item/sapphire_fence_gate.json
8adde596706bbd0111ed7a881fbf16718ca981ec assets/tutorialmod/models/item/sapphire_pressure_plate.json
0248b67e69dc9ca7628b13de19dc4e8b21e625a7 assets/tutorialmod/models/item/sapphire_slab.json
e9aa9e3feee2e040f2908d291e5fa066bb7904c6 assets/tutorialmod/models/item/sapphire_stairs.json
57b0c78a4d68b08f0db44e21a63411abf9c21b70 assets/tutorialmod/models/item/sapphire_trapdoor.json
8822d7daa71ae6a7f4091c85362a2480e52d0c06 assets/tutorialmod/models/item/sapphire_wall.json
0f4c6f5df2121954f3a0de1eb8e66d8c587fed43 assets/tutorialmod/models/item/strawberry.json

View File

@@ -1,17 +1,55 @@
// 1.20.1 2023-07-28T17:37:52.3049614 Block States: tutorialmod
// 1.20.1 2023-07-28T20:22:56.9645761 Block States: tutorialmod
a3ad172be3e203ff6840db063558f809a86ca15a assets/tutorialmod/blockstates/deepslate_sapphire_ore.json
890efea75d7398469e0d7d5704472303c35fae62 assets/tutorialmod/blockstates/end_stone_sapphire_ore.json
0198f629d0db6eb40ebd91067bbe631626116b54 assets/tutorialmod/blockstates/nether_sapphire_ore.json
2f46112fe9e6610ea4c37e87e511da1849b54274 assets/tutorialmod/blockstates/raw_sapphire_block.json
d02d1f6c412fc7b220ed18e30956d68f9a29bbb3 assets/tutorialmod/blockstates/sapphire_block.json
70b8dc38442f9b57d24a192f9f33ae184e440f1d assets/tutorialmod/blockstates/sapphire_button.json
006702ede410fc74af4fd6214be4b0c75a919178 assets/tutorialmod/blockstates/sapphire_door.json
4e831fdfbca9c70f1c13e8f88a709b3dd414f7e4 assets/tutorialmod/blockstates/sapphire_fence.json
d3e997c5a1ee80ffc9c9781a0576823f09a9e5b2 assets/tutorialmod/blockstates/sapphire_fence_gate.json
e3d9b9d4b3a785fcfdd6646f329ce762f8520c37 assets/tutorialmod/blockstates/sapphire_ore.json
2b8693dec21a367eadbbab73f5e71596dddd2840 assets/tutorialmod/blockstates/sapphire_pressure_plate.json
c0911372696bafd0e2670d6e92d99524df11bfb7 assets/tutorialmod/blockstates/sapphire_slab.json
f0189f740d5f66bdbf03bf833b7f89a0439615f8 assets/tutorialmod/blockstates/sapphire_stairs.json
2947fb963b5b0a276a97b1ad8e27a8aa20543287 assets/tutorialmod/blockstates/sapphire_trapdoor.json
2af36ae7d141d045a91f520bcc8da0c216bf2ccb assets/tutorialmod/blockstates/sapphire_wall.json
7e439f9c39ea91be588ddc78cf4cd903b5b9cb70 assets/tutorialmod/blockstates/sound_block.json
f98cb6175399c28ce46a77b4e68664303bc2c3d3 assets/tutorialmod/models/block/deepslate_sapphire_ore.json
0c40efccb23d85e5bdf98a041a64a110359aed7c assets/tutorialmod/models/block/end_stone_sapphire_ore.json
5df59719eaf8bf42bcfeee7e2154e96a044c2703 assets/tutorialmod/models/block/nether_sapphire_ore.json
44cf187b6c956a3e79927dd84615b47b1bfe4ff0 assets/tutorialmod/models/block/raw_sapphire_block.json
7fbf9623622901217c1f548068b550115551eb45 assets/tutorialmod/models/block/sapphire_block.json
30598644a76a45a2883a5b1dca9e271d809081b9 assets/tutorialmod/models/block/sapphire_button.json
94b23b08013d2fba4a9689aea215619392e9ef30 assets/tutorialmod/models/block/sapphire_button_pressed.json
7066e91e2a6897b3f1308568949a6d87743bb727 assets/tutorialmod/models/block/sapphire_door_bottom_left.json
1da45a7b7cc03bd8d6dbf9a9da87ed6bc61a077b assets/tutorialmod/models/block/sapphire_door_bottom_left_open.json
c96f72fc089294d57b2d56c361b7f77384813878 assets/tutorialmod/models/block/sapphire_door_bottom_right.json
226ee4f04daf4e615b55a73e77857bc1025ac837 assets/tutorialmod/models/block/sapphire_door_bottom_right_open.json
ee8d55313e1a76b0e3a0c8bed9734ec7c9e9b91c assets/tutorialmod/models/block/sapphire_door_top_left.json
fdebcdeb48de43bff192b7a64a5cef7e00868b76 assets/tutorialmod/models/block/sapphire_door_top_left_open.json
88779ea2e49f406ac8f2a91ade5ece0bf271b631 assets/tutorialmod/models/block/sapphire_door_top_right.json
8b61c6fc24bc962af8d944747694d01ceafb3fa7 assets/tutorialmod/models/block/sapphire_door_top_right_open.json
89db119051cb22e78a76991bbc5d54702ba344a8 assets/tutorialmod/models/block/sapphire_fence_gate.json
c9c8ab48e3aab0b75545d8ea94fd7d0d9223b6d4 assets/tutorialmod/models/block/sapphire_fence_gate_open.json
52fe67cb678ca50574edc24dc6f48242ad174146 assets/tutorialmod/models/block/sapphire_fence_gate_wall.json
a27b08f04bfa38b9973b28a8818777f00c5ff635 assets/tutorialmod/models/block/sapphire_fence_gate_wall_open.json
a98037219a37e8b32e3e941183d2b23c24b978ed assets/tutorialmod/models/block/sapphire_fence_post.json
ad4556a1381539c27521bd7e13c36bb45d5698cb assets/tutorialmod/models/block/sapphire_fence_side.json
65477d5c46d26ec0650e6174b13620632f946e57 assets/tutorialmod/models/block/sapphire_ore.json
73aef9f0c7019dee1f80a73edf99cc592ee8bef4 assets/tutorialmod/models/block/sapphire_pressure_plate.json
f3aa238e8363700b710e491cb1d5998c603a605b assets/tutorialmod/models/block/sapphire_pressure_plate_down.json
f46cc5512a3627e87e771348623daaac291e8d85 assets/tutorialmod/models/block/sapphire_slab.json
237f87ceb4f86825699efc2fa4cdf55ab1183c93 assets/tutorialmod/models/block/sapphire_slab_top.json
aa82a31c05fcc8fee0d7c45075c29449a07ff377 assets/tutorialmod/models/block/sapphire_stairs.json
427ec477c788b8820e7fc8017f0ef2ec2a888188 assets/tutorialmod/models/block/sapphire_stairs_inner.json
229925ad9da26afb3e4ec8a80a424dfadb5fdfe0 assets/tutorialmod/models/block/sapphire_stairs_outer.json
12c202589bd6bf12fca1ff01722d0981b90a8940 assets/tutorialmod/models/block/sapphire_trapdoor_bottom.json
a361546830f7f7d562b1cdbbbf2fbe5222d953bc assets/tutorialmod/models/block/sapphire_trapdoor_open.json
3800b74d08c71af5539055142f0ae5aefbc9ac9b assets/tutorialmod/models/block/sapphire_trapdoor_top.json
f53d3aa6811844dc2b2f26f52c2837a281c173fe assets/tutorialmod/models/block/sapphire_wall_post.json
8989ec98ff5a4eeda766b3083491f2f77b06ea3f assets/tutorialmod/models/block/sapphire_wall_side.json
c0ed7975ed86cd5146c5e7393fca478cd26e7228 assets/tutorialmod/models/block/sapphire_wall_side_tall.json
dac8730911a1737e4cdd2e70cfc8d32b0b0ba457 assets/tutorialmod/models/block/sound_block.json
251495c94fbf35dd43cd773e6cf31533a8b72f09 assets/tutorialmod/models/item/deepslate_sapphire_ore.json
bf5cdde3dfa3effdde9c4358ecb01c39922d7945 assets/tutorialmod/models/item/end_stone_sapphire_ore.json

View File

@@ -1,8 +1,17 @@
// 1.20.1 2023-07-28T17:37:52.3029247 Loot Tables
// 1.20.1 2023-07-28T20:22:56.9625496 Loot Tables
3655045aeb4e2ae62e9069b0db07927965a12389 data/tutorialmod/loot_tables/blocks/deepslate_sapphire_ore.json
629bc7af98fd6a08d902f9c3e46896fc09101f43 data/tutorialmod/loot_tables/blocks/end_stone_sapphire_ore.json
c615daffa6bb4a20fd0f4d36534331bdbeff2746 data/tutorialmod/loot_tables/blocks/nether_sapphire_ore.json
81e9322ae4c5141fd110a8f87cc92d7af008fd1e data/tutorialmod/loot_tables/blocks/raw_sapphire_block.json
d844cbb192590a5e4278fd1a5c5906e40c594e24 data/tutorialmod/loot_tables/blocks/sapphire_block.json
9f5a63f9e0753091ae43e39315eba445f05571cd data/tutorialmod/loot_tables/blocks/sapphire_button.json
5f1fd1e6346006124d072465762d8eaeae67ce85 data/tutorialmod/loot_tables/blocks/sapphire_door.json
0ec32edbeb69993a52ac5c49b7e745856d6ef8b1 data/tutorialmod/loot_tables/blocks/sapphire_fence.json
e415e014a12d91daf2c5bbdc531904b897398825 data/tutorialmod/loot_tables/blocks/sapphire_fence_gate.json
aa2b1c8deec50b57ad0574814e62f77133a5f3f5 data/tutorialmod/loot_tables/blocks/sapphire_ore.json
a58fb8452a1f91b87947f0d9837acd4efb74c54c data/tutorialmod/loot_tables/blocks/sapphire_pressure_plate.json
e6a0be1d3f09fb30f5a92e3558eeefa950cfcffd data/tutorialmod/loot_tables/blocks/sapphire_slab.json
60ac6099604fa37e30be3499e149b52d8b17f4bc data/tutorialmod/loot_tables/blocks/sapphire_stairs.json
b28a6c67228e945ebc84f0e867152b34facd8b16 data/tutorialmod/loot_tables/blocks/sapphire_trapdoor.json
900d403a6e84cc3d247e16f5dcb1fcf8802436a8 data/tutorialmod/loot_tables/blocks/sapphire_wall.json
4a8cfacccc2c162b32d7ced097c65185c5c5bc88 data/tutorialmod/loot_tables/blocks/sound_block.json

View File

@@ -1,7 +1,10 @@
// 1.20.1 2023-07-28T17:37:52.3049614 Tags for minecraft:block mod id tutorialmod
// 1.20.1 2023-07-28T20:22:56.9645761 Tags for minecraft:block mod id tutorialmod
f7d4d746a89ba9704d89651d20d3b89098acdabd data/forge/tags/blocks/needs_netherite_tool.json
eb9c3bd4f434cd2ee198618689887868a03fc824 data/minecraft/tags/blocks/fences.json
0f23036eb868569b86c1fbde92de4c816b9df411 data/minecraft/tags/blocks/fence_gates.json
2c39ba5cecb79889f7925f62f972246a014552c8 data/minecraft/tags/blocks/mineable/pickaxe.json
b3dcb63d0640cd401308394400173ca7cb485665 data/minecraft/tags/blocks/needs_diamond_tool.json
025f458e5a24d4a0256cb9712e83d703d819dfdb data/minecraft/tags/blocks/needs_iron_tool.json
3a36f7f5f9de0d3325f1f444b84aa41eedfac5fc data/minecraft/tags/blocks/needs_stone_tool.json
39afac99ef2666de5a9686ccfc15e6f7611922c8 data/minecraft/tags/blocks/walls.json
031ec7111c8b7c57f798acd0b3605ceb1912498b data/tutorialmod/tags/blocks/metal_detector_valuables.json

View File

@@ -0,0 +1,118 @@
{
"variants": {
"face=ceiling,facing=east,powered=false": {
"model": "tutorialmod:block/sapphire_button",
"x": 180,
"y": 270
},
"face=ceiling,facing=east,powered=true": {
"model": "tutorialmod:block/sapphire_button_pressed",
"x": 180,
"y": 270
},
"face=ceiling,facing=north,powered=false": {
"model": "tutorialmod:block/sapphire_button",
"x": 180,
"y": 180
},
"face=ceiling,facing=north,powered=true": {
"model": "tutorialmod:block/sapphire_button_pressed",
"x": 180,
"y": 180
},
"face=ceiling,facing=south,powered=false": {
"model": "tutorialmod:block/sapphire_button",
"x": 180
},
"face=ceiling,facing=south,powered=true": {
"model": "tutorialmod:block/sapphire_button_pressed",
"x": 180
},
"face=ceiling,facing=west,powered=false": {
"model": "tutorialmod:block/sapphire_button",
"x": 180,
"y": 90
},
"face=ceiling,facing=west,powered=true": {
"model": "tutorialmod:block/sapphire_button_pressed",
"x": 180,
"y": 90
},
"face=floor,facing=east,powered=false": {
"model": "tutorialmod:block/sapphire_button",
"y": 90
},
"face=floor,facing=east,powered=true": {
"model": "tutorialmod:block/sapphire_button_pressed",
"y": 90
},
"face=floor,facing=north,powered=false": {
"model": "tutorialmod:block/sapphire_button"
},
"face=floor,facing=north,powered=true": {
"model": "tutorialmod:block/sapphire_button_pressed"
},
"face=floor,facing=south,powered=false": {
"model": "tutorialmod:block/sapphire_button",
"y": 180
},
"face=floor,facing=south,powered=true": {
"model": "tutorialmod:block/sapphire_button_pressed",
"y": 180
},
"face=floor,facing=west,powered=false": {
"model": "tutorialmod:block/sapphire_button",
"y": 270
},
"face=floor,facing=west,powered=true": {
"model": "tutorialmod:block/sapphire_button_pressed",
"y": 270
},
"face=wall,facing=east,powered=false": {
"model": "tutorialmod:block/sapphire_button",
"uvlock": true,
"x": 90,
"y": 90
},
"face=wall,facing=east,powered=true": {
"model": "tutorialmod:block/sapphire_button_pressed",
"uvlock": true,
"x": 90,
"y": 90
},
"face=wall,facing=north,powered=false": {
"model": "tutorialmod:block/sapphire_button",
"uvlock": true,
"x": 90
},
"face=wall,facing=north,powered=true": {
"model": "tutorialmod:block/sapphire_button_pressed",
"uvlock": true,
"x": 90
},
"face=wall,facing=south,powered=false": {
"model": "tutorialmod:block/sapphire_button",
"uvlock": true,
"x": 90,
"y": 180
},
"face=wall,facing=south,powered=true": {
"model": "tutorialmod:block/sapphire_button_pressed",
"uvlock": true,
"x": 90,
"y": 180
},
"face=wall,facing=west,powered=false": {
"model": "tutorialmod:block/sapphire_button",
"uvlock": true,
"x": 90,
"y": 270
},
"face=wall,facing=west,powered=true": {
"model": "tutorialmod:block/sapphire_button_pressed",
"uvlock": true,
"x": 90,
"y": 270
}
}
}

View File

@@ -0,0 +1,124 @@
{
"variants": {
"facing=east,half=lower,hinge=left,open=false": {
"model": "tutorialmod:block/sapphire_door_bottom_left"
},
"facing=east,half=lower,hinge=left,open=true": {
"model": "tutorialmod:block/sapphire_door_bottom_left_open",
"y": 90
},
"facing=east,half=lower,hinge=right,open=false": {
"model": "tutorialmod:block/sapphire_door_bottom_right"
},
"facing=east,half=lower,hinge=right,open=true": {
"model": "tutorialmod:block/sapphire_door_bottom_right_open",
"y": 270
},
"facing=east,half=upper,hinge=left,open=false": {
"model": "tutorialmod:block/sapphire_door_top_left"
},
"facing=east,half=upper,hinge=left,open=true": {
"model": "tutorialmod:block/sapphire_door_top_left_open",
"y": 90
},
"facing=east,half=upper,hinge=right,open=false": {
"model": "tutorialmod:block/sapphire_door_top_right"
},
"facing=east,half=upper,hinge=right,open=true": {
"model": "tutorialmod:block/sapphire_door_top_right_open",
"y": 270
},
"facing=north,half=lower,hinge=left,open=false": {
"model": "tutorialmod:block/sapphire_door_bottom_left",
"y": 270
},
"facing=north,half=lower,hinge=left,open=true": {
"model": "tutorialmod:block/sapphire_door_bottom_left_open"
},
"facing=north,half=lower,hinge=right,open=false": {
"model": "tutorialmod:block/sapphire_door_bottom_right",
"y": 270
},
"facing=north,half=lower,hinge=right,open=true": {
"model": "tutorialmod:block/sapphire_door_bottom_right_open",
"y": 180
},
"facing=north,half=upper,hinge=left,open=false": {
"model": "tutorialmod:block/sapphire_door_top_left",
"y": 270
},
"facing=north,half=upper,hinge=left,open=true": {
"model": "tutorialmod:block/sapphire_door_top_left_open"
},
"facing=north,half=upper,hinge=right,open=false": {
"model": "tutorialmod:block/sapphire_door_top_right",
"y": 270
},
"facing=north,half=upper,hinge=right,open=true": {
"model": "tutorialmod:block/sapphire_door_top_right_open",
"y": 180
},
"facing=south,half=lower,hinge=left,open=false": {
"model": "tutorialmod:block/sapphire_door_bottom_left",
"y": 90
},
"facing=south,half=lower,hinge=left,open=true": {
"model": "tutorialmod:block/sapphire_door_bottom_left_open",
"y": 180
},
"facing=south,half=lower,hinge=right,open=false": {
"model": "tutorialmod:block/sapphire_door_bottom_right",
"y": 90
},
"facing=south,half=lower,hinge=right,open=true": {
"model": "tutorialmod:block/sapphire_door_bottom_right_open"
},
"facing=south,half=upper,hinge=left,open=false": {
"model": "tutorialmod:block/sapphire_door_top_left",
"y": 90
},
"facing=south,half=upper,hinge=left,open=true": {
"model": "tutorialmod:block/sapphire_door_top_left_open",
"y": 180
},
"facing=south,half=upper,hinge=right,open=false": {
"model": "tutorialmod:block/sapphire_door_top_right",
"y": 90
},
"facing=south,half=upper,hinge=right,open=true": {
"model": "tutorialmod:block/sapphire_door_top_right_open"
},
"facing=west,half=lower,hinge=left,open=false": {
"model": "tutorialmod:block/sapphire_door_bottom_left",
"y": 180
},
"facing=west,half=lower,hinge=left,open=true": {
"model": "tutorialmod:block/sapphire_door_bottom_left_open",
"y": 270
},
"facing=west,half=lower,hinge=right,open=false": {
"model": "tutorialmod:block/sapphire_door_bottom_right",
"y": 180
},
"facing=west,half=lower,hinge=right,open=true": {
"model": "tutorialmod:block/sapphire_door_bottom_right_open",
"y": 90
},
"facing=west,half=upper,hinge=left,open=false": {
"model": "tutorialmod:block/sapphire_door_top_left",
"y": 180
},
"facing=west,half=upper,hinge=left,open=true": {
"model": "tutorialmod:block/sapphire_door_top_left_open",
"y": 270
},
"facing=west,half=upper,hinge=right,open=false": {
"model": "tutorialmod:block/sapphire_door_top_right",
"y": 180
},
"facing=west,half=upper,hinge=right,open=true": {
"model": "tutorialmod:block/sapphire_door_top_right_open",
"y": 90
}
}
}

View File

@@ -0,0 +1,48 @@
{
"multipart": [
{
"apply": {
"model": "tutorialmod:block/sapphire_fence_post"
}
},
{
"apply": {
"model": "tutorialmod:block/sapphire_fence_side",
"uvlock": true
},
"when": {
"north": "true"
}
},
{
"apply": {
"model": "tutorialmod:block/sapphire_fence_side",
"uvlock": true,
"y": 180
},
"when": {
"south": "true"
}
},
{
"apply": {
"model": "tutorialmod:block/sapphire_fence_side",
"uvlock": true,
"y": 270
},
"when": {
"west": "true"
}
},
{
"apply": {
"model": "tutorialmod:block/sapphire_fence_side",
"uvlock": true,
"y": 90
},
"when": {
"east": "true"
}
}
]
}

View File

@@ -0,0 +1,80 @@
{
"variants": {
"facing=east,in_wall=false,open=false": {
"model": "tutorialmod:block/sapphire_fence_gate",
"uvlock": true,
"y": 270
},
"facing=east,in_wall=false,open=true": {
"model": "tutorialmod:block/sapphire_fence_gate_open",
"uvlock": true,
"y": 270
},
"facing=east,in_wall=true,open=false": {
"model": "tutorialmod:block/sapphire_fence_gate_wall",
"uvlock": true,
"y": 270
},
"facing=east,in_wall=true,open=true": {
"model": "tutorialmod:block/sapphire_fence_gate_wall_open",
"uvlock": true,
"y": 270
},
"facing=north,in_wall=false,open=false": {
"model": "tutorialmod:block/sapphire_fence_gate",
"uvlock": true,
"y": 180
},
"facing=north,in_wall=false,open=true": {
"model": "tutorialmod:block/sapphire_fence_gate_open",
"uvlock": true,
"y": 180
},
"facing=north,in_wall=true,open=false": {
"model": "tutorialmod:block/sapphire_fence_gate_wall",
"uvlock": true,
"y": 180
},
"facing=north,in_wall=true,open=true": {
"model": "tutorialmod:block/sapphire_fence_gate_wall_open",
"uvlock": true,
"y": 180
},
"facing=south,in_wall=false,open=false": {
"model": "tutorialmod:block/sapphire_fence_gate",
"uvlock": true
},
"facing=south,in_wall=false,open=true": {
"model": "tutorialmod:block/sapphire_fence_gate_open",
"uvlock": true
},
"facing=south,in_wall=true,open=false": {
"model": "tutorialmod:block/sapphire_fence_gate_wall",
"uvlock": true
},
"facing=south,in_wall=true,open=true": {
"model": "tutorialmod:block/sapphire_fence_gate_wall_open",
"uvlock": true
},
"facing=west,in_wall=false,open=false": {
"model": "tutorialmod:block/sapphire_fence_gate",
"uvlock": true,
"y": 90
},
"facing=west,in_wall=false,open=true": {
"model": "tutorialmod:block/sapphire_fence_gate_open",
"uvlock": true,
"y": 90
},
"facing=west,in_wall=true,open=false": {
"model": "tutorialmod:block/sapphire_fence_gate_wall",
"uvlock": true,
"y": 90
},
"facing=west,in_wall=true,open=true": {
"model": "tutorialmod:block/sapphire_fence_gate_wall_open",
"uvlock": true,
"y": 90
}
}
}

View File

@@ -0,0 +1,10 @@
{
"variants": {
"powered=false": {
"model": "tutorialmod:block/sapphire_pressure_plate"
},
"powered=true": {
"model": "tutorialmod:block/sapphire_pressure_plate_down"
}
}
}

View File

@@ -0,0 +1,13 @@
{
"variants": {
"type=bottom": {
"model": "tutorialmod:block/sapphire_slab"
},
"type=double": {
"model": "tutorialmod:block/sapphire_block"
},
"type=top": {
"model": "tutorialmod:block/sapphire_slab_top"
}
}
}

View File

@@ -0,0 +1,209 @@
{
"variants": {
"facing=east,half=bottom,shape=inner_left": {
"model": "tutorialmod:block/sapphire_stairs_inner",
"uvlock": true,
"y": 270
},
"facing=east,half=bottom,shape=inner_right": {
"model": "tutorialmod:block/sapphire_stairs_inner"
},
"facing=east,half=bottom,shape=outer_left": {
"model": "tutorialmod:block/sapphire_stairs_outer",
"uvlock": true,
"y": 270
},
"facing=east,half=bottom,shape=outer_right": {
"model": "tutorialmod:block/sapphire_stairs_outer"
},
"facing=east,half=bottom,shape=straight": {
"model": "tutorialmod:block/sapphire_stairs"
},
"facing=east,half=top,shape=inner_left": {
"model": "tutorialmod:block/sapphire_stairs_inner",
"uvlock": true,
"x": 180
},
"facing=east,half=top,shape=inner_right": {
"model": "tutorialmod:block/sapphire_stairs_inner",
"uvlock": true,
"x": 180,
"y": 90
},
"facing=east,half=top,shape=outer_left": {
"model": "tutorialmod:block/sapphire_stairs_outer",
"uvlock": true,
"x": 180
},
"facing=east,half=top,shape=outer_right": {
"model": "tutorialmod:block/sapphire_stairs_outer",
"uvlock": true,
"x": 180,
"y": 90
},
"facing=east,half=top,shape=straight": {
"model": "tutorialmod:block/sapphire_stairs",
"uvlock": true,
"x": 180
},
"facing=north,half=bottom,shape=inner_left": {
"model": "tutorialmod:block/sapphire_stairs_inner",
"uvlock": true,
"y": 180
},
"facing=north,half=bottom,shape=inner_right": {
"model": "tutorialmod:block/sapphire_stairs_inner",
"uvlock": true,
"y": 270
},
"facing=north,half=bottom,shape=outer_left": {
"model": "tutorialmod:block/sapphire_stairs_outer",
"uvlock": true,
"y": 180
},
"facing=north,half=bottom,shape=outer_right": {
"model": "tutorialmod:block/sapphire_stairs_outer",
"uvlock": true,
"y": 270
},
"facing=north,half=bottom,shape=straight": {
"model": "tutorialmod:block/sapphire_stairs",
"uvlock": true,
"y": 270
},
"facing=north,half=top,shape=inner_left": {
"model": "tutorialmod:block/sapphire_stairs_inner",
"uvlock": true,
"x": 180,
"y": 270
},
"facing=north,half=top,shape=inner_right": {
"model": "tutorialmod:block/sapphire_stairs_inner",
"uvlock": true,
"x": 180
},
"facing=north,half=top,shape=outer_left": {
"model": "tutorialmod:block/sapphire_stairs_outer",
"uvlock": true,
"x": 180,
"y": 270
},
"facing=north,half=top,shape=outer_right": {
"model": "tutorialmod:block/sapphire_stairs_outer",
"uvlock": true,
"x": 180
},
"facing=north,half=top,shape=straight": {
"model": "tutorialmod:block/sapphire_stairs",
"uvlock": true,
"x": 180,
"y": 270
},
"facing=south,half=bottom,shape=inner_left": {
"model": "tutorialmod:block/sapphire_stairs_inner"
},
"facing=south,half=bottom,shape=inner_right": {
"model": "tutorialmod:block/sapphire_stairs_inner",
"uvlock": true,
"y": 90
},
"facing=south,half=bottom,shape=outer_left": {
"model": "tutorialmod:block/sapphire_stairs_outer"
},
"facing=south,half=bottom,shape=outer_right": {
"model": "tutorialmod:block/sapphire_stairs_outer",
"uvlock": true,
"y": 90
},
"facing=south,half=bottom,shape=straight": {
"model": "tutorialmod:block/sapphire_stairs",
"uvlock": true,
"y": 90
},
"facing=south,half=top,shape=inner_left": {
"model": "tutorialmod:block/sapphire_stairs_inner",
"uvlock": true,
"x": 180,
"y": 90
},
"facing=south,half=top,shape=inner_right": {
"model": "tutorialmod:block/sapphire_stairs_inner",
"uvlock": true,
"x": 180,
"y": 180
},
"facing=south,half=top,shape=outer_left": {
"model": "tutorialmod:block/sapphire_stairs_outer",
"uvlock": true,
"x": 180,
"y": 90
},
"facing=south,half=top,shape=outer_right": {
"model": "tutorialmod:block/sapphire_stairs_outer",
"uvlock": true,
"x": 180,
"y": 180
},
"facing=south,half=top,shape=straight": {
"model": "tutorialmod:block/sapphire_stairs",
"uvlock": true,
"x": 180,
"y": 90
},
"facing=west,half=bottom,shape=inner_left": {
"model": "tutorialmod:block/sapphire_stairs_inner",
"uvlock": true,
"y": 90
},
"facing=west,half=bottom,shape=inner_right": {
"model": "tutorialmod:block/sapphire_stairs_inner",
"uvlock": true,
"y": 180
},
"facing=west,half=bottom,shape=outer_left": {
"model": "tutorialmod:block/sapphire_stairs_outer",
"uvlock": true,
"y": 90
},
"facing=west,half=bottom,shape=outer_right": {
"model": "tutorialmod:block/sapphire_stairs_outer",
"uvlock": true,
"y": 180
},
"facing=west,half=bottom,shape=straight": {
"model": "tutorialmod:block/sapphire_stairs",
"uvlock": true,
"y": 180
},
"facing=west,half=top,shape=inner_left": {
"model": "tutorialmod:block/sapphire_stairs_inner",
"uvlock": true,
"x": 180,
"y": 180
},
"facing=west,half=top,shape=inner_right": {
"model": "tutorialmod:block/sapphire_stairs_inner",
"uvlock": true,
"x": 180,
"y": 270
},
"facing=west,half=top,shape=outer_left": {
"model": "tutorialmod:block/sapphire_stairs_outer",
"uvlock": true,
"x": 180,
"y": 180
},
"facing=west,half=top,shape=outer_right": {
"model": "tutorialmod:block/sapphire_stairs_outer",
"uvlock": true,
"x": 180,
"y": 270
},
"facing=west,half=top,shape=straight": {
"model": "tutorialmod:block/sapphire_stairs",
"uvlock": true,
"x": 180,
"y": 180
}
}
}

View File

@@ -0,0 +1,68 @@
{
"variants": {
"facing=east,half=bottom,open=false": {
"model": "tutorialmod:block/sapphire_trapdoor_bottom",
"y": 90
},
"facing=east,half=bottom,open=true": {
"model": "tutorialmod:block/sapphire_trapdoor_open",
"y": 90
},
"facing=east,half=top,open=false": {
"model": "tutorialmod:block/sapphire_trapdoor_top",
"y": 90
},
"facing=east,half=top,open=true": {
"model": "tutorialmod:block/sapphire_trapdoor_open",
"x": 180,
"y": 270
},
"facing=north,half=bottom,open=false": {
"model": "tutorialmod:block/sapphire_trapdoor_bottom"
},
"facing=north,half=bottom,open=true": {
"model": "tutorialmod:block/sapphire_trapdoor_open"
},
"facing=north,half=top,open=false": {
"model": "tutorialmod:block/sapphire_trapdoor_top"
},
"facing=north,half=top,open=true": {
"model": "tutorialmod:block/sapphire_trapdoor_open",
"x": 180,
"y": 180
},
"facing=south,half=bottom,open=false": {
"model": "tutorialmod:block/sapphire_trapdoor_bottom",
"y": 180
},
"facing=south,half=bottom,open=true": {
"model": "tutorialmod:block/sapphire_trapdoor_open",
"y": 180
},
"facing=south,half=top,open=false": {
"model": "tutorialmod:block/sapphire_trapdoor_top",
"y": 180
},
"facing=south,half=top,open=true": {
"model": "tutorialmod:block/sapphire_trapdoor_open",
"x": 180
},
"facing=west,half=bottom,open=false": {
"model": "tutorialmod:block/sapphire_trapdoor_bottom",
"y": 270
},
"facing=west,half=bottom,open=true": {
"model": "tutorialmod:block/sapphire_trapdoor_open",
"y": 270
},
"facing=west,half=top,open=false": {
"model": "tutorialmod:block/sapphire_trapdoor_top",
"y": 270
},
"facing=west,half=top,open=true": {
"model": "tutorialmod:block/sapphire_trapdoor_open",
"x": 180,
"y": 90
}
}
}

View File

@@ -0,0 +1,90 @@
{
"multipart": [
{
"apply": {
"model": "tutorialmod:block/sapphire_wall_post"
},
"when": {
"up": "true"
}
},
{
"apply": {
"model": "tutorialmod:block/sapphire_wall_side",
"uvlock": true,
"y": 90
},
"when": {
"east": "low"
}
},
{
"apply": {
"model": "tutorialmod:block/sapphire_wall_side_tall",
"uvlock": true,
"y": 90
},
"when": {
"east": "tall"
}
},
{
"apply": {
"model": "tutorialmod:block/sapphire_wall_side",
"uvlock": true
},
"when": {
"north": "low"
}
},
{
"apply": {
"model": "tutorialmod:block/sapphire_wall_side_tall",
"uvlock": true
},
"when": {
"north": "tall"
}
},
{
"apply": {
"model": "tutorialmod:block/sapphire_wall_side",
"uvlock": true,
"y": 180
},
"when": {
"south": "low"
}
},
{
"apply": {
"model": "tutorialmod:block/sapphire_wall_side_tall",
"uvlock": true,
"y": 180
},
"when": {
"south": "tall"
}
},
{
"apply": {
"model": "tutorialmod:block/sapphire_wall_side",
"uvlock": true,
"y": 270
},
"when": {
"west": "low"
}
},
{
"apply": {
"model": "tutorialmod:block/sapphire_wall_side_tall",
"uvlock": true,
"y": 270
},
"when": {
"west": "tall"
}
}
]
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/button",
"textures": {
"texture": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/button_pressed",
"textures": {
"texture": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/door_bottom_left",
"render_type": "minecraft:cutout",
"textures": {
"bottom": "tutorialmod:block/sapphire_door_bottom",
"top": "tutorialmod:block/sapphire_door_top"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/door_bottom_left_open",
"render_type": "minecraft:cutout",
"textures": {
"bottom": "tutorialmod:block/sapphire_door_bottom",
"top": "tutorialmod:block/sapphire_door_top"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/door_bottom_right",
"render_type": "minecraft:cutout",
"textures": {
"bottom": "tutorialmod:block/sapphire_door_bottom",
"top": "tutorialmod:block/sapphire_door_top"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/door_bottom_right_open",
"render_type": "minecraft:cutout",
"textures": {
"bottom": "tutorialmod:block/sapphire_door_bottom",
"top": "tutorialmod:block/sapphire_door_top"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/door_top_left",
"render_type": "minecraft:cutout",
"textures": {
"bottom": "tutorialmod:block/sapphire_door_bottom",
"top": "tutorialmod:block/sapphire_door_top"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/door_top_left_open",
"render_type": "minecraft:cutout",
"textures": {
"bottom": "tutorialmod:block/sapphire_door_bottom",
"top": "tutorialmod:block/sapphire_door_top"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/door_top_right",
"render_type": "minecraft:cutout",
"textures": {
"bottom": "tutorialmod:block/sapphire_door_bottom",
"top": "tutorialmod:block/sapphire_door_top"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/door_top_right_open",
"render_type": "minecraft:cutout",
"textures": {
"bottom": "tutorialmod:block/sapphire_door_bottom",
"top": "tutorialmod:block/sapphire_door_top"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_fence_gate",
"textures": {
"texture": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_fence_gate_open",
"textures": {
"texture": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_fence_gate_wall",
"textures": {
"texture": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_fence_gate_wall_open",
"textures": {
"texture": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/fence_post",
"textures": {
"texture": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/fence_side",
"textures": {
"texture": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/pressure_plate_up",
"textures": {
"texture": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/pressure_plate_down",
"textures": {
"texture": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/slab",
"textures": {
"bottom": "tutorialmod:block/sapphire_block",
"side": "tutorialmod:block/sapphire_block",
"top": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/slab_top",
"textures": {
"bottom": "tutorialmod:block/sapphire_block",
"side": "tutorialmod:block/sapphire_block",
"top": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/stairs",
"textures": {
"bottom": "tutorialmod:block/sapphire_block",
"side": "tutorialmod:block/sapphire_block",
"top": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/inner_stairs",
"textures": {
"bottom": "tutorialmod:block/sapphire_block",
"side": "tutorialmod:block/sapphire_block",
"top": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/outer_stairs",
"textures": {
"bottom": "tutorialmod:block/sapphire_block",
"side": "tutorialmod:block/sapphire_block",
"top": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "minecraft:block/template_orientable_trapdoor_bottom",
"render_type": "minecraft:cutout",
"textures": {
"texture": "tutorialmod:block/sapphire_trapdoor"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "minecraft:block/template_orientable_trapdoor_open",
"render_type": "minecraft:cutout",
"textures": {
"texture": "tutorialmod:block/sapphire_trapdoor"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "minecraft:block/template_orientable_trapdoor_top",
"render_type": "minecraft:cutout",
"textures": {
"texture": "tutorialmod:block/sapphire_trapdoor"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_wall_post",
"textures": {
"wall": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_wall_side",
"textures": {
"wall": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_wall_side_tall",
"textures": {
"wall": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/button_inventory",
"textures": {
"texture": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "tutorialmod:item/sapphire_door"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/fence_inventory",
"textures": {
"texture": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,3 @@
{
"parent": "tutorialmod:block/sapphire_fence_gate"
}

View File

@@ -0,0 +1,3 @@
{
"parent": "tutorialmod:block/sapphire_pressure_plate"
}

View File

@@ -0,0 +1,3 @@
{
"parent": "tutorialmod:block/sapphire_slab"
}

View File

@@ -0,0 +1,3 @@
{
"parent": "tutorialmod:block/sapphire_stairs"
}

View File

@@ -0,0 +1,3 @@
{
"parent": "tutorialmod:block/sapphire_trapdoor_bottom"
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/wall_inventory",
"textures": {
"wall": "tutorialmod:block/sapphire_block"
}
}

View File

@@ -0,0 +1,5 @@
{
"values": [
"tutorialmod:sapphire_fence_gate"
]
}

View File

@@ -0,0 +1,5 @@
{
"values": [
"tutorialmod:sapphire_fence"
]
}

View File

@@ -0,0 +1,5 @@
{
"values": [
"tutorialmod:sapphire_wall"
]
}

View File

@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "tutorialmod:sapphire_button"
}
],
"rolls": 1.0
}
],
"random_sequence": "tutorialmod:blocks/sapphire_button"
}

View File

@@ -0,0 +1,30 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"conditions": [
{
"block": "tutorialmod:sapphire_door",
"condition": "minecraft:block_state_property",
"properties": {
"half": "lower"
}
}
],
"name": "tutorialmod:sapphire_door"
}
],
"rolls": 1.0
}
],
"random_sequence": "tutorialmod:blocks/sapphire_door"
}

View File

@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "tutorialmod:sapphire_fence"
}
],
"rolls": 1.0
}
],
"random_sequence": "tutorialmod:blocks/sapphire_fence"
}

View File

@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "tutorialmod:sapphire_fence_gate"
}
],
"rolls": 1.0
}
],
"random_sequence": "tutorialmod:blocks/sapphire_fence_gate"
}

View File

@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "tutorialmod:sapphire_pressure_plate"
}
],
"rolls": 1.0
}
],
"random_sequence": "tutorialmod:blocks/sapphire_pressure_plate"
}

View File

@@ -0,0 +1,35 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"conditions": [
{
"block": "tutorialmod:sapphire_slab",
"condition": "minecraft:block_state_property",
"properties": {
"type": "double"
}
}
],
"count": 2.0,
"function": "minecraft:set_count"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "tutorialmod:sapphire_slab"
}
],
"rolls": 1.0
}
],
"random_sequence": "tutorialmod:blocks/sapphire_slab"
}

View File

@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "tutorialmod:sapphire_stairs"
}
],
"rolls": 1.0
}
],
"random_sequence": "tutorialmod:blocks/sapphire_stairs"
}

View File

@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "tutorialmod:sapphire_trapdoor"
}
],
"rolls": 1.0
}
],
"random_sequence": "tutorialmod:blocks/sapphire_trapdoor"
}

View File

@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "tutorialmod:sapphire_wall"
}
],
"rolls": 1.0
}
],
"random_sequence": "tutorialmod:blocks/sapphire_wall"
}

View File

@@ -3,14 +3,13 @@ package net.kaupenjoe.tutorialmod.block;
import net.kaupenjoe.tutorialmod.TutorialMod;
import net.kaupenjoe.tutorialmod.block.custom.SoundBlock;
import net.kaupenjoe.tutorialmod.item.ModItems;
import net.minecraft.sounds.SoundEvents;
import net.minecraft.util.valueproviders.UniformInt;
import net.minecraft.world.item.BlockItem;
import net.minecraft.world.item.Item;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.DropExperienceBlock;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.block.*;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.state.properties.BlockSetType;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
@@ -43,6 +42,30 @@ public class ModBlocks {
public static final RegistryObject<Block> SOUND_BLOCK = registerBlock("sound_block",
() -> new SoundBlock(BlockBehaviour.Properties.copy(Blocks.IRON_BLOCK)));
public static final RegistryObject<Block> SAPPHIRE_STAIRS = registerBlock("sapphire_stairs",
() -> new StairBlock(() -> ModBlocks.SAPPHIRE_BLOCK.get().defaultBlockState(),
BlockBehaviour.Properties.copy(Blocks.IRON_BLOCK).sound(SoundType.AMETHYST)));
public static final RegistryObject<Block> SAPPHIRE_SLAB = registerBlock("sapphire_slab",
() -> new SlabBlock(BlockBehaviour.Properties.copy(Blocks.IRON_BLOCK).sound(SoundType.AMETHYST)));
public static final RegistryObject<Block> SAPPHIRE_BUTTON = registerBlock("sapphire_button",
() -> new ButtonBlock(BlockBehaviour.Properties.copy(Blocks.STONE_BUTTON).sound(SoundType.AMETHYST),
BlockSetType.IRON, 10, true));
public static final RegistryObject<Block> SAPPHIRE_PRESSURE_PLATE = registerBlock("sapphire_pressure_plate",
() -> new PressurePlateBlock(PressurePlateBlock.Sensitivity.EVERYTHING, BlockBehaviour.Properties.copy(Blocks.IRON_BLOCK).sound(SoundType.AMETHYST),
BlockSetType.IRON));
public static final RegistryObject<Block> SAPPHIRE_FENCE = registerBlock("sapphire_fence",
() -> new FenceBlock(BlockBehaviour.Properties.copy(Blocks.IRON_BLOCK).sound(SoundType.AMETHYST)));
public static final RegistryObject<Block> SAPPHIRE_FENCE_GATE = registerBlock("sapphire_fence_gate",
() -> new FenceGateBlock(BlockBehaviour.Properties.copy(Blocks.IRON_BLOCK).sound(SoundType.AMETHYST), SoundEvents.CHAIN_PLACE, SoundEvents.ANVIL_BREAK));
public static final RegistryObject<Block> SAPPHIRE_WALL = registerBlock("sapphire_wall",
() -> new WallBlock(BlockBehaviour.Properties.copy(Blocks.IRON_BLOCK).sound(SoundType.AMETHYST)));
public static final RegistryObject<Block> SAPPHIRE_DOOR = registerBlock("sapphire_door",
() -> new DoorBlock(BlockBehaviour.Properties.copy(Blocks.IRON_BLOCK).sound(SoundType.AMETHYST).noOcclusion(), BlockSetType.IRON));
public static final RegistryObject<Block> SAPPHIRE_TRAPDOOR = registerBlock("sapphire_trapdoor",
() -> new TrapDoorBlock(BlockBehaviour.Properties.copy(Blocks.IRON_BLOCK).sound(SoundType.AMETHYST).noOcclusion(), BlockSetType.IRON));
private static <T extends Block> RegistryObject<T> registerBlock(String name, Supplier<T> block) {
RegistryObject<T> toReturn = BLOCKS.register(name, block);

View File

@@ -3,7 +3,7 @@ package net.kaupenjoe.tutorialmod.datagen;
import net.kaupenjoe.tutorialmod.TutorialMod;
import net.kaupenjoe.tutorialmod.block.ModBlocks;
import net.minecraft.data.PackOutput;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.*;
import net.minecraftforge.client.model.generators.BlockStateProvider;
import net.minecraftforge.common.data.ExistingFileHelper;
import net.minecraftforge.registries.RegistryObject;
@@ -24,6 +24,19 @@ public class ModBlockStateProvider extends BlockStateProvider {
blockWithItem(ModBlocks.NETHER_SAPPHIRE_ORE);
blockWithItem(ModBlocks.SOUND_BLOCK);
stairsBlock(((StairBlock) ModBlocks.SAPPHIRE_STAIRS.get()), blockTexture(ModBlocks.SAPPHIRE_BLOCK.get()));
slabBlock(((SlabBlock) ModBlocks.SAPPHIRE_SLAB.get()), blockTexture(ModBlocks.SAPPHIRE_BLOCK.get()), blockTexture(ModBlocks.SAPPHIRE_BLOCK.get()));
buttonBlock(((ButtonBlock) ModBlocks.SAPPHIRE_BUTTON.get()), blockTexture(ModBlocks.SAPPHIRE_BLOCK.get()));
pressurePlateBlock(((PressurePlateBlock) ModBlocks.SAPPHIRE_PRESSURE_PLATE.get()), blockTexture(ModBlocks.SAPPHIRE_BLOCK.get()));
fenceBlock(((FenceBlock) ModBlocks.SAPPHIRE_FENCE.get()), blockTexture(ModBlocks.SAPPHIRE_BLOCK.get()));
fenceGateBlock(((FenceGateBlock) ModBlocks.SAPPHIRE_FENCE_GATE.get()), blockTexture(ModBlocks.SAPPHIRE_BLOCK.get()));
wallBlock(((WallBlock) ModBlocks.SAPPHIRE_WALL.get()), blockTexture(ModBlocks.SAPPHIRE_BLOCK.get()));
doorBlockWithRenderType(((DoorBlock) ModBlocks.SAPPHIRE_DOOR.get()), modLoc("block/sapphire_door_bottom"), modLoc("block/sapphire_door_top"), "cutout");
trapdoorBlockWithRenderType(((TrapDoorBlock) ModBlocks.SAPPHIRE_TRAPDOOR.get()), modLoc("block/sapphire_trapdoor"), true, "cutout");
}
private void blockWithItem(RegistryObject<Block> blockRegistryObject) {

View File

@@ -45,6 +45,13 @@ public class ModBlockTagGenerator extends BlockTagsProvider {
this.tag(Tags.Blocks.NEEDS_NETHERITE_TOOL)
.add(ModBlocks.END_STONE_SAPPHIRE_ORE.get());
this.tag(BlockTags.FENCES)
.add(ModBlocks.SAPPHIRE_FENCE.get());
this.tag(BlockTags.FENCE_GATES)
.add(ModBlocks.SAPPHIRE_FENCE_GATE.get());
this.tag(BlockTags.WALLS)
.add(ModBlocks.SAPPHIRE_WALL.get());
}
}

View File

@@ -1,13 +1,16 @@
package net.kaupenjoe.tutorialmod.datagen;
import net.kaupenjoe.tutorialmod.TutorialMod;
import net.kaupenjoe.tutorialmod.block.ModBlocks;
import net.kaupenjoe.tutorialmod.item.ModItems;
import net.minecraft.data.PackOutput;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.Item;
import net.minecraft.world.level.block.Block;
import net.minecraftforge.client.model.generators.ItemModelBuilder;
import net.minecraftforge.client.model.generators.ItemModelProvider;
import net.minecraftforge.common.data.ExistingFileHelper;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;
public class ModItemModelProvider extends ItemModelProvider {
@@ -23,6 +26,19 @@ public class ModItemModelProvider extends ItemModelProvider {
simpleItem(ModItems.METAL_DETECTOR);
simpleItem(ModItems.PINE_CONE);
simpleItem(ModItems.STRAWBERRY);
simpleBlockItem(ModBlocks.SAPPHIRE_DOOR);
fenceItem(ModBlocks.SAPPHIRE_FENCE, ModBlocks.SAPPHIRE_BLOCK);
buttonItem(ModBlocks.SAPPHIRE_BUTTON, ModBlocks.SAPPHIRE_BLOCK);
wallItem(ModBlocks.SAPPHIRE_WALL, ModBlocks.SAPPHIRE_BLOCK);
evenSimplerBlockItem(ModBlocks.SAPPHIRE_STAIRS);
evenSimplerBlockItem(ModBlocks.SAPPHIRE_SLAB);
evenSimplerBlockItem(ModBlocks.SAPPHIRE_PRESSURE_PLATE);
evenSimplerBlockItem(ModBlocks.SAPPHIRE_FENCE_GATE);
trapdoorItem(ModBlocks.SAPPHIRE_TRAPDOOR);
}
private ItemModelBuilder simpleItem(RegistryObject<Item> item) {
@@ -30,4 +46,35 @@ public class ModItemModelProvider extends ItemModelProvider {
new ResourceLocation("item/generated")).texture("layer0",
new ResourceLocation(TutorialMod.MOD_ID,"item/" + item.getId().getPath()));
}
public void evenSimplerBlockItem(RegistryObject<Block> block) {
this.withExistingParent(TutorialMod.MOD_ID + ":" + ForgeRegistries.BLOCKS.getKey(block.get()).getPath(),
modLoc("block/" + ForgeRegistries.BLOCKS.getKey(block.get()).getPath()));
}
public void trapdoorItem(RegistryObject<Block> block) {
this.withExistingParent(ForgeRegistries.BLOCKS.getKey(block.get()).getPath(),
modLoc("block/" + ForgeRegistries.BLOCKS.getKey(block.get()).getPath() + "_bottom"));
}
public void fenceItem(RegistryObject<Block> block, RegistryObject<Block> baseBlock) {
this.withExistingParent(ForgeRegistries.BLOCKS.getKey(block.get()).getPath(), mcLoc("block/fence_inventory"))
.texture("texture", new ResourceLocation(TutorialMod.MOD_ID, "block/" + ForgeRegistries.BLOCKS.getKey(baseBlock.get()).getPath()));
}
public void buttonItem(RegistryObject<Block> block, RegistryObject<Block> baseBlock) {
this.withExistingParent(ForgeRegistries.BLOCKS.getKey(block.get()).getPath(), mcLoc("block/button_inventory"))
.texture("texture", new ResourceLocation(TutorialMod.MOD_ID, "block/" + ForgeRegistries.BLOCKS.getKey(baseBlock.get()).getPath()));
}
public void wallItem(RegistryObject<Block> block, RegistryObject<Block> baseBlock) {
this.withExistingParent(ForgeRegistries.BLOCKS.getKey(block.get()).getPath(), mcLoc("block/wall_inventory"))
.texture("wall", new ResourceLocation(TutorialMod.MOD_ID, "block/" + ForgeRegistries.BLOCKS.getKey(baseBlock.get()).getPath()));
}
private ItemModelBuilder simpleBlockItem(RegistryObject<Block> item) {
return withExistingParent(item.getId().getPath(),
new ResourceLocation("item/generated")).texture("layer0",
new ResourceLocation(TutorialMod.MOD_ID,"item/" + item.getId().getPath()));
}
}

View File

@@ -38,6 +38,18 @@ public class ModBlockLootTables extends BlockLootSubProvider {
this.add(ModBlocks.END_STONE_SAPPHIRE_ORE.get(),
block -> createCopperLikeOreDrops(ModBlocks.END_STONE_SAPPHIRE_ORE.get(), ModItems.RAW_SAPPHIRE.get()));
this.dropSelf(ModBlocks.SAPPHIRE_STAIRS.get());
this.dropSelf(ModBlocks.SAPPHIRE_BUTTON.get());
this.dropSelf(ModBlocks.SAPPHIRE_PRESSURE_PLATE.get());
this.dropSelf(ModBlocks.SAPPHIRE_TRAPDOOR.get());
this.dropSelf(ModBlocks.SAPPHIRE_FENCE.get());
this.dropSelf(ModBlocks.SAPPHIRE_FENCE_GATE.get());
this.dropSelf(ModBlocks.SAPPHIRE_WALL.get());
this.add(ModBlocks.SAPPHIRE_SLAB.get(),
block -> createSlabItemTable(ModBlocks.SAPPHIRE_SLAB.get()));
this.add(ModBlocks.SAPPHIRE_DOOR.get(),
block -> createDoorTable(ModBlocks.SAPPHIRE_DOOR.get()));
}
protected LootTable.Builder createCopperLikeOreDrops(Block pBlock, Item item) {

View File

@@ -39,6 +39,18 @@ public class ModCreativeModTabs {
pOutput.accept(ModBlocks.SOUND_BLOCK.get());
pOutput.accept(ModBlocks.SAPPHIRE_STAIRS.get());
pOutput.accept(ModBlocks.SAPPHIRE_SLAB.get());
pOutput.accept(ModBlocks.SAPPHIRE_BUTTON.get());
pOutput.accept(ModBlocks.SAPPHIRE_PRESSURE_PLATE.get());
pOutput.accept(ModBlocks.SAPPHIRE_FENCE.get());
pOutput.accept(ModBlocks.SAPPHIRE_FENCE_GATE.get());
pOutput.accept(ModBlocks.SAPPHIRE_WALL.get());
pOutput.accept(ModBlocks.SAPPHIRE_DOOR.get());
pOutput.accept(ModBlocks.SAPPHIRE_TRAPDOOR.get());
})
.build());

View File

@@ -16,6 +16,16 @@
"block.tutorialmod.sound_block": "Sound Block",
"block.tutorialmod.sapphire_stairs": "Sapphire Stairs",
"block.tutorialmod.sapphire_slab": "Sapphire Slab",
"block.tutorialmod.sapphire_button": "Sapphire Button",
"block.tutorialmod.sapphire_pressure_plate": "Sapphire Pressure Plate",
"block.tutorialmod.sapphire_fence": "Sapphire Fence",
"block.tutorialmod.sapphire_fence_gate": "Sapphire Fence Gate",
"block.tutorialmod.sapphire_wall": "Sapphire Wall",
"block.tutorialmod.sapphire_door": "Sapphire Door",
"block.tutorialmod.sapphire_trapdoor": "Sapphire Trapdoor",
"tooltip.tutorialmod.metal_detector.tooltip": "Finds valuables underground!",

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB