Skip to content

Commit

Permalink
add 3 dripstone blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Lothrazar committed Aug 23, 2024
1 parent a542cb1 commit 51bc27b
Show file tree
Hide file tree
Showing 31 changed files with 335 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ public class AbsentRegistry {
// NO INVENTORY SCREEN BLOCKS (chest, furnace, ...)
// NO ORES
// NO RECIPE OVERRIDES / REMOVALS (example: glass walls vs glass panes, chiseled sandstone -> normal slab)
// NO METAL / DIAMOND / EMERALD
// AVOID METAL-LIKE STORAGE BLOCKS (coal, netherwart, lapis, slime, honey, bone, kelp, ... )
// AVOID PLANTS (leaves, coral, moss, cactus, melon ...)
// AVOID GRAVITY & WORLD TRIGGER BLOCKS (sand, ice, powder, grass, sponge, tinted_glass, dripstone, infested, ...)
// AVOID GRAVITY & WORLD TRIGGER BLOCKS (sand, ice, powder, grass, sponge, tinted_glass, dripstone-pointed, infested, ...)
// AVOID REDSTONE STUFF (levers, piston, buttons, dispenser, pressure_plates ...)
// AVOID NEW BLOCK TYPES (chain, lantern, glass panes, iron_bars, ...)
// AVOID PILLAR
Expand Down Expand Up @@ -243,6 +242,7 @@ public static void onBlocksRegistry(RegisterEvent event) {
reg.register("slab_rooted_dirt", createSlab(Block.Properties.of(), Blocks.ROOTED_DIRT));
reg.register("slab_muddy_mangrove_roots", createSlab(Block.Properties.of(), Blocks.MUDDY_MANGROVE_ROOTS));
reg.register("slab_cracked_polished_blackstone_bricks", createSlab(Block.Properties.of(), Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS));
reg.register("slab_dripstone", createSlab(Block.Properties.of(), Blocks.DRIPSTONE_BLOCK));
//
// STAIRS
//
Expand Down Expand Up @@ -367,6 +367,7 @@ public static void onBlocksRegistry(RegisterEvent event) {
reg.register("stairs_rooted_dirt", createStair(Block.Properties.of(), Blocks.ROOTED_DIRT));
reg.register("stairs_muddy_mangrove_roots", createStair(Block.Properties.of(), Blocks.MUDDY_MANGROVE_ROOTS));
reg.register("stairs_cracked_polished_blackstone_bricks", createStair(Block.Properties.of(), Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS));
reg.register("stairs_dripstone", createStair(Block.Properties.of(), Blocks.DRIPSTONE_BLOCK));
//
// WALLS
//
Expand Down Expand Up @@ -516,6 +517,7 @@ public static void onBlocksRegistry(RegisterEvent event) {
reg.register("wall_wool_red", createWall(Block.Properties.of(), Blocks.BLACK_WOOL));
reg.register("wall_wool_white", createWall(Block.Properties.of(), Blocks.BLACK_WOOL));
reg.register("wall_wool_yellow", createWall(Block.Properties.of(), Blocks.BLACK_WOOL));
reg.register("wall_dripstone", createWall(Block.Properties.of(), Blocks.DRIPSTONE_BLOCK));
//
// GATE
//
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"type=bottom": { "model": "absentbydesign:block/slab_dripstone" },
"type=top": { "model": "absentbydesign:block/slab_dripstone_upper" },
"type=double": { "model": "block/dripstone_block" }
}
}
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_dripstone" },
"facing=west,half=bottom,shape=straight": { "model": "absentbydesign:block/stairs_dripstone", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=straight": { "model": "absentbydesign:block/stairs_dripstone", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=straight": { "model": "absentbydesign:block/stairs_dripstone", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=outer_right": { "model": "absentbydesign:block/stairs_dripstone_outer" },
"facing=west,half=bottom,shape=outer_right": { "model": "absentbydesign:block/stairs_dripstone_outer", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=outer_right": { "model": "absentbydesign:block/stairs_dripstone_outer", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=outer_right": { "model": "absentbydesign:block/stairs_dripstone_outer", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=outer_left": { "model": "absentbydesign:block/stairs_dripstone_outer", "y": 270, "uvlock": true },
"facing=west,half=bottom,shape=outer_left": { "model": "absentbydesign:block/stairs_dripstone_outer", "y": 90, "uvlock": true },
"facing=south,half=bottom,shape=outer_left": { "model": "absentbydesign:block/stairs_dripstone_outer" },
"facing=north,half=bottom,shape=outer_left": { "model": "absentbydesign:block/stairs_dripstone_outer", "y": 180, "uvlock": true },
"facing=east,half=bottom,shape=inner_right": { "model": "absentbydesign:block/stairs_dripstone_inner" },
"facing=west,half=bottom,shape=inner_right": { "model": "absentbydesign:block/stairs_dripstone_inner", "y": 180, "uvlock": true },
"facing=south,half=bottom,shape=inner_right": { "model": "absentbydesign:block/stairs_dripstone_inner", "y": 90, "uvlock": true },
"facing=north,half=bottom,shape=inner_right": { "model": "absentbydesign:block/stairs_dripstone_inner", "y": 270, "uvlock": true },
"facing=east,half=bottom,shape=inner_left": { "model": "absentbydesign:block/stairs_dripstone_inner", "y": 270, "uvlock": true },
"facing=west,half=bottom,shape=inner_left": { "model": "absentbydesign:block/stairs_dripstone_inner", "y": 90, "uvlock": true },
"facing=south,half=bottom,shape=inner_left": { "model": "absentbydesign:block/stairs_dripstone_inner" },
"facing=north,half=bottom,shape=inner_left": { "model": "absentbydesign:block/stairs_dripstone_inner", "y": 180, "uvlock": true },
"facing=east,half=top,shape=straight": { "model": "absentbydesign:block/stairs_dripstone", "x": 180, "uvlock": true },
"facing=west,half=top,shape=straight": { "model": "absentbydesign:block/stairs_dripstone", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=straight": { "model": "absentbydesign:block/stairs_dripstone", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=straight": { "model": "absentbydesign:block/stairs_dripstone", "x": 180, "y": 270, "uvlock": true },
"facing=east,half=top,shape=outer_right": { "model": "absentbydesign:block/stairs_dripstone_outer", "x": 180, "y": 90, "uvlock": true },
"facing=west,half=top,shape=outer_right": { "model": "absentbydesign:block/stairs_dripstone_outer", "x": 180, "y": 270, "uvlock": true },
"facing=south,half=top,shape=outer_right": { "model": "absentbydesign:block/stairs_dripstone_outer", "x": 180, "y": 180, "uvlock": true },
"facing=north,half=top,shape=outer_right": { "model": "absentbydesign:block/stairs_dripstone_outer", "x": 180, "uvlock": true },
"facing=east,half=top,shape=outer_left": { "model": "absentbydesign:block/stairs_dripstone_outer", "x": 180, "uvlock": true },
"facing=west,half=top,shape=outer_left": { "model": "absentbydesign:block/stairs_dripstone_outer", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=outer_left": { "model": "absentbydesign:block/stairs_dripstone_outer", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=outer_left": { "model": "absentbydesign:block/stairs_dripstone_outer", "x": 180, "y": 270, "uvlock": true },
"facing=east,half=top,shape=inner_right": { "model": "absentbydesign:block/stairs_dripstone_inner", "x": 180, "y": 90, "uvlock": true },
"facing=west,half=top,shape=inner_right": { "model": "absentbydesign:block/stairs_dripstone_inner", "x": 180, "y": 270, "uvlock": true },
"facing=south,half=top,shape=inner_right": { "model": "absentbydesign:block/stairs_dripstone_inner", "x": 180, "y": 180, "uvlock": true },
"facing=north,half=top,shape=inner_right": { "model": "absentbydesign:block/stairs_dripstone_inner", "x": 180, "uvlock": true },
"facing=east,half=top,shape=inner_left": { "model": "absentbydesign:block/stairs_dripstone_inner", "x": 180, "uvlock": true },
"facing=west,half=top,shape=inner_left": { "model": "absentbydesign:block/stairs_dripstone_inner", "x": 180, "y": 180, "uvlock": true },
"facing=south,half=top,shape=inner_left": { "model": "absentbydesign:block/stairs_dripstone_inner", "x": 180, "y": 90, "uvlock": true },
"facing=north,half=top,shape=inner_left": { "model": "absentbydesign:block/stairs_dripstone_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_dripstone_post" }
},
{ "when": { "north": "low" },
"apply": { "model": "absentbydesign:block/wall_dripstone_side", "uvlock": true }
},
{ "when": { "east": "low" },
"apply": { "model": "absentbydesign:block/wall_dripstone_side", "y": 90, "uvlock": true }
},
{ "when": { "south": "low" },
"apply": { "model": "absentbydesign:block/wall_dripstone_side", "y": 180, "uvlock": true }
},
{ "when": { "west": "low" },
"apply": { "model": "absentbydesign:block/wall_dripstone_side", "y": 270, "uvlock": true }
},
{
"when": {
"north": "tall"
},
"apply": {
"model": "absentbydesign:block/wall_dripstone_side_tall",
"uvlock": true
}
},
{
"when": {
"east": "tall"
},
"apply": {
"model": "absentbydesign:block/wall_dripstone_side_tall",
"y": 90,
"uvlock": true
}
},
{
"when": {
"south": "tall"
},
"apply": {
"model": "absentbydesign:block/wall_dripstone_side_tall",
"y": 180,
"uvlock": true
}
},
{
"when": {
"west": "tall"
},
"apply": {
"model": "absentbydesign:block/wall_dripstone_side_tall",
"y": 270,
"uvlock": true
}
}
]
}
6 changes: 6 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,12 @@
{
"itemGroup.absentbydesign": "Absent by Design",

"block.absentbydesign.slab_dripstone":"Dripstone Slab",
"block.absentbydesign.wall_dripstone":"Dripstone Wall",
"block.absentbydesign.stairs_dripstone":"Dripstone Stairs",



"block.absentbydesign.slab_cracked_polished_blackstone_bricks":"Cracked Polished Blackstone Bricks Slab",
"block.absentbydesign.stairs_cracked_polished_blackstone_bricks":"Cracked Polished Blackstone Bricks Stairs",
"block.absentbydesign.wall_cracked_polished_blackstone_bricks":"Cracked Polished Blackstone Bricks Wall",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/slab",
"textures": {
"b": "block/dripstone_block"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/slab_upper",
"textures": {
"b": "block/dripstone_block"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/stairs",
"textures": {
"b": "block/dripstone_block"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/stairs_inner",
"textures": {
"b": "block/dripstone_block"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/stairs_outer",
"textures": {
"b": "block/dripstone_block"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "block/wall_inventory",
"textures": {
"wall": "minecraft:block/dripstone_block"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/wall_post",
"textures": {
"wall": "minecraft:block/dripstone_block"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "absentbydesign:parent/wall_side",
"textures": {
"wall": "minecraft:block/dripstone_block"
}
}
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/dripstone_block"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parent": "absentbydesign:block/slab_dripstone"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parent": "absentbydesign:block/stairs_dripstone"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parent": "absentbydesign:block/wall_dripstone_inventory"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"conditions": [
{
"condition": "minecraft:block_state_property",
"block": "absentbydesign:slab_dripstone",
"properties": {
"type": "double"
}
}
],
"count": 2
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "absentbydesign:slab_dripstone"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"type": "minecraft:block",
"pools": [
{
"name": "pool1",
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "absentbydesign:stairs_dripstone"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"type": "minecraft:block",
"pools": [
{
"name": "pool1",
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "absentbydesign:wall_dripstone"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}
15 changes: 15 additions & 0 deletions src/main/resources/data/absentbydesign/recipes/slab_dripstone.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"###"
],
"key": {
"#": {
"item": "minecraft:dripstone_block"
}
},
"result": {
"item": "absentbydesign:slab_dripstone",
"count": 6
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

{
"type": "minecraft:stonecutting",
"ingredient": {
"item": "minecraft:dripstone_block"
},
"result": "absentbydesign:slab_dripstone_block",
"count": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"# ",
"## ",
"###"
],
"key": {
"#": {
"item": "minecraft:dripstone_block"
}
},
"result": {
"item": "absentbydesign:stairs_dripstone",
"count": 4
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "minecraft:stonecutting",
"ingredient": {
"item": "minecraft:dripstone_block"
},
"result": "absentbydesign:stairs_dripstone_block",
"count": 1
}
16 changes: 16 additions & 0 deletions src/main/resources/data/absentbydesign/recipes/wall_dripstone.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"###",
"###"
],
"key": {
"#": {
"item": "minecraft:dripstone"
}
},
"result": {
"item": "absentbydesign:wall_dripstone",
"count": 6
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "minecraft:stonecutting",
"ingredient": {
"item": "minecraft:dripstone"
},
"result": "absentbydesign:wall_dripstone",
"count": 1
}
Loading

0 comments on commit 51bc27b

Please sign in to comment.