From fd699c18db933320dd0e79792d33ed376ce552b8 Mon Sep 17 00:00:00 2001 From: quat1024 Date: Sun, 23 Jul 2023 20:27:40 -0400 Subject: [PATCH] Some textures, finish doors --- .../cottonmc/templates/TemplatesClient.java | 3 -- .../assets/templates/models/item/candle.json | 6 ++++ .../assets/templates/models/item/door.json | 6 ++++ .../assets/templates/models/item/lever.json | 6 ++++ .../assets/templates/models/item/pane.json | 2 +- .../assets/templates/textures/item/candle.png | Bin 0 -> 566 bytes .../assets/templates/textures/item/door.png | Bin 0 -> 857 bytes .../assets/templates/textures/item/lever.png | Bin 0 -> 535 bytes .../minecraft/tags/blocks/mineable/axe.json | 1 + .../minecraft/tags/blocks/wooden_doors.json | 6 ++++ .../recipes/decorations/templates.json | 1 + .../templates/loot_tables/blocks/door.json | 28 ++++++++++++++++++ .../data/templates/recipes/door.json | 21 +++++++++++++ 13 files changed, 76 insertions(+), 4 deletions(-) create mode 100644 src/main/resources/assets/templates/models/item/candle.json create mode 100644 src/main/resources/assets/templates/models/item/door.json create mode 100644 src/main/resources/assets/templates/models/item/lever.json create mode 100644 src/main/resources/assets/templates/textures/item/candle.png create mode 100644 src/main/resources/assets/templates/textures/item/door.png create mode 100644 src/main/resources/assets/templates/textures/item/lever.png create mode 100644 src/main/resources/data/minecraft/tags/blocks/wooden_doors.json create mode 100644 src/main/resources/data/templates/loot_tables/blocks/door.json create mode 100644 src/main/resources/data/templates/recipes/door.json diff --git a/src/main/java/io/github/cottonmc/templates/TemplatesClient.java b/src/main/java/io/github/cottonmc/templates/TemplatesClient.java index fa2551b..76899ef 100644 --- a/src/main/java/io/github/cottonmc/templates/TemplatesClient.java +++ b/src/main/java/io/github/cottonmc/templates/TemplatesClient.java @@ -134,14 +134,11 @@ public class TemplatesClient implements ClientModInitializer { //item model assignments (in lieu of models/item/___.json) provider.assignItemModel(Templates.id("button_inventory_special") , Templates.BUTTON); - provider.assignItemModel(Templates.id("one_candle_special") , Templates.CANDLE); //TODO vanilla uses its own item model provider.assignItemModel(Templates.id("carpet_special") , Templates.CARPET); provider.assignItemModel(Templates.id("cube_special") , Templates.CUBE); provider.assignItemModel(Templates.id("fence_inventory_special") , Templates.FENCE); provider.assignItemModel(Templates.id("fence_gate_special") , Templates.FENCE_GATE); provider.assignItemModel(Templates.id("trapdoor_bottom_special") , Templates.IRON_TRAPDOOR); - provider.assignItemModel(Templates.id("lever_special") , Templates.LEVER); //TODO vanilla uses its own item model - //provider.assignItemModel(Templates.id("glass_pane_side_special"), Templates.PANE); //Done with a regular json model actually provider.assignItemModel(Templates.id("fence_post_inventory_special") , Templates.POST); provider.assignItemModel(Templates.id("pressure_plate_up_special") , Templates.PRESSURE_PLATE); provider.assignItemModel(Templates.id("slab_bottom_special") , Templates.SLAB); diff --git a/src/main/resources/assets/templates/models/item/candle.json b/src/main/resources/assets/templates/models/item/candle.json new file mode 100644 index 0000000..caf69ce --- /dev/null +++ b/src/main/resources/assets/templates/models/item/candle.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "templates:item/candle" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/templates/models/item/door.json b/src/main/resources/assets/templates/models/item/door.json new file mode 100644 index 0000000..f5985bf --- /dev/null +++ b/src/main/resources/assets/templates/models/item/door.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "templates:item/door" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/templates/models/item/lever.json b/src/main/resources/assets/templates/models/item/lever.json new file mode 100644 index 0000000..605bf93 --- /dev/null +++ b/src/main/resources/assets/templates/models/item/lever.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "templates:item/lever" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/templates/models/item/pane.json b/src/main/resources/assets/templates/models/item/pane.json index d51ecf4..bed7282 100644 --- a/src/main/resources/assets/templates/models/item/pane.json +++ b/src/main/resources/assets/templates/models/item/pane.json @@ -1,5 +1,5 @@ { - "parent": "item/generated", + "parent": "minecraft:item/generated", "textures": { "layer0": "minecraft:block/scaffolding_top" } diff --git a/src/main/resources/assets/templates/textures/item/candle.png b/src/main/resources/assets/templates/textures/item/candle.png new file mode 100644 index 0000000000000000000000000000000000000000..c76d54c1d7909c2307c7d33b86dcf589ae1d5f73 GIT binary patch literal 566 zcmV-60?GY}P)M9@YpVgz5!-Q|)9xp>@NkYFp=SO^xP zjjzK0KwH69K@b!{#LnJVBXZ7~K!U_M_U7Za`x|CwAuyFUEVpS4tb*qxClk^6g~e#_ zg&+}B3~GjJPtQ)I_%}Z9Xi)h!u4?^%u5PrYP1k^i7U2=Yc06I}hN(5rR=g$LY2>uD z@S$+bkp_jYl&+WgS#h?^?~0vNavTDxW;9#FdJP*n#}e)r?y>SkqtcJMNyseB%}VZ) z)s0J%NfJcSDY8NykGSN5%&fj|;MX_9s(1|f+mvv`ktHYIn5admYD&(CZpxRZq~`v2 zo^ED%s9ZgifaWLPf9r+d4t#I>{@0Q3e;-5RBU}`!{#BXN=!fXrRjua$!W(dQS=IDi zINyZGgRME*uhb|jkjcR7DYP#@#|^YDm1kAi=j0wz>+(d`u(uC=az4EL1N@h02%{h$ z9{>OV32;bRa{vG?BLDy{BLR4&KXw2B0B=b|K~y-)V_+Bsv;~R^CjSYkVZtZb70k=f zli~iKYy&JJH5uH4Iq|xH1)t=M?$Zo{fp`cJkCR?KM9@YpVgz5!-Q|)9xp>@NkYFp=SO^xP zjjzK0KwH69K@b!{#LnJVBXZ7~K!U_M_U7Za`x|CwAuyFUEVpS4tb*qxClk^6g~e#_ zg&+}B3~GjJPtQ)I_%}Z9Xi)h!u4?^%u5PrYP1k^i7U2=Yc06I}hN(5rR=g$LY2>uD z@S$+bkp_jYl&+WgS#h?^?~0vNavTDxW;9#FdJP*n#}e)r?y>SkqtcJMNyseB%}VZ) z)s0J%NfJcSDY8NykGSN5%&fj|;MX_9s(1|f+mvv`ktHYIn5admYD&(CZpxRZq~`v2 zo^ED%s9ZgifaWLPf9r+d4t#I>{@0Q3e;-5RBU}`!{#BXN=!fXrRjua$!W(dQS=IDi zINyZGgRME*uhb|jkjcR7DYP#@#|^YDm1kAi=j0wz>+(d`u(uC=az4EL1N@h02%{h$ z9{>OV32;bRa{vG?BLDy{BLR4&KXw2B0g_2XK~y-)V_={VFd}m*ptihhN!HG{fX! zfCZTYlbqUhjbX;_TZ|c()c%8L1_t;4ckbS2$Sz}G`16VYp{Aj-+`6EJ(!bW@1>^<_T?)W|9pJL5Zb#RPJ=ACvEw7|KFB!zd#2MH%zJkL**L4GS7ua~Rfn9L-*&Ddcps)aG2GK{h|AGfJ zRu`-;cKi==J}ewyeg_!uK0e3V?2t$$uDA9nz z0~Rh&vHu{$LCG3tLV_jN;N(AG_Lo~C4DKFZf&OLyim8Fcq@`tXy8xEfc{w3o1bOAf j+dtq`2ol4V7bpe*1boc>m23$U00000NkvXXu0mjfUO9?u literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/templates/textures/item/lever.png b/src/main/resources/assets/templates/textures/item/lever.png new file mode 100644 index 0000000000000000000000000000000000000000..a9a49b488ac4ea1682484e3267b6ecbd2987f364 GIT binary patch literal 535 zcmV+y0_gpTP)M9@YpVgz5!-Q|)9xp>@NkYFp=SO^xP zjjzK0KwH69K@b!{#LnJVBXZ7~K!U_M_U7Za`x|CwAuyFUEVpS4tb*qxClk^6g~e#_ zg&+}B3~GjJPtQ)I_%}Z9Xi)h!u4?^%u5PrYP1k^i7U2=Yc06I}hN(5rR=g$LY2>uD z@S$+bkp_jYl&+WgS#h?^?~0vNavTDxW;9#FdJP*n#}e)r?y>SkqtcJMNyseB%}VZ) z)s0J%NfJcSDY8NykGSN5%&fj|;MX_9s(1|f+mvv`ktHYIn5admYD&(CZpxRZq~`v2 zo^ED%s9ZgifaWLPf9r+d4t#I>{@0Q3e;-5RBU}`!{#BXN=!fXrRjua$!W(dQS=IDi zINyZGgRME*uhb|jkjcR7DYP#@#|^YDm1kAi=j0wz>+(d`u(uC=az4EL1N@h02%{h$ z9{>OV32;bRa{vG?BLDy{BLR4&KXw2B08mLpK~y-)V_+BsgB+|bcKlx*Zu%de8YX;_ zeEj^Bx!~iin*Wc_WRdTJPoLf~e0cwifouba0R#