From 3dc760d3e9fb555346a7df92dceac425abbc12b1 Mon Sep 17 00:00:00 2001 From: GeForceLegend <512287858@qq.com> Date: Wed, 23 Nov 2022 00:43:46 +0800 Subject: [PATCH] Added uvlock to chiseled bookshelf model --- .../blockstates/chiseled_bookshelf.json | 40 +++++++++ .../models/block/chiseled_bookshelf.json | 22 ++--- .../models/block/chiseled_bookshelf_end.json | 19 +++++ .../block/chiseled_bookshelf_inventory.json | 85 ++++++++++++++++++- 4 files changed, 149 insertions(+), 17 deletions(-) create mode 100644 assets/minecraft/models/block/chiseled_bookshelf_end.json diff --git a/assets/minecraft/blockstates/chiseled_bookshelf.json b/assets/minecraft/blockstates/chiseled_bookshelf.json index dc7ef4b2..12db04af 100644 --- a/assets/minecraft/blockstates/chiseled_bookshelf.json +++ b/assets/minecraft/blockstates/chiseled_bookshelf.json @@ -10,6 +10,16 @@ "facing":"north" } }, + { + "apply":{ + "model":"minecraft:block/chiseled_bookshelf_end", + "uvlock":true, + "y":0 + }, + "when":{ + "facing":"north" + } + }, { "apply":{ "model":"minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right", @@ -91,6 +101,16 @@ "facing":"south" } }, + { + "apply":{ + "model":"minecraft:block/chiseled_bookshelf_end", + "uvlock":true, + "y":180 + }, + "when":{ + "facing":"south" + } + }, { "apply":{ "model":"minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right", @@ -172,6 +192,16 @@ "facing":"west" } }, + { + "apply":{ + "model":"minecraft:block/chiseled_bookshelf_end", + "uvlock":true, + "y":270 + }, + "when":{ + "facing":"west" + } + }, { "apply":{ "model":"minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right", @@ -253,6 +283,16 @@ "facing":"east" } }, + { + "apply":{ + "model":"minecraft:block/chiseled_bookshelf_end", + "uvlock":true, + "y":90 + }, + "when":{ + "facing":"east" + } + }, { "apply":{ "model":"minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right", diff --git a/assets/minecraft/models/block/chiseled_bookshelf.json b/assets/minecraft/models/block/chiseled_bookshelf.json index 27132c67..e3a1d88a 100644 --- a/assets/minecraft/models/block/chiseled_bookshelf.json +++ b/assets/minecraft/models/block/chiseled_bookshelf.json @@ -1,11 +1,9 @@ { "__comment":"Designed by GeForceLegend", - "parent":"block/block", "textures":{ "front":"block/chiseled_bookshelf_occupied", "particle":"block/chiseled_bookshelf_side", - "side":"block/chiseled_bookshelf_side", - "top":"block/chiseled_bookshelf_top" + "side":"block/chiseled_bookshelf_side" }, "elements":[ { @@ -13,10 +11,7 @@ "to":[16,16,16], "faces":{ "north":{"uv":[0,0,16,1],"texture":"#front","cullface":"north"}, - "east":{"uv":[0,0,16,1],"texture":"#side","cullface":"east"}, - "west":{"uv":[0,0,16,1],"texture":"#side","cullface":"west"}, - "up":{"uv":[0,0,16,16],"texture":"#top","cullface":"up"}, - "down":{"uv":[0,0,16,16],"texture":"#side"} + "down":{"uv":[0,0,16,16],"texture":"#side","cullface":"north"} } }, { @@ -24,10 +19,7 @@ "to":[16,1,16], "faces":{ "north":{"uv":[0,15,16,16],"texture":"#front","cullface":"north"}, - "east":{"uv":[0,15,16,16],"texture":"#side","cullface":"east"}, - "west":{"uv":[0,15,16,16],"texture":"#side","cullface":"west"}, - "up":{"uv":[0,0,16,16],"texture":"#side"}, - "down":{"uv":[0,0,16,16],"texture":"#top","cullface":"down"} + "up":{"uv":[0,0,16,16],"texture":"#side","cullface":"north"} } }, { @@ -35,8 +27,7 @@ "to":[16,15,16], "faces":{ "north":{"uv":[0,1,1,15],"texture":"#front","cullface":"north"}, - "east":{"uv":[0,1,16,15],"texture":"#side","cullface":"east"}, - "west":{"uv":[0,1,16,15],"texture":"#side"} + "west":{"uv":[0,1,16,15],"texture":"#side","cullface":"north"} } }, { @@ -44,15 +35,14 @@ "to":[1,15,16], "faces":{ "north":{"uv":[15,1,16,15],"texture":"#front","cullface":"north"}, - "east":{"uv":[0,1,16,15],"texture":"#side"}, - "west":{"uv":[0,1,16,15],"texture":"#side","cullface":"west"} + "east":{"uv":[0,1,16,15],"texture":"#side","cullface":"north"} } }, { "from":[0,0,6], "to":[16,16,16], "faces":{ - "north":{"uv":[0,0,16,16],"texture":"#side"}, + "north":{"uv":[0,0,16,16],"texture":"#side","cullface":"north"}, "south":{"uv":[0,0,16,16],"texture":"#side","cullface":"south"} } }, diff --git a/assets/minecraft/models/block/chiseled_bookshelf_end.json b/assets/minecraft/models/block/chiseled_bookshelf_end.json new file mode 100644 index 00000000..6a377667 --- /dev/null +++ b/assets/minecraft/models/block/chiseled_bookshelf_end.json @@ -0,0 +1,19 @@ +{ + "__comment":"Designed by GeForceLegend", + "textures":{ + "side":"block/chiseled_bookshelf_side", + "top":"block/chiseled_bookshelf_top" + }, + "elements":[ + { + "from":[0,0,0], + "to":[16,16,16], + "faces":{ + "east":{"uv":[0,0,16,16],"texture":"#side","cullface":"east"}, + "west":{"uv":[0,0,16,16],"texture":"#side","cullface":"west"}, + "up":{"uv":[0,0,16,16],"texture":"#top","cullface":"up"}, + "down":{"uv":[0,0,16,16],"texture":"#top","cullface":"down"} + } + } + ] +} \ No newline at end of file diff --git a/assets/minecraft/models/block/chiseled_bookshelf_inventory.json b/assets/minecraft/models/block/chiseled_bookshelf_inventory.json index 33ffb2be..27132c67 100644 --- a/assets/minecraft/models/block/chiseled_bookshelf_inventory.json +++ b/assets/minecraft/models/block/chiseled_bookshelf_inventory.json @@ -1,4 +1,87 @@ { "__comment":"Designed by GeForceLegend", - "parent":"block/chiseled_bookshelf" + "parent":"block/block", + "textures":{ + "front":"block/chiseled_bookshelf_occupied", + "particle":"block/chiseled_bookshelf_side", + "side":"block/chiseled_bookshelf_side", + "top":"block/chiseled_bookshelf_top" + }, + "elements":[ + { + "from":[0,15,0], + "to":[16,16,16], + "faces":{ + "north":{"uv":[0,0,16,1],"texture":"#front","cullface":"north"}, + "east":{"uv":[0,0,16,1],"texture":"#side","cullface":"east"}, + "west":{"uv":[0,0,16,1],"texture":"#side","cullface":"west"}, + "up":{"uv":[0,0,16,16],"texture":"#top","cullface":"up"}, + "down":{"uv":[0,0,16,16],"texture":"#side"} + } + }, + { + "from":[0,0,0], + "to":[16,1,16], + "faces":{ + "north":{"uv":[0,15,16,16],"texture":"#front","cullface":"north"}, + "east":{"uv":[0,15,16,16],"texture":"#side","cullface":"east"}, + "west":{"uv":[0,15,16,16],"texture":"#side","cullface":"west"}, + "up":{"uv":[0,0,16,16],"texture":"#side"}, + "down":{"uv":[0,0,16,16],"texture":"#top","cullface":"down"} + } + }, + { + "from":[15,1,0], + "to":[16,15,16], + "faces":{ + "north":{"uv":[0,1,1,15],"texture":"#front","cullface":"north"}, + "east":{"uv":[0,1,16,15],"texture":"#side","cullface":"east"}, + "west":{"uv":[0,1,16,15],"texture":"#side"} + } + }, + { + "from":[0,1,0], + "to":[1,15,16], + "faces":{ + "north":{"uv":[15,1,16,15],"texture":"#front","cullface":"north"}, + "east":{"uv":[0,1,16,15],"texture":"#side"}, + "west":{"uv":[0,1,16,15],"texture":"#side","cullface":"west"} + } + }, + { + "from":[0,0,6], + "to":[16,16,16], + "faces":{ + "north":{"uv":[0,0,16,16],"texture":"#side"}, + "south":{"uv":[0,0,16,16],"texture":"#side","cullface":"south"} + } + }, + { + "from":[1,7,0], + "to":[15,9,6], + "faces":{ + "north":{"uv":[1,7,15,9],"texture":"#front","cullface":"north"}, + "up":{"uv":[1,0,15,6],"texture":"#side","cullface":"north"}, + "down":{"uv":[1,10,15,16],"texture":"#side","cullface":"north"} + } + }, + { + "from":[10,1,2], + "to":[11,15,6], + "faces":{ + "north":{"uv":[4,1,5,15],"texture":"#side","cullface":"north"}, + "east":{"uv":[1,1,5,15],"texture":"#side","cullface":"north"}, + "west":{"uv":[6,1,10,15],"texture":"#side","cullface":"north"} + } + }, + { + "from":[5,1,2], + "to":[6,15,6], + "faces":{ + "north":{"uv":[4,1,5,15],"texture":"#side","cullface":"north"}, + "east":{"uv":[1,1,5,15],"texture":"#side","cullface":"north"}, + "west":{"uv":[6,1,10,15],"texture":"#side","cullface":"north"} + } + } + ] } \ No newline at end of file