Skip to content

Commit

Permalink
Added uvlock to chiseled bookshelf model
Browse files Browse the repository at this point in the history
  • Loading branch information
GeForceLegend committed Nov 22, 2022
1 parent 8a56790 commit 3dc760d
Show file tree
Hide file tree
Showing 4 changed files with 149 additions and 17 deletions.
40 changes: 40 additions & 0 deletions assets/minecraft/blockstates/chiseled_bookshelf.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
22 changes: 6 additions & 16 deletions assets/minecraft/models/block/chiseled_bookshelf.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,48 @@
{
"__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":[
{
"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"}
"down":{"uv":[0,0,16,16],"texture":"#side","cullface":"north"}
}
},
{
"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"}
"up":{"uv":[0,0,16,16],"texture":"#side","cullface":"north"}
}
},
{
"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"}
"west":{"uv":[0,1,16,15],"texture":"#side","cullface":"north"}
}
},
{
"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"}
"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"}
}
},
Expand Down
19 changes: 19 additions & 0 deletions assets/minecraft/models/block/chiseled_bookshelf_end.json
Original file line number Diff line number Diff line change
@@ -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"}
}
}
]
}
85 changes: 84 additions & 1 deletion assets/minecraft/models/block/chiseled_bookshelf_inventory.json
Original file line number Diff line number Diff line change
@@ -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"}
}
}
]
}

0 comments on commit 3dc760d

Please sign in to comment.