diff options
author | the lemons <citrons@mondecitronne.com> | 2022-02-15 02:41:05 -0600 |
---|---|---|
committer | the lemons <citrons@mondecitronne.com> | 2022-02-15 02:41:05 -0600 |
commit | 6866d6727513fd3adc8baa361e18069a98107803 (patch) | |
tree | c3a7ece710322f3a196f39f8d0c3440aa05ec62d | |
parent | 5ae924d9a4220b952ac3f481bb58df97ff7676ec (diff) |
add sedimentary rock
-rw-r--r-- | mods/vzxv/nodes.lua | 65 | ||||
-rw-r--r-- | mods/vzxv/textures/vzxv???.png | bin | 0 -> 934 bytes | |||
-rw-r--r-- | mods/vzxv/textures/vzxvsedimentary.png | bin | 0 -> 707 bytes | |||
-rw-r--r-- | mods/vzxv/textures/vzxvsedimentary_bottom.png | bin | 0 -> 544 bytes | |||
-rw-r--r-- | mods/vzxv_worldgen/biome.lua | 8 |
5 files changed, 45 insertions, 28 deletions
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 Binary files differnew file mode 100644 index 0000000..d519aba --- /dev/null +++ b/mods/vzxv/textures/vzxv???.png diff --git a/mods/vzxv/textures/vzxvsedimentary.png b/mods/vzxv/textures/vzxvsedimentary.png Binary files differnew file mode 100644 index 0000000..ad0279e --- /dev/null +++ b/mods/vzxv/textures/vzxvsedimentary.png diff --git a/mods/vzxv/textures/vzxvsedimentary_bottom.png b/mods/vzxv/textures/vzxvsedimentary_bottom.png Binary files differnew file mode 100644 index 0000000..b413e20 --- /dev/null +++ b/mods/vzxv/textures/vzxvsedimentary_bottom.png 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 |