From ce188a87e4759cd31639da023fdf69ad9feea94c Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Mon, 12 Oct 2015 17:42:01 +0200 Subject: [PATCH] add basic shapes directed gravity block --- data/default.shapes | 221 +++++++++++++++++++++++++++++++++++++++++ data/default.types | 51 +++++----- textures/rock-face.png | Bin 0 -> 288 bytes 3 files changed, 249 insertions(+), 23 deletions(-) create mode 100644 data/default.shapes create mode 100644 textures/rock-face.png diff --git a/data/default.shapes b/data/default.shapes new file mode 100644 index 0000000..7185db7 --- /dev/null +++ b/data/default.shapes @@ -0,0 +1,221 @@ +uniform_block = { + bounds = Cuboid([ -0.5, -0.5, -0.5 ], [ 0.5, 0.5, 0.5 ]); + vertices = { + // position normal texture + { [ -0.5, -0.5, 0.5 ], [ 0, 0, 1 ], [ 0, 1 ], 0 }, // front + { [ 0.5, -0.5, 0.5 ], [ 0, 0, 1 ], [ 1, 1 ], 0 }, + { [ -0.5, 0.5, 0.5 ], [ 0, 0, 1 ], [ 0, 0 ], 0 }, + { [ 0.5, 0.5, 0.5 ], [ 0, 0, 1 ], [ 1, 0 ], 0 }, + { [ -0.5, -0.5, -0.5 ], [ 0, 0, -1 ], [ 1, 1 ], 0 }, // back + { [ -0.5, 0.5, -0.5 ], [ 0, 0, -1 ], [ 1, 0 ], 0 }, + { [ 0.5, -0.5, -0.5 ], [ 0, 0, -1 ], [ 0, 1 ], 0 }, + { [ 0.5, 0.5, -0.5 ], [ 0, 0, -1 ], [ 0, 0 ], 0 }, + { [ -0.5, 0.5, -0.5 ], [ 0, 1, 0 ], [ 0, 0 ], 0 }, // top + { [ -0.5, 0.5, 0.5 ], [ 0, 1, 0 ], [ 0, 1 ], 0 }, + { [ 0.5, 0.5, -0.5 ], [ 0, 1, 0 ], [ 1, 0 ], 0 }, + { [ 0.5, 0.5, 0.5 ], [ 0, 1, 0 ], [ 1, 1 ], 0 }, + { [ -0.5, -0.5, -0.5 ], [ 0, -1, 0 ], [ 1, 0 ], 0 }, // bottom + { [ 0.5, -0.5, -0.5 ], [ 0, -1, 0 ], [ 0, 0 ], 0 }, + { [ -0.5, -0.5, 0.5 ], [ 0, -1, 0 ], [ 1, 1 ], 0 }, + { [ 0.5, -0.5, 0.5 ], [ 0, -1, 0 ], [ 0, 1 ], 0 }, + { [ -0.5, -0.5, -0.5 ], [-1, 0, 0 ], [ 0, 1 ], 0 }, // left + { [ -0.5, -0.5, 0.5 ], [-1, 0, 0 ], [ 1, 1 ], 0 }, + { [ -0.5, 0.5, -0.5 ], [-1, 0, 0 ], [ 0, 0 ], 0 }, + { [ -0.5, 0.5, 0.5 ], [-1, 0, 0 ], [ 1, 0 ], 0 }, + { [ 0.5, -0.5, -0.5 ], [ 1, 0, 0 ], [ 1, 1 ], 0 }, // right + { [ 0.5, 0.5, -0.5 ], [ 1, 0, 0 ], [ 1, 0 ], 0 }, + { [ 0.5, -0.5, 0.5 ], [ 1, 0, 0 ], [ 0, 1 ], 0 }, + { [ 0.5, 0.5, 0.5 ], [ 1, 0, 0 ], [ 0, 0 ], 0 }, + }; + indices = { + 0, 1, 2, 2, 1, 3, // front + 4, 5, 6, 6, 5, 7, // back + 8, 9, 10, 10, 9, 11, // top + 12, 13, 14, 14, 13, 15, // bottom + 16, 17, 18, 18, 17, 19, // left + 20, 21, 22, 22, 21, 23, // right + }; + fill = [ true, true, true, true, true, true ]; +}; + +uniform_low_slab = { + bounds = Cuboid([ -0.5, -0.5, -0.5 ], [ 0.5, 0.0, 0.5 ]); + vertices = { + // TODO: fix tex coords + // position normal texture + { [ -0.5, -0.5, 0.0 ], [ 0, 0, 1 ], [ 0, 1 ], 0 }, // front + { [ 0.0, -0.5, 0.0 ], [ 0, 0, 1 ], [ 1, 1 ], 0 }, + { [ -0.5, 0.0, 0.0 ], [ 0, 0, 1 ], [ 0, 0 ], 0 }, + { [ 0.0, 0.0, 0.0 ], [ 0, 0, 1 ], [ 1, 0 ], 0 }, + { [ -0.5, -0.5, -0.5 ], [ 0, 0, -1 ], [ 1, 1 ], 0 }, // back + { [ -0.5, 0.0, -0.5 ], [ 0, 0, -1 ], [ 1, 0 ], 0 }, + { [ 0.0, -0.5, -0.5 ], [ 0, 0, -1 ], [ 0, 1 ], 0 }, + { [ 0.0, 0.0, -0.5 ], [ 0, 0, -1 ], [ 0, 0 ], 0 }, + { [ -0.5, 0.0, -0.5 ], [ 0, 1, 0 ], [ 0, 0 ], 0 }, // top + { [ -0.5, 0.0, 0.0 ], [ 0, 1, 0 ], [ 0, 1 ], 0 }, + { [ 0.0, 0.0, -0.5 ], [ 0, 1, 0 ], [ 1, 0 ], 0 }, + { [ 0.0, 0.0, 0.0 ], [ 0, 1, 0 ], [ 1, 1 ], 0 }, + { [ -0.5, -0.5, -0.5 ], [ 0, -1, 0 ], [ 1, 0 ], 0 }, // bottom + { [ 0.0, -0.5, -0.5 ], [ 0, -1, 0 ], [ 0, 0 ], 0 }, + { [ -0.5, -0.5, 0.0 ], [ 0, -1, 0 ], [ 1, 1 ], 0 }, + { [ 0.0, -0.5, 0.0 ], [ 0, -1, 0 ], [ 0, 1 ], 0 }, + { [ -0.5, -0.5, -0.5 ], [-1, 0, 0 ], [ 0, 1 ], 0 }, // left + { [ -0.5, -0.5, 0.0 ], [-1, 0, 0 ], [ 1, 1 ], 0 }, + { [ -0.5, 0.0, -0.5 ], [-1, 0, 0 ], [ 0, 0 ], 0 }, + { [ -0.5, 0.0, 0.0 ], [-1, 0, 0 ], [ 1, 0 ], 0 }, + { [ 0.0, -0.5, -0.5 ], [ 1, 0, 0 ], [ 1, 1 ], 0 }, // right + { [ 0.0, 0.0, -0.5 ], [ 1, 0, 0 ], [ 1, 0 ], 0 }, + { [ 0.0, -0.5, 0.0 ], [ 1, 0, 0 ], [ 0, 1 ], 0 }, + { [ 0.0, 0.0, 0.0 ], [ 1, 0, 0 ], [ 0, 0 ], 0 }, + }; + indices = { + 0, 1, 2, 2, 1, 3, // front + 4, 5, 6, 6, 5, 7, // back + 8, 9, 10, 10, 9, 11, // top + 12, 13, 14, 14, 13, 15, // bottom + 16, 17, 18, 18, 17, 19, // left + 20, 21, 22, 22, 21, 23, // right + }; + fill = [ false, true, false, false, false, false ]; +}; + +uniform_stair = { + bounds = Stair([ -0.5, -0.5, -0.5 ], [ 0.5, 0.5, 0.5 ], [ 0, 0 ]); + vertices = { + // position normal texture + { [ -0.5, 0.0, 0.0 ], [ 0, 0, 1 ], [ 0.0, 0.5 ], 0 }, // front, upper + { [ 0.5, 0.0, 0.0 ], [ 0, 0, 1 ], [ 1.0, 0.5 ], 0 }, + { [ -0.5, 0.5, 0.0 ], [ 0, 0, 1 ], [ 0.0, 0.0 ], 0 }, + { [ 0.5, 0.5, 0.0 ], [ 0, 0, 1 ], [ 1.0, 0.0 ], 0 }, + { [ -0.5, -0.5, 0.5 ], [ 0, 0, 1 ], [ 0.0, 1.0 ], 0 }, // front, lower + { [ 0.5, -0.5, 0.5 ], [ 0, 0, 1 ], [ 1.0, 1.0 ], 0 }, + { [ -0.5, 0.0, 0.5 ], [ 0, 0, 1 ], [ 0.0, 0.5 ], 0 }, + { [ 0.5, 0.0, 0.5 ], [ 0, 0, 1 ], [ 1.0, 0.5 ], 0 }, + { [ -0.5, -0.5, -0.5 ], [ 0, 0, -1 ], [ 1.0, 1.0 ], 0 }, // back + { [ -0.5, 0.5, -0.5 ], [ 0, 0, -1 ], [ 1.0, 0.0 ], 0 }, + { [ 0.5, -0.5, -0.5 ], [ 0, 0, -1 ], [ 0.0, 1.0 ], 0 }, + { [ 0.5, 0.5, -0.5 ], [ 0, 0, -1 ], [ 0.0, 0.0 ], 0 }, + { [ -0.5, 0.5, -0.5 ], [ 0, 1, 0 ], [ 0.0, 0.0 ], 0 }, // top, upper + { [ -0.5, 0.5, 0.0 ], [ 0, 1, 0 ], [ 0.0, 0.5 ], 0 }, + { [ 0.5, 0.5, -0.5 ], [ 0, 1, 0 ], [ 1.0, 0.0 ], 0 }, + { [ 0.5, 0.5, 0.0 ], [ 0, 1, 0 ], [ 1.0, 0.5 ], 0 }, + { [ -0.5, 0.0, 0.0 ], [ 0, 1, 0 ], [ 0.0, 0.5 ], 0 }, // top, lower + { [ -0.5, 0.0, 0.5 ], [ 0, 1, 0 ], [ 0.0, 1.0 ], 0 }, + { [ 0.5, 0.0, 0.0 ], [ 0, 1, 0 ], [ 1.0, 0.5 ], 0 }, + { [ 0.5, 0.0, 0.5 ], [ 0, 1, 0 ], [ 1.0, 1.0 ], 0 }, + { [ -0.5, -0.5, -0.5 ], [ 0, -1, 0 ], [ 1.0, 0.0 ], 0 }, // bottom + { [ 0.5, -0.5, -0.5 ], [ 0, -1, 0 ], [ 0.0, 0.0 ], 0 }, + { [ -0.5, -0.5, 0.5 ], [ 0, -1, 0 ], [ 1.0, 1.0 ], 0 }, + { [ 0.5, -0.5, 0.5 ], [ 0, -1, 0 ], [ 0.0, 1.0 ], 0 }, + { [ -0.5, 0.0, -0.5 ], [ -1, 0, 0 ], [ 0.0, 0.5 ], 0 }, // left, upper + { [ -0.5, 0.0, 0.0 ], [ -1, 0, 0 ], [ 0.5, 0.5 ], 0 }, + { [ -0.5, 0.5, -0.5 ], [ -1, 0, 0 ], [ 0.0, 0.0 ], 0 }, + { [ -0.5, 0.5, 0.0 ], [ -1, 0, 0 ], [ 0.5, 0.0 ], 0 }, + { [ -0.5, -0.5, -0.5 ], [ -1, 0, 0 ], [ 0.0, 1.0 ], 0 }, // left, lower + { [ -0.5, -0.5, 0.5 ], [ -1, 0, 0 ], [ 1.0, 1.0 ], 0 }, + { [ -0.5, 0.0, -0.5 ], [ -1, 0, 0 ], [ 0.0, 0.5 ], 0 }, + { [ -0.5, 0.0, 0.5 ], [ -1, 0, 0 ], [ 1.0, 0.5 ], 0 }, + { [ 0.5, 0.0, -0.5 ], [ 1, 0, 0 ], [ 1.0, 0.5 ], 0 }, // right, upper + { [ 0.5, 0.5, -0.5 ], [ 1, 0, 0 ], [ 1.0, 0.0 ], 0 }, + { [ 0.5, 0.0, 0.0 ], [ 1, 0, 0 ], [ 0.5, 0.5 ], 0 }, + { [ 0.5, 0.5, 0.0 ], [ 1, 0, 0 ], [ 0.5, 0.0 ], 0 }, + { [ 0.5, -0.5, -0.5 ], [ 1, 0, 0 ], [ 1.0, 1.0 ], 0 }, // right, lower + { [ 0.5, 0.0, -0.5 ], [ 1, 0, 0 ], [ 1.0, 0.5 ], 0 }, + { [ 0.5, -0.5, 0.5 ], [ 1, 0, 0 ], [ 0.0, 1.0 ], 0 }, + { [ 0.5, 0.0, 0.5 ], [ 1, 0, 0 ], [ 0.0, 0.5 ], 0 }, + }; + indices = { + 0, 1, 2, 2, 1, 3, // front, upper + 4, 5, 6, 6, 5, 7, // front, lower + 8, 9, 10, 10, 9, 11, // back + 12, 13, 14, 14, 13, 15, // top, upper + 16, 17, 18, 18, 17, 19, // top, lower + 20, 21, 22, 22, 21, 23, // bottom + 24, 25, 26, 26, 25, 27, // left, upper + 28, 29, 30, 30, 29, 31, // left, lower + 32, 33, 34, 34, 33, 35, // right, upper + 36, 37, 38, 38, 37, 39, // right, lower + }; + fill = [ false, true, false, false, false, true ]; +}; + +pipe_block = { + bounds = Cuboid([ -0.5, -0.5, -0.5 ], [ 0.5, 0.5, 0.5 ]); + vertices = { + // position normal texture + { [ -0.5, -0.5, 0.5 ], [ 0, 0, 1 ], [ 0, 1 ], 0 }, // front + { [ 0.5, -0.5, 0.5 ], [ 0, 0, 1 ], [ 1, 1 ], 0 }, + { [ -0.5, 0.5, 0.5 ], [ 0, 0, 1 ], [ 0, 0 ], 0 }, + { [ 0.5, 0.5, 0.5 ], [ 0, 0, 1 ], [ 1, 0 ], 0 }, + { [ -0.5, -0.5, -0.5 ], [ 0, 0, -1 ], [ 1, 1 ], 0 }, // back + { [ -0.5, 0.5, -0.5 ], [ 0, 0, -1 ], [ 1, 0 ], 0 }, + { [ 0.5, -0.5, -0.5 ], [ 0, 0, -1 ], [ 0, 1 ], 0 }, + { [ 0.5, 0.5, -0.5 ], [ 0, 0, -1 ], [ 0, 0 ], 0 }, + { [ -0.5, 0.5, -0.5 ], [ 0, 1, 0 ], [ 0, 0 ], 1 }, // top + { [ -0.5, 0.5, 0.5 ], [ 0, 1, 0 ], [ 0, 1 ], 1 }, + { [ 0.5, 0.5, -0.5 ], [ 0, 1, 0 ], [ 1, 0 ], 1 }, + { [ 0.5, 0.5, 0.5 ], [ 0, 1, 0 ], [ 1, 1 ], 1 }, + { [ -0.5, -0.5, -0.5 ], [ 0, -1, 0 ], [ 1, 0 ], 1 }, // bottom + { [ 0.5, -0.5, -0.5 ], [ 0, -1, 0 ], [ 0, 0 ], 1 }, + { [ -0.5, -0.5, 0.5 ], [ 0, -1, 0 ], [ 1, 1 ], 1 }, + { [ 0.5, -0.5, 0.5 ], [ 0, -1, 0 ], [ 0, 1 ], 1 }, + { [ -0.5, -0.5, -0.5 ], [-1, 0, 0 ], [ 0, 1 ], 0 }, // left + { [ -0.5, -0.5, 0.5 ], [-1, 0, 0 ], [ 1, 1 ], 0 }, + { [ -0.5, 0.5, -0.5 ], [-1, 0, 0 ], [ 0, 0 ], 0 }, + { [ -0.5, 0.5, 0.5 ], [-1, 0, 0 ], [ 1, 0 ], 0 }, + { [ 0.5, -0.5, -0.5 ], [ 1, 0, 0 ], [ 1, 1 ], 0 }, // right + { [ 0.5, 0.5, -0.5 ], [ 1, 0, 0 ], [ 1, 0 ], 0 }, + { [ 0.5, -0.5, 0.5 ], [ 1, 0, 0 ], [ 0, 1 ], 0 }, + { [ 0.5, 0.5, 0.5 ], [ 1, 0, 0 ], [ 0, 0 ], 0 }, + }; + indices = { + 0, 1, 2, 2, 1, 3, // front + 4, 5, 6, 6, 5, 7, // back + 8, 9, 10, 10, 9, 11, // top + 12, 13, 14, 14, 13, 15, // bottom + 16, 17, 18, 18, 17, 19, // left + 20, 21, 22, 22, 21, 23, // right + }; + fill = [ true, true, true, true, true, true ]; +}; + +// temporary fix for missing skeleton loader +player_head_block = { + bounds = Cuboid([ -0.5, -0.5, -0.5 ], [ 0.5, 0.5, 0.5 ]); + vertices = { + // position normal texture + { [ -0.5, -0.5, 0.5 ], [ 0, 0, 1 ], [ 0, 1 ], 0 }, // front + { [ 0.5, -0.5, 0.5 ], [ 0, 0, 1 ], [ 1, 1 ], 0 }, + { [ -0.5, 0.5, 0.5 ], [ 0, 0, 1 ], [ 0, 0 ], 0 }, + { [ 0.5, 0.5, 0.5 ], [ 0, 0, 1 ], [ 1, 0 ], 0 }, + { [ -0.5, -0.5, -0.5 ], [ 0, 0, -1 ], [ 1, 1 ], 1 }, // back + { [ -0.5, 0.5, -0.5 ], [ 0, 0, -1 ], [ 1, 0 ], 1 }, + { [ 0.5, -0.5, -0.5 ], [ 0, 0, -1 ], [ 0, 1 ], 1 }, + { [ 0.5, 0.5, -0.5 ], [ 0, 0, -1 ], [ 0, 0 ], 1 }, + { [ -0.5, 0.5, -0.5 ], [ 0, 1, 0 ], [ 0, 0 ], 0 }, // top + { [ -0.5, 0.5, 0.5 ], [ 0, 1, 0 ], [ 0, 1 ], 0 }, + { [ 0.5, 0.5, -0.5 ], [ 0, 1, 0 ], [ 1, 0 ], 0 }, + { [ 0.5, 0.5, 0.5 ], [ 0, 1, 0 ], [ 1, 1 ], 0 }, + { [ -0.5, -0.5, -0.5 ], [ 0, -1, 0 ], [ 1, 0 ], 0 }, // bottom + { [ 0.5, -0.5, -0.5 ], [ 0, -1, 0 ], [ 0, 0 ], 0 }, + { [ -0.5, -0.5, 0.5 ], [ 0, -1, 0 ], [ 1, 1 ], 0 }, + { [ 0.5, -0.5, 0.5 ], [ 0, -1, 0 ], [ 0, 1 ], 0 }, + { [ -0.5, -0.5, -0.5 ], [-1, 0, 0 ], [ 0, 1 ], 0 }, // left + { [ -0.5, -0.5, 0.5 ], [-1, 0, 0 ], [ 1, 1 ], 0 }, + { [ -0.5, 0.5, -0.5 ], [-1, 0, 0 ], [ 0, 0 ], 0 }, + { [ -0.5, 0.5, 0.5 ], [-1, 0, 0 ], [ 1, 0 ], 0 }, + { [ 0.5, -0.5, -0.5 ], [ 1, 0, 0 ], [ 1, 1 ], 0 }, // right + { [ 0.5, 0.5, -0.5 ], [ 1, 0, 0 ], [ 1, 0 ], 0 }, + { [ 0.5, -0.5, 0.5 ], [ 1, 0, 0 ], [ 0, 1 ], 0 }, + { [ 0.5, 0.5, 0.5 ], [ 1, 0, 0 ], [ 0, 0 ], 0 }, + }; + indices = { + 0, 1, 2, 2, 1, 3, // front + 4, 5, 6, 6, 5, 7, // back + 8, 9, 10, 10, 9, 11, // top + 12, 13, 14, 14, 13, 15, // bottom + 16, 17, 18, 18, 17, 19, // left + 20, 21, 22, 22, 21, 23, // right + }; + fill = [ true, true, true, true, true, true ]; +}; diff --git a/data/default.types b/data/default.types index a1515aa..ac19ff3 100644 --- a/data/default.types +++ b/data/default.types @@ -1,7 +1,7 @@ white_coarse = { texture = "rock-1"; label = "Coarse White"; - shape = block; + shape = uniform_block; generate = true; mid_solidity = 0.5; max_solidity = 0.75; @@ -11,7 +11,7 @@ white_coarse = { white_smooth = { texture = "rock-2"; label = "Smooth White"; - shape = block; + shape = uniform_block; generate = true; mid_solidity = 0.6; max_temperature = 0.0; @@ -20,7 +20,7 @@ white_smooth = { white_hard = { texture = "rock-3"; label = "Hard White"; - shape = block; + shape = uniform_block; generate = true; min_solidity = 0.7; mid_solidity = 1.0; @@ -30,19 +30,19 @@ white_hard = { white_slab = { texture = "rock-1"; label = "White Slab"; - shape = slab; + shape = uniform_low_slab; }; white_stair = { texture = "rock-1"; label = "White Stair"; - shape = stair; + shape = uniform_stair; }; red_coarse = { texture = "rock-1"; rgb_mod = [ 1, 0, 0 ]; label = "Coarse Red"; - shape = block; + shape = uniform_block; generate = true; mid_solidity = 0.5; max_solidity = 0.75; @@ -55,7 +55,7 @@ red_smooth = { texture = "rock-2"; rgb_mod = [ 1, 0, 0 ]; label = "Smooth Red"; - shape = block; + shape = uniform_block; generate = true; mid_solidity = 0.6; min_temperature = 0.0; @@ -67,7 +67,7 @@ red_hard = { texture = "rock-3"; rgb_mod = [ 1, 0, 0 ]; label = "Hard Red"; - shape = block; + shape = uniform_block; generate = true; min_solidity = 0.7; mid_solidity = 1.0; @@ -80,20 +80,20 @@ red_slab = { texture = "rock-3"; rgb_mod = [ 1, 0, 0 ]; label = "Red Slab"; - shape = slab; + shape = uniform_low_slab; }; red_stair = { texture = "rock-3"; rgb_mod = [ 1, 0, 0 ]; label = "Red Stair"; - shape = stair; + shape = uniform_stair; }; green_coarse = { texture = "rock-1"; rgb_mod = [ 0, 1, 0 ]; label = "Coarse Green"; - shape = block; + shape = uniform_block; generate = true; mid_solidity = 0.5; max_solidity = 0.75; @@ -102,7 +102,7 @@ green_smooth = { texture = "rock-2"; rgb_mod = [ 0, 1, 0 ]; label = "Smooth Green"; - shape = block; + shape = uniform_block; generate = true; mid_solidity = 0.6; }; @@ -110,7 +110,7 @@ green_hard = { texture = "rock-3"; rgb_mod = [ 0, 1, 0 ]; label = "Hard Green"; - shape = block; + shape = uniform_block; generate = true; min_solidity = 0.7; mid_solidity = 1.0; @@ -119,13 +119,13 @@ green_slab = { texture = "rock-1"; rgb_mod = [ 0, 1, 0 ]; label = "Green Slab"; - shape = slab; + shape = uniform_low_slab; }; green_stair = { texture = "rock-1"; rgb_mod = [ 0, 1, 0 ]; label = "Green Stair"; - shape = stair; + shape = uniform_stair; }; blue_coarse = { @@ -133,7 +133,7 @@ blue_coarse = { rgb_mod = [ 0, 0, 1 ]; outline = [ 0.75, 0.75, 0.75 ]; label = "Coarse Blue"; - shape = block; + shape = uniform_block; generate = true; mid_solidity = 0.5; max_solidity = 0.75; @@ -145,7 +145,7 @@ blue_smooth = { rgb_mod = [ 0, 0, 1 ]; outline = [ 0.75, 0.75, 0.75 ]; label = "Smooth Blue"; - shape = block; + shape = uniform_block; generate = true; mid_solidity = 0.6; min_humidity = 0.0; @@ -156,7 +156,7 @@ blue_hard = { rgb_mod = [ 0, 0, 1 ]; outline = [ 0.75, 0.75, 0.75 ]; label = "Hard Blue"; - shape = block; + shape = uniform_block; generate = true; min_solidity = 0.7; mid_solidity = 1.0; @@ -168,20 +168,25 @@ blue_slab = { rgb_mod = [ 0, 0, 1 ]; outline = [ 0.75, 0.75, 0.75 ]; label = "Blue Slab"; - shape = slab; + shape = uniform_low_slab; }; blue_stair = { texture = "rock-3"; rgb_mod = [ 0, 0, 1 ]; outline = [ 0.75, 0.75, 0.75 ]; label = "Blue Stair"; - shape = stair; + shape = uniform_stair; }; grav_spherical = { texture = "gravity-neutral"; label = "Spherical Gravity"; - shape = block; + shape = uniform_block; +}; +grav_directed = { + textures = [ "gravity-directed", "gravity-neutral" ]; + label = "Directed Gravity"; + shape = pipe_block; }; light = { @@ -189,7 +194,7 @@ light = { rgb_mod = [ 1, 1, 0 ]; label = "Light"; luminosity = 15; - shape = block; + shape = uniform_block; generate = true; mid_solidity = 0.5; max_solidity = 0.75; @@ -199,5 +204,5 @@ light = { debug = { texture = "debug"; label = "Debug Cube"; - shape = block; + shape = uniform_block; }; diff --git a/textures/rock-face.png b/textures/rock-face.png new file mode 100644 index 0000000000000000000000000000000000000000..da1dc42bfda152232f81105078d63bb6127f3368 GIT binary patch literal 288 zcmV+*0pI?KP)Y+Phz8iW{z$%s-oXVL@;yP0G@}IJlbT!||7L)aCMKA`3jmx188RR;+@RX!}3oTIEp;Q^Pvg&)wBzrtQ?a(-5?bVhIY(fzRy z!DpR1HovSgkkDE(p|OrPa^u=Rs$I)`e|E2d{VZ48z+U6fq0Cy}+HD!JP0000