From 6866d6727513fd3adc8baa361e18069a98107803 Mon Sep 17 00:00:00 2001 From: the lemons Date: Tue, 15 Feb 2022 02:41:05 -0600 Subject: add sedimentary rock --- mods/vzxv/nodes.lua | 65 +++++++++++++++----------- mods/vzxv/textures/vzxv???.png | Bin 0 -> 934 bytes mods/vzxv/textures/vzxvsedimentary.png | Bin 0 -> 707 bytes mods/vzxv/textures/vzxvsedimentary_bottom.png | Bin 0 -> 544 bytes mods/vzxv_worldgen/biome.lua | 8 +++- 5 files changed, 45 insertions(+), 28 deletions(-) create mode 100644 mods/vzxv/textures/vzxv???.png create mode 100644 mods/vzxv/textures/vzxvsedimentary.png create mode 100644 mods/vzxv/textures/vzxvsedimentary_bottom.png diff --git a/mods/vzxv/nodes.lua b/mods/vzxv/nodes.lua index c09fa17..a0759ff 100644 --- a/mods/vzxv/nodes.lua +++ b/mods/vzxv/nodes.lua @@ -1,35 +1,46 @@ -vzxv.mundane_block("vzxv:stone","Stone",nil,{groups={ - cracky=2,stone=1 -}}) -vzxv.mundane_block("vzxv:cobblestone","Cobblestone",nil,{groups={ - cracky=2,stone=1 -}}) -vzxv.mundane_block("vzxv:dirt","Dirt",nil,{groups={ - soil=1,crumbly=1,handy=1 -}}) -vzxv.slabs("vzxv:sand","Sand","sand",{groups={ - crumbly=1,handy=1 -}}) -vzxv.slabs("vzxv:moistdirt","Dirt","moistdirt",{groups={ - soil=2,crumbly=1,handy=1 -}}) -vzxv.slabs("vzxv:moistgrass","Grass",{"vzxvmoistgrass.png","vzxvmoistdirt.png","vzxvmoistgrass.png"},{groups={ - plant=1,crumbly=2,soil=1,grassy=1 -}}) +vzxv.mundane_block("vzxv:stone", "Stone", nil, + { groups = { cracky = 2, stone = 1 } } +) + +vzxv.mundane_block("vzxv:cobblestone", "Cobblestone", nil, + { groups = { cracky = 2, stone = 1 } } +) + +vzxv.mundane_block("vzxv:dirt", "Dirt", nil, + { groups = { soil = 1, crumbly = 1, handy = 1 } } +) + +vzxv.slabs("vzxv:sand", "Sand", "sand", + { groups={ crumbly = 1,handy = 1 } } +) + +vzxv.slabs("vzxv:moistdirt","Dirt","moistdirt", + { groups={ soil = 2, crumbly = 1, handy = 1 } } +) + +vzxv.slabs("vzxv:moistgrass","Grass", + {"vzxvmoistgrass.png","vzxvmoistdirt.png","vzxvmoistgrass.png"}, + { groups = { plant = 1, crumbly = 2, soil = 1, grassy=1 } } +) + local dry_grass = "vzxvmoistgrass.png^[colorize:#F05:25" -vzxv.slabs("vzxv:grass","Grass",{dry_grass,"vzxvdirt.png",dry_grass},{groups={ - plant=1,crumbly=2,soil=1,grassy=1 -}}) +vzxv.slabs("vzxv:grass","Grass",{dry_grass, "vzxvdirt.png", dry_grass}, + { groups = { plant=1, crumbly=2, soil=1, grassy=1 } } +) + +vzxv.mundane_block("vzxv:sedimentary", "Stone", + { + "vzxvstone.png","vzxvsedimentary_bottom.png","vzxvsedimentary.png", + "vzxvsedimentary.png", + }, + { groups = { cracky = 1, stone = 1 } } +) -vzxv.mundane_block("vzxv:planks","Planks",nil,{groups={ - choppy=1, -}}) +vzxv.mundane_block("vzxv:planks","Planks",nil, {groups = {choppy = 1}}) vzxv.mundane_block("vzxv:stick","Stick",{"vzxvlog.png","vzxvlog.png","vzxvbark.png"},{ - groups={ - choppy=1,handy=3 - }, + groups = { choppy = 1, handy = 3 }, node_box = {type="fixed",fixed={-0.05,-0.5,-0.05,0.05,0.5,0.05}}, drawtype = "nodebox" }) diff --git a/mods/vzxv/textures/vzxv???.png b/mods/vzxv/textures/vzxv???.png new file mode 100644 index 0000000..d519aba Binary files /dev/null and b/mods/vzxv/textures/vzxv???.png differ diff --git a/mods/vzxv/textures/vzxvsedimentary.png b/mods/vzxv/textures/vzxvsedimentary.png new file mode 100644 index 0000000..ad0279e Binary files /dev/null and b/mods/vzxv/textures/vzxvsedimentary.png differ diff --git a/mods/vzxv/textures/vzxvsedimentary_bottom.png b/mods/vzxv/textures/vzxvsedimentary_bottom.png new file mode 100644 index 0000000..b413e20 Binary files /dev/null and b/mods/vzxv/textures/vzxvsedimentary_bottom.png differ diff --git a/mods/vzxv_worldgen/biome.lua b/mods/vzxv_worldgen/biome.lua index 3b64328..69f7533 100644 --- a/mods/vzxv_worldgen/biome.lua +++ b/mods/vzxv_worldgen/biome.lua @@ -97,7 +97,9 @@ function biomes.surface(pos, gen) table.insert(gen.trees_tbg, pos) end return id "vzxv:moistgrass" - elseif pos.y > height - 5 then + elseif pos.y > height - 4 then + return id "vzxv:moistdirt" + elseif pos.y > height - 5 and math.random(3) == 1 then return id "vzxv:moistdirt" else return id "vzxv:stone" @@ -114,6 +116,10 @@ function biomes.sea(pos, gen) end elseif pos.y > height - 4 then return id "vzxv:sand" + elseif pos.y > height - 15 then + return id "vzxv:sedimentary" + elseif pos.y > height - 16 and math.random(3) == 1 then + return id "vzxv:sedimentary" else return id "vzxv:stone" end -- cgit v1.2.3