From c618f30ef5a851a70095382c51b9f15aeeb1becc Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Fri, 30 Aug 2024 09:57:03 +0100 Subject: [PATCH] raise mushroom beach biome, add slime mold and slime block --- biome_info.json | 4 +-- biomes.lua | 9 +++--- decor.lua | 9 ++++++ dirt.lua | 49 ++++++++++++++++++++++++++++++ textures/ethereal_slime_block.png | Bin 0 -> 272 bytes textures/ethereal_slime_mold.png | Bin 0 -> 283 bytes 6 files changed, 65 insertions(+), 6 deletions(-) create mode 100644 textures/ethereal_slime_block.png create mode 100644 textures/ethereal_slime_mold.png diff --git a/biome_info.json b/biome_info.json index b2ba4a8..db48588 100644 --- a/biome_info.json +++ b/biome_info.json @@ -42,8 +42,8 @@ {"name": "grove", "heat_point": 40, "humidity_point": 25, "y_min": 3, "y_max": 23}, {"name": "grove_ocean", "heat_point": 40, "humidity_point": 25, "y_min": -192, "y_max": 2}, {"name": "mediterranean", "heat_point": 30, "humidity_point": 45, "y_min": 3, "y_max": 50}, -{"name": "mushroom", "heat_point": 45, "humidity_point": 82, "y_min": 3, "y_max": 50}, -{"name": "mushroom_ocean", "heat_point": 45, "humidity_point": 82, "y_min": -192, "y_max": 2}, +{"name": "mushroom", "heat_point": 45, "humidity_point": 82, "y_min": 4, "y_max": 50}, +{"name": "mushroom_beach", "heat_point": 45, "humidity_point": 82, "y_min": -3, "y_max": 5}, {"name": "sandstone_desert", "heat_point": 60, "humidity_point": 0, "y_min": 3, "y_max": 23}, {"name": "sandstone_desert_ocean", "heat_point": 60, "humidity_point": 0, "y_min": -192, "y_max": 2}, {"name": "sandstone_desert_under", "heat_point": 60, "humidity_point": 0, "y_min": -31000, "y_max": -256}, diff --git a/biomes.lua b/biomes.lua index 3a4188e..beefa36 100644 --- a/biomes.lua +++ b/biomes.lua @@ -328,15 +328,16 @@ register_biome(ethereal.mediterranean, { register_biome(ethereal.mushroom, { name = "mushroom", - heat_point = 45, humidity_point = 82, y_min = 3, y_max = 50, + heat_point = 45, humidity_point = 82, y_min = 4, y_max = 50, node_top = "ethereal:mushroom_dirt", depth_top = 1, node_filler = "default:dirt", depth_filler = 3}) register_biome(ethereal.mushroom, { - name = "mushroom_ocean", - heat_point = 45, humidity_point = 82, y_min = -192, y_max = 2, + name = "mushroom_beach", + heat_point = 45, humidity_point = 82, y_min = -3, y_max = 5, node_top = "default:sand", depth_top = 1, - node_filler = "default:sand", depth_filler = 2}) + node_filler = "default:sand", depth_filler = 2, + vertical_blend = 1}) -- sandstone desert diff --git a/decor.lua b/decor.lua index f0346b0..7d4bdc5 100644 --- a/decor.lua +++ b/decor.lua @@ -206,6 +206,15 @@ register_decoration(ethereal.mushroom, { biomes = {"mushroom"}, decoration = "ethereal:spore_grass"}) +-- slime mold + +register_decoration(ethereal.mushroom, { + place_on = {"default:sand"}, + fill_ratio = 0.1, + y_min = 2, y_max = 6, + biomes = {"mushroom_beach"}, + decoration = "ethereal:slime_mold"}) + -- red & brown mushroom register_decoration(1, { diff --git a/dirt.lua b/dirt.lua index 0b80f8c..6c4462f 100644 --- a/dirt.lua +++ b/dirt.lua @@ -293,3 +293,52 @@ minetest.register_craft({ }, replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}} }) + +-- slime mold + +minetest.register_node("ethereal:slime_mold", { + description = S("Slime Mold"), + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + tiles = {"ethereal_slime_mold.png"}, + inventory_image = "ethereal_slime_mold.png", + wield_image = "ethereal_slime_mold.png", + use_texture_alpha = "clip", + walkable = false, + buildable_to = true, + floodable = true, + drop = {}, + groups = {crumbly = 3, flammable = 1}, + sounds = default.node_sound_leaves_defaults(), + node_box = { + type = "fixed", fixed = {-0.5, -31 / 64, -0.5, 0.5, -15 / 32, 0.5} + }, + selection_box = { + type = "fixed", fixed = {-0.5, -31 / 64, -0.5, 0.5, -15 / 32, 0.5} + } +}) + +-- slime block + +minetest.register_node("ethereal:slime_block", { + description = S("Slime Block"), + tiles = {"ethereal_slime_block.png"}, + inventory_image = minetest.inventorycube("ethereal_slime_block.png"), + groups = {crumbly = 3, bouncy = 100, fall_damage_add_percent = -100, disable_jump = 1}, + sounds = default.node_sound_leaves_defaults() +}) + +minetest.register_craft({ + output = "ethereal:slime_block", + recipe = { + {"ethereal:slime_mold", "ethereal:slime_mold", "ethereal:slime_mold"}, + {"ethereal:slime_mold", "ethereal:slime_mold", "ethereal:slime_mold"}, + {"ethereal:slime_mold", "ethereal:slime_mold", "ethereal:slime_mold"} + } +}) + +minetest.register_craft({ + output = "ethereal:slime_mold 9", + recipe = {{"ethereal:slime_block"}} +}) diff --git a/textures/ethereal_slime_block.png b/textures/ethereal_slime_block.png new file mode 100644 index 0000000000000000000000000000000000000000..29703be2ef95aa1245afab33beb66ef96b587204 GIT binary patch literal 272 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPFP2=EDUEpE}N?$W94)vNC_Xq;fw zGD)X>ntsQ0gRYrIo%77P=j-<_H0)n&JaMV%v{hEK)|xthN<0eGJKNL6F@)nf;{=BM z{|r^Df=f%ir;0O7KjYEd($Q(k;NH;^&gi|vg+Xj(2=IqTAO1=lUW10W} literal 0 HcmV?d00001 diff --git a/textures/ethereal_slime_mold.png b/textures/ethereal_slime_mold.png new file mode 100644 index 0000000000000000000000000000000000000000..05212d8af9c44aaa7a57ecc5f05c35bf61696fac GIT binary patch literal 283 zcmV+$0p$LPP)Pvk0uW0I$3Xw!r{U?=>m_ z0004WQchCeoC27-|bogdO)r9l$YAK#maPLoM)Ei ho}ZOu#?wTM${$;c1e`Jy`)vRK002ovPDHLkV1lExar^)P literal 0 HcmV?d00001