Skip to content

Commit

Permalink
add packed ice and blue ice with matching friction
Browse files Browse the repository at this point in the history
  • Loading branch information
Lothrazar committed Aug 23, 2024
1 parent d888954 commit 3296d6c
Show file tree
Hide file tree
Showing 53 changed files with 662 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ public static void onBlocksRegistry(RegisterEvent event) {
reg.register("slab_moss", createSlab(Block.Properties.of(), Blocks.MOSS_BLOCK));
reg.register("slab_soul_sand", createSlab(Block.Properties.of().speedFactor(0.4F), Blocks.SOUL_SAND));
reg.register("slab_soul_soil", createSlab(Block.Properties.of(), Blocks.SOUL_SOIL));
reg.register("slab_packed_ice", createSlab(Block.Properties.of().friction(0.98F), Blocks.PACKED_ICE));
reg.register("slab_blue_ice", createSlab(Block.Properties.of().friction(0.989F), Blocks.BLUE_ICE));
//
// STAIRS
//
Expand Down Expand Up @@ -378,6 +380,8 @@ public static void onBlocksRegistry(RegisterEvent event) {
reg.register("stairs_moss", createStair(Block.Properties.of(), Blocks.MOSS_BLOCK));
reg.register("stairs_soul_sand", createStair(Block.Properties.of().speedFactor(0.4F), Blocks.SOUL_SAND));
reg.register("stairs_soul_soil", createStair(Block.Properties.of(), Blocks.SOUL_SOIL));
reg.register("stairs_packed_ice", createStair(Block.Properties.of().friction(0.98F), Blocks.PACKED_ICE));
reg.register("stairs_blue_ice", createStair(Block.Properties.of().friction(0.989F), Blocks.BLUE_ICE));
//
// WALLS
//
Expand Down Expand Up @@ -533,6 +537,8 @@ public static void onBlocksRegistry(RegisterEvent event) {
reg.register("wall_moss", createWall(Block.Properties.of(), Blocks.MOSS_BLOCK));
reg.register("wall_soul_sand", createWall(Block.Properties.of().speedFactor(0.4F), Blocks.SOUL_SAND));
reg.register("wall_soul_soil", createWall(Block.Properties.of(), Blocks.SOUL_SOIL));
reg.register("wall_packed_ice", createWall(Block.Properties.of().friction(0.98F), Blocks.PACKED_ICE));
reg.register("wall_blue_ice", createWall(Block.Properties.of().friction(0.989F), Blocks.BLUE_ICE));
//
// GATE
//
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"type=bottom": { "model": "absentbydesign:block/slab_blue_ice" },
"type=top": { "model": "absentbydesign:block/slab_blue_ice_upper" },
"type=double": { "model": "block/blue_ice" }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"type=bottom": { "model": "absentbydesign:block/slab_packed_ice" },
"type=top": { "model": "absentbydesign:block/slab_packed_ice_upper" },
"type=double": { "model": "block/packed_ice" }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"variants": {
"facing=east,half=bottom,shape=straight": { "model": "absentbydesign:block/stairs_blue_ice" },
"facing=west,half=bottom,shape=straight": { "model": "absentbydesign:block/stairs_blue_ice", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=straight": { "model": "absentbydesign:block/stairs_blue_ice", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=straight": { "model": "absentbydesign:block/stairs_blue_ice", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=outer_right": { "model": "absentbydesign:block/stairs_blue_ice_outer" },
"facing=west,half=bottom,shape=outer_right": { "model": "absentbydesign:block/stairs_blue_ice_outer", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=outer_right": { "model": "absentbydesign:block/stairs_blue_ice_outer", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=outer_right": { "model": "absentbydesign:block/stairs_blue_ice_outer", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=outer_left": { "model": "absentbydesign:block/stairs_blue_ice_outer", "y": 270, "uvlock": true },
"facing=west,half=bottom,shape=outer_left": { "model": "absentbydesign:block/stairs_blue_ice_outer", "y": 90, "uvlock": true },
"facing=south,half=bottom,shape=outer_left": { "model": "absentbydesign:block/stairs_blue_ice_outer" },
"facing=north,half=bottom,shape=outer_left": { "model": "absentbydesign:block/stairs_blue_ice_outer", "y": 180, "uvlock": true },
"facing=east,half=bottom,shape=inner_right": { "model": "absentbydesign:block/stairs_blue_ice_inner" },
"facing=west,half=bottom,shape=inner_right": { "model": "absentbydesign:block/stairs_blue_ice_inner", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=inner_right": { "model": "absentbydesign:block/stairs_blue_ice_inner", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=inner_right": { "model": "absentbydesign:block/stairs_blue_ice_inner", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=inner_left": { "model": "absentbydesign:block/stairs_blue_ice_inner", "y": 270, "uvlock": true },
"facing=west,half=bottom,shape=inner_left": { "model": "absentbydesign:block/stairs_blue_ice_inner", "y": 90, "uvlock": true },
"facing=south,half=bottom,shape=inner_left": { "model": "absentbydesign:block/stairs_blue_ice_inner" },
"facing=north,half=bottom,shape=inner_left": { "model": "absentbydesign:block/stairs_blue_ice_inner", "y": 180, "uvlock": true },
"facing=east,half=top,shape=straight": { "model": "absentbydesign:block/stairs_blue_ice", "x": 180, "uvlock": true },
"facing=west,half=top,shape=straight": { "model": "absentbydesign:block/stairs_blue_ice", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=straight": { "model": "absentbydesign:block/stairs_blue_ice", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=straight": { "model": "absentbydesign:block/stairs_blue_ice", "x": 180, "y": 270, "uvlock": true },
"facing=east,half=top,shape=outer_right": { "model": "absentbydesign:block/stairs_blue_ice_outer", "x": 180, "y": 90, "uvlock": true },
"facing=west,half=top,shape=outer_right": { "model": "absentbydesign:block/stairs_blue_ice_outer", "x": 180, "y": 270, "uvlock": true },
"facing=south,half=top,shape=outer_right": { "model": "absentbydesign:block/stairs_blue_ice_outer", "x": 180, "y": 180, "uvlock": true },
"facing=north,half=top,shape=outer_right": { "model": "absentbydesign:block/stairs_blue_ice_outer", "x": 180, "uvlock": true },
"facing=east,half=top,shape=outer_left": { "model": "absentbydesign:block/stairs_blue_ice_outer", "x": 180, "uvlock": true },
"facing=west,half=top,shape=outer_left": { "model": "absentbydesign:block/stairs_blue_ice_outer", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=outer_left": { "model": "absentbydesign:block/stairs_blue_ice_outer", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=outer_left": { "model": "absentbydesign:block/stairs_blue_ice_outer", "x": 180, "y": 270, "uvlock": true },
"facing=east,half=top,shape=inner_right": { "model": "absentbydesign:block/stairs_blue_ice_inner", "x": 180, "y": 90, "uvlock": true },
"facing=west,half=top,shape=inner_right": { "model": "absentbydesign:block/stairs_blue_ice_inner", "x": 180, "y": 270, "uvlock": true },
"facing=south,half=top,shape=inner_right": { "model": "absentbydesign:block/stairs_blue_ice_inner", "x": 180, "y": 180, "uvlock": true },
"facing=north,half=top,shape=inner_right": { "model": "absentbydesign:block/stairs_blue_ice_inner", "x": 180, "uvlock": true },
"facing=east,half=top,shape=inner_left": { "model": "absentbydesign:block/stairs_blue_ice_inner", "x": 180, "uvlock": true },
"facing=west,half=top,shape=inner_left": { "model": "absentbydesign:block/stairs_blue_ice_inner", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=inner_left": { "model": "absentbydesign:block/stairs_blue_ice_inner", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=inner_left": { "model": "absentbydesign:block/stairs_blue_ice_inner", "x": 180, "y": 270, "uvlock": true }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"variants": {
"facing=east,half=bottom,shape=straight": { "model": "absentbydesign:block/stairs_packed_ice" },
"facing=west,half=bottom,shape=straight": { "model": "absentbydesign:block/stairs_packed_ice", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=straight": { "model": "absentbydesign:block/stairs_packed_ice", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=straight": { "model": "absentbydesign:block/stairs_packed_ice", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=outer_right": { "model": "absentbydesign:block/stairs_packed_ice_outer" },
"facing=west,half=bottom,shape=outer_right": { "model": "absentbydesign:block/stairs_packed_ice_outer", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=outer_right": { "model": "absentbydesign:block/stairs_packed_ice_outer", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=outer_right": { "model": "absentbydesign:block/stairs_packed_ice_outer", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=outer_left": { "model": "absentbydesign:block/stairs_packed_ice_outer", "y": 270, "uvlock": true },
"facing=west,half=bottom,shape=outer_left": { "model": "absentbydesign:block/stairs_packed_ice_outer", "y": 90, "uvlock": true },
"facing=south,half=bottom,shape=outer_left": { "model": "absentbydesign:block/stairs_packed_ice_outer" },
"facing=north,half=bottom,shape=outer_left": { "model": "absentbydesign:block/stairs_packed_ice_outer", "y": 180, "uvlock": true },
"facing=east,half=bottom,shape=inner_right": { "model": "absentbydesign:block/stairs_packed_ice_inner" },
"facing=west,half=bottom,shape=inner_right": { "model": "absentbydesign:block/stairs_packed_ice_inner", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=inner_right": { "model": "absentbydesign:block/stairs_packed_ice_inner", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=inner_right": { "model": "absentbydesign:block/stairs_packed_ice_inner", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=inner_left": { "model": "absentbydesign:block/stairs_packed_ice_inner", "y": 270, "uvlock": true },
"facing=west,half=bottom,shape=inner_left": { "model": "absentbydesign:block/stairs_packed_ice_inner", "y": 90, "uvlock": true },
"facing=south,half=bottom,shape=inner_left": { "model": "absentbydesign:block/stairs_packed_ice_inner" },
"facing=north,half=bottom,shape=inner_left": { "model": "absentbydesign:block/stairs_packed_ice_inner", "y": 180, "uvlock": true },
"facing=east,half=top,shape=straight": { "model": "absentbydesign:block/stairs_packed_ice", "x": 180, "uvlock": true },
"facing=west,half=top,shape=straight": { "model": "absentbydesign:block/stairs_packed_ice", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=straight": { "model": "absentbydesign:block/stairs_packed_ice", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=straight": { "model": "absentbydesign:block/stairs_packed_ice", "x": 180, "y": 270, "uvlock": true },
"facing=east,half=top,shape=outer_right": { "model": "absentbydesign:block/stairs_packed_ice_outer", "x": 180, "y": 90, "uvlock": true },
"facing=west,half=top,shape=outer_right": { "model": "absentbydesign:block/stairs_packed_ice_outer", "x": 180, "y": 270, "uvlock": true },
"facing=south,half=top,shape=outer_right": { "model": "absentbydesign:block/stairs_packed_ice_outer", "x": 180, "y": 180, "uvlock": true },
"facing=north,half=top,shape=outer_right": { "model": "absentbydesign:block/stairs_packed_ice_outer", "x": 180, "uvlock": true },
"facing=east,half=top,shape=outer_left": { "model": "absentbydesign:block/stairs_packed_ice_outer", "x": 180, "uvlock": true },
"facing=west,half=top,shape=outer_left": { "model": "absentbydesign:block/stairs_packed_ice_outer", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=outer_left": { "model": "absentbydesign:block/stairs_packed_ice_outer", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=outer_left": { "model": "absentbydesign:block/stairs_packed_ice_outer", "x": 180, "y": 270, "uvlock": true },
"facing=east,half=top,shape=inner_right": { "model": "absentbydesign:block/stairs_packed_ice_inner", "x": 180, "y": 90, "uvlock": true },
"facing=west,half=top,shape=inner_right": { "model": "absentbydesign:block/stairs_packed_ice_inner", "x": 180, "y": 270, "uvlock": true },
"facing=south,half=top,shape=inner_right": { "model": "absentbydesign:block/stairs_packed_ice_inner", "x": 180, "y": 180, "uvlock": true },
"facing=north,half=top,shape=inner_right": { "model": "absentbydesign:block/stairs_packed_ice_inner", "x": 180, "uvlock": true },
"facing=east,half=top,shape=inner_left": { "model": "absentbydesign:block/stairs_packed_ice_inner", "x": 180, "uvlock": true },
"facing=west,half=top,shape=inner_left": { "model": "absentbydesign:block/stairs_packed_ice_inner", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=inner_left": { "model": "absentbydesign:block/stairs_packed_ice_inner", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=inner_left": { "model": "absentbydesign:block/stairs_packed_ice_inner", "x": 180, "y": 270, "uvlock": true }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"multipart": [
{ "when": { "up": "true" },
"apply": { "model": "absentbydesign:block/wall_blue_ice_post" }
},
{ "when": { "north": "low" },
"apply": { "model": "absentbydesign:block/wall_blue_ice_side", "uvlock": true }
},
{ "when": { "east": "low" },
"apply": { "model": "absentbydesign:block/wall_blue_ice_side", "y": 90, "uvlock": true }
},
{ "when": { "south": "low" },
"apply": { "model": "absentbydesign:block/wall_blue_ice_side", "y": 180, "uvlock": true }
},
{ "when": { "west": "low" },
"apply": { "model": "absentbydesign:block/wall_blue_ice_side", "y": 270, "uvlock": true }
},
{
"when": {
"north": "tall"
},
"apply": {
"model": "absentbydesign:block/wall_blue_ice_side_tall",
"uvlock": true
}
},
{
"when": {
"east": "tall"
},
"apply": {
"model": "absentbydesign:block/wall_blue_ice_side_tall",
"y": 90,
"uvlock": true
}
},
{
"when": {
"south": "tall"
},
"apply": {
"model": "absentbydesign:block/wall_blue_ice_side_tall",
"y": 180,
"uvlock": true
}
},
{
"when": {
"west": "tall"
},
"apply": {
"model": "absentbydesign:block/wall_blue_ice_side_tall",
"y": 270,
"uvlock": true
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"multipart": [
{ "when": { "up": "true" },
"apply": { "model": "absentbydesign:block/wall_packed_ice_post" }
},
{ "when": { "north": "low" },
"apply": { "model": "absentbydesign:block/wall_packed_ice_side", "uvlock": true }
},
{ "when": { "east": "low" },
"apply": { "model": "absentbydesign:block/wall_packed_ice_side", "y": 90, "uvlock": true }
},
{ "when": { "south": "low" },
"apply": { "model": "absentbydesign:block/wall_packed_ice_side", "y": 180, "uvlock": true }
},
{ "when": { "west": "low" },
"apply": { "model": "absentbydesign:block/wall_packed_ice_side", "y": 270, "uvlock": true }
},
{
"when": {
"north": "tall"
},
"apply": {
"model": "absentbydesign:block/wall_packed_ice_side_tall",
"uvlock": true
}
},
{
"when": {
"east": "tall"
},
"apply": {
"model": "absentbydesign:block/wall_packed_ice_side_tall",
"y": 90,
"uvlock": true
}
},
{
"when": {
"south": "tall"
},
"apply": {
"model": "absentbydesign:block/wall_packed_ice_side_tall",
"y": 180,
"uvlock": true
}
},
{
"when": {
"west": "tall"
},
"apply": {
"model": "absentbydesign:block/wall_packed_ice_side_tall",
"y": 270,
"uvlock": true
}
}
]
}
11 changes: 11 additions & 0 deletions src/main/resources/assets/absentbydesign/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
{
"itemGroup.absentbydesign": "Absent by Design",

"block.absentbydesign.wall_packed_ice":"Packed Ice Wall",
"block.absentbydesign.stairs_packed_ice":"Packed Ice Stairs",
"block.absentbydesign.slab_packed_ice":"Packed Ice Slab",
"block.absentbydesign.slab_blue_ice":"Blue Ice Slab",
"block.absentbydesign.stairs_blue_ice":"Blue Ice Stairs",
"block.absentbydesign.wall_blue_ice":"Blue Ice Wall",





"block.absentbydesign.stairs_soul_soil":"Soul Soil Stairs",
"block.absentbydesign.wall_soul_soil":"Soul Soil Wall",
"block.absentbydesign.slab_soul_soil":"Soul Soil Slab",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/slab",
"textures": {
"b": "block/blue_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/slab_upper",
"textures": {
"b": "block/blue_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/slab",
"textures": {
"b": "block/packed_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/slab_upper",
"textures": {
"b": "block/packed_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/stairs",
"textures": {
"b": "block/blue_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/stairs_inner",
"textures": {
"b": "block/blue_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/stairs_outer",
"textures": {
"b": "block/blue_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/stairs",
"textures": {
"b": "block/packed_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/stairs_inner",
"textures": {
"b": "block/packed_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/stairs_outer",
"textures": {
"b": "block/packed_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/wall_inventory",
"textures": {
"wall": "minecraft:block/blue_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/wall_post",
"textures": {
"wall": "minecraft:block/blue_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/wall_side",
"textures": {
"wall": "minecraft:block/blue_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_wall_side_tall",
"textures": {
"wall": "minecraft:block/blue_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/wall_inventory",
"textures": {
"wall": "minecraft:block/packed_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/wall_post",
"textures": {
"wall": "minecraft:block/packed_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/wall_side",
"textures": {
"wall": "minecraft:block/packed_ice"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_wall_side_tall",
"textures": {
"wall": "minecraft:block/packed_ice"
}
}
Loading

0 comments on commit 3296d6c

Please sign in to comment.