From 44e9232dff2d70a72caa26058740eb3702155e9c Mon Sep 17 00:00:00 2001 From: Carrie <122191047+careeoki@users.noreply.github.com> Date: Tue, 3 Jun 2025 10:38:18 -0600 Subject: [PATCH] Amber ore & blocks (#1585) part of #1326 ![image](https://github.com/user-attachments/assets/702eb90d-3445-40c9-a6cf-8f6161d7b830) Amber starts generating at -1250. I would still want it to appear in sandstone caves, beaches, etc. but we don't support that right now. ![image](https://github.com/user-attachments/assets/e3a5acac-75b7-4d70-8e49-85d84c5fd004) Amber has the `light` modifier at 50% ![image](https://github.com/user-attachments/assets/93dd9ce9-25cb-46a4-a633-1e6af72e5032) Something unique compared to other gem blocks is that amber is translucent. --- assets/cubyz/blocks/amber_block.zig.zon | 12 ++++++ assets/cubyz/blocks/amber_ore.zig.zon | 36 ++++++++++++++++++ assets/cubyz/blocks/cut_amber_block.zig.zon | 12 ++++++ assets/cubyz/blocks/textures/amber_block.png | Bin 0 -> 438 bytes .../textures/amber_block_reflectivity.png | Bin 0 -> 238 bytes assets/cubyz/blocks/textures/amber_ore.png | Bin 0 -> 294 bytes .../textures/amber_ore_reflectivity.png | Bin 0 -> 205 bytes .../cubyz/blocks/textures/cut_amber_block.png | Bin 0 -> 337 bytes .../textures/cut_amber_block_reflectivity.png | Bin 0 -> 197 bytes assets/cubyz/items/textures/amber.png | Bin 0 -> 336 bytes assets/cubyz/recipes/special_recipes.zig.zon | 16 ++++++++ 11 files changed, 76 insertions(+) create mode 100644 assets/cubyz/blocks/amber_block.zig.zon create mode 100644 assets/cubyz/blocks/amber_ore.zig.zon create mode 100644 assets/cubyz/blocks/cut_amber_block.zig.zon create mode 100644 assets/cubyz/blocks/textures/amber_block.png create mode 100644 assets/cubyz/blocks/textures/amber_block_reflectivity.png create mode 100644 assets/cubyz/blocks/textures/amber_ore.png create mode 100644 assets/cubyz/blocks/textures/amber_ore_reflectivity.png create mode 100644 assets/cubyz/blocks/textures/cut_amber_block.png create mode 100644 assets/cubyz/blocks/textures/cut_amber_block_reflectivity.png create mode 100644 assets/cubyz/items/textures/amber.png diff --git a/assets/cubyz/blocks/amber_block.zig.zon b/assets/cubyz/blocks/amber_block.zig.zon new file mode 100644 index 00000000..833192d5 --- /dev/null +++ b/assets/cubyz/blocks/amber_block.zig.zon @@ -0,0 +1,12 @@ +.{ + .tags = .{.wood}, + .blockHealth = 15, + .drops = .{ + .{.items = .{.auto}}, + }, + .transparent = true, + .hasBackFace = true, + .model = "cubyz:cube", + .absorbedLight = 0x117edc, + .texture = "cubyz:amber_block", +} diff --git a/assets/cubyz/blocks/amber_ore.zig.zon b/assets/cubyz/blocks/amber_ore.zig.zon new file mode 100644 index 00000000..61a00d59 --- /dev/null +++ b/assets/cubyz/blocks/amber_ore.zig.zon @@ -0,0 +1,36 @@ +.{ + .tags = .{.stone}, + .blockHealth = 15, + .blockResistance = 3, + .item = .{ + .texture = "amber.png", + .material = .{ + .density = 1.0, + .elasticity = 0.25, + .hardness = 2.5, + .textureRoughness = 0.1, + .colors = .{ + 0xff9b3481b, 0xffd35a1c, 0xffee7023, 0xffff9134, 0xffffc14a, + }, + .modifiers = .{ + .{ + .id = "light", + .strength = 0.5, + }, + }, + }, + }, + .ore = .{ + .veins = 3, + .size = 3, + .height = -1250, + .minHeight = -8000, + .density = 0.15, + }, + .drops = .{ + .{.items = .{.auto}}, + }, + .rotation = .ore, + .model = "cubyz:cube", + .texture = "cubyz:amber_ore", +} diff --git a/assets/cubyz/blocks/cut_amber_block.zig.zon b/assets/cubyz/blocks/cut_amber_block.zig.zon new file mode 100644 index 00000000..b5db4295 --- /dev/null +++ b/assets/cubyz/blocks/cut_amber_block.zig.zon @@ -0,0 +1,12 @@ +.{ + .tags = .{.wood}, + .blockHealth = 15, + .drops = .{ + .{.items = .{.auto}}, + }, + .transparent = true, + .hasBackFace = true, + .model = "cubyz:cube", + .absorbedLight = 0x117edc, + .texture = "cubyz:cut_amber_block", +} diff --git a/assets/cubyz/blocks/textures/amber_block.png b/assets/cubyz/blocks/textures/amber_block.png new file mode 100644 index 0000000000000000000000000000000000000000..5b2177d722e6f2d2426efd2c9e82a1d07ae90513 GIT binary patch literal 438 zcmV;n0ZIOeP)chon(;&fVS+tEgBC1W;&8)Yhrt_T^PHZ?_O&GzD1HnGM#C8J60WDPMy0aKz{QL z015z3`)kdBa}TgXTlSvu%lYmBV7VI0B#UHQ_8tHflWfs==N$U5sW}qAp^l8t;Nu#&YfqnbB}@1JF(Szw@B;Uc@v1&mc8f9S__!1 zi3!Z^WF+d`dD0@PEgG-2z;ZQ~^UY)^z8$OXcC0$)CRrpEyM}8dI#1|@@U&&`ML5rV zGl@B;EgJu>$V^91o)HYLcZ)Qg>0w1=!Q{{nW;&8=rYH)v2-zUegsawCfbO*i+bI?q zn&iKTd#1^>7Ejuo_SYH!6xRj(frM1UpXOCO#ubq%T1b@!dM&g?GuU4coj3Q-;&i5E gTlR0gVx}Yc3wvxr*?-MC82|tP07*qoM6N<$g7Oo@Y5)KL literal 0 HcmV?d00001 diff --git a/assets/cubyz/blocks/textures/amber_block_reflectivity.png b/assets/cubyz/blocks/textures/amber_block_reflectivity.png new file mode 100644 index 0000000000000000000000000000000000000000..c8a163e9226d50366539c3f5d5b72135d79b8ffa GIT binary patch literal 238 zcmVPpi7WY oJMqHC%(AEU64#qhlly-%KjxTKE^3-nMF0Q*07*qoM6N<$g1+2mkpKVy literal 0 HcmV?d00001 diff --git a/assets/cubyz/blocks/textures/amber_ore.png b/assets/cubyz/blocks/textures/amber_ore.png new file mode 100644 index 0000000000000000000000000000000000000000..e1e67ba0a5b67dcb5e42cb93c4b7b9f557c66e6f GIT binary patch literal 294 zcmV+>0oneEP)of1!;7YU6;^`DExaHfz*Hg)DLmWT`0q6=}5*t{r=5Y48<`9B2I&WPPoRK;=>nah-=L^0kvkT5>;Vq4k z1|f@Fqbs$_-WpX`-LZd3^n>)EO+uNjt%(7yQMiW{k9I>GVp0cSBL{@lTge3 si!74wB1I6KQKz8h9}K}6jjnDC-dOW^kGj!1s{jB107*qoM6N<$f|^r&@c;k- literal 0 HcmV?d00001 diff --git a/assets/cubyz/blocks/textures/amber_ore_reflectivity.png b/assets/cubyz/blocks/textures/amber_ore_reflectivity.png new file mode 100644 index 0000000000000000000000000000000000000000..ed75e844ef892bbd45cf895ba8a859c3d63476bf GIT binary patch literal 205 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6rg*wIhG?k`R;l60+$sgyQ8%xLMJq$bRu}9d2skMDiP5wb|*4D|_I^Pw{ zZE!KJlY3yxHMeNV%K!%bUfG5OPO} zqmspnr1xyHPn!B#CYNqXT0Vsf^mlN}GxWICY#K-YRzHy_q+j zdH8tVzN~jf+sCIIfUoxsz`1kB1pM)O0q}L(0jTxPXlqyU@b-ERmrKx_T`h|i7lT^tV};-4vb3PEHnFhh;Pi!xl%GPIzwb((CrEGlt^>B4K2+1UBWD5%5RJ?Om_S`zdL*9O(9V6Z0k~GVL(!ZB1<6Q_@wSHjMef7k<**IW-NAc00000NkvXXu0mjfNxGK) literal 0 HcmV?d00001 diff --git a/assets/cubyz/blocks/textures/cut_amber_block_reflectivity.png b/assets/cubyz/blocks/textures/cut_amber_block_reflectivity.png new file mode 100644 index 0000000000000000000000000000000000000000..6b9f2f1035703813d1fbd1ae3b4c9888bf3feec1 GIT binary patch literal 197 zcmV;$06PDPP)V^~Q4+P*5%u>o?b*W6eJ@sMKZohV<=j=vFEy>734+00000NkvXXu0mjfLfKVU literal 0 HcmV?d00001 diff --git a/assets/cubyz/items/textures/amber.png b/assets/cubyz/items/textures/amber.png new file mode 100644 index 0000000000000000000000000000000000000000..96914986153045ae86a6b77b70c3fac931d9c7b4 GIT binary patch literal 336 zcmV-W0k8gvP)j2m`3%+;LaZg}uM~U&>l6yXO0Gy@rGjEoc_3;G zlC?9ja4gmfm)s`W>A=GNv-|xsJ1qQlSc?t=-;;R1fBs~=ySxalH_BRE4FF`Gi4m69 z6TQNkNLZ8M-i9PQn%hC(ds5%_w75M&wR!+JMF+0mfBA&63&%}P+s^VF zyc}LWSVn`u_hhHE0>I5hf0B=e0*uMI8MynHs%6g>cZv?G)%%8ij+6nw<6u0c^%K(h zltJ{igt}KoIOk@JU8OqcbVm~~hBvp?=yXS%z1SoN2!@}yTggjx^^-!@(nA9dLOr-y i*k}-&B((|rKk)^DUS-q!#on&~0000f literal 0 HcmV?d00001 diff --git a/assets/cubyz/recipes/special_recipes.zig.zon b/assets/cubyz/recipes/special_recipes.zig.zon index c75d0459..b4e5a668 100644 --- a/assets/cubyz/recipes/special_recipes.zig.zon +++ b/assets/cubyz/recipes/special_recipes.zig.zon @@ -95,6 +95,14 @@ .inputs = .{"cubyz:diamond_block"}, .output = "cubyz:cut_diamond_block", }, + .{ + .inputs = .{"4 cubyz:amber_ore"}, + .output = "cubyz:amber_block", + }, + .{ + .inputs = .{"cubyz:amber_block"}, + .output = "cubyz:cut_amber_block", + }, .{ .inputs = .{"4 cubyz:ruby_ore"}, .output = "cubyz:ruby_block", @@ -143,6 +151,14 @@ .inputs = .{"cubyz:cut_diamond_block"}, .output = "4 cubyz:diamond", }, + .{ + .inputs = .{"cubyz:amber_block"}, + .output = "4 cubyz:amber_ore", + }, + .{ + .inputs = .{"cubyz:cut_amber_block"}, + .output = "4 cubyz:amber_ore", + }, .{ .inputs = .{"cubyz:ruby_block"}, .output = "4 cubyz:ruby_ore",