Add equivalence code for the snowy dirt blocks
This commit is contained in:
parent
a4eba91c1e
commit
6eed06f7fc
6 changed files with 16 additions and 12 deletions
|
@ -261,14 +261,17 @@ function mcl_core.generate_tree(pos, trunk, leaves, typearbre)
|
|||
for dz=0,1 do
|
||||
pos.z = pos.z + dz
|
||||
--> 0
|
||||
if minetest.get_node(pos).name == "mcl_core:dirt_with_grass"
|
||||
or minetest.get_node(pos).name == "mcl_core:dirt" then else
|
||||
local name = minetest.get_node(pos).name
|
||||
if name == "mcl_core:dirt_with_grass"
|
||||
or name == "mcl_core:dirt_with_grass_snow"
|
||||
or name == "mcl_core:dirt" then else
|
||||
return
|
||||
end
|
||||
pos.x = pos.x+1
|
||||
--> 1
|
||||
if minetest.get_node(pos).name == "mcl_core:dirt_with_grass"
|
||||
or minetest.get_node(pos).name == "mcl_core:dirt" then else
|
||||
if name == "mcl_core:dirt_with_grass"
|
||||
or name == "mcl_core:dirt_with_grass_snow"
|
||||
or name == "mcl_core:dirt" then else
|
||||
return
|
||||
end
|
||||
pos.x = pos.x-1
|
||||
|
|
|
@ -375,7 +375,7 @@ minetest.register_node("mcl_core:dirt_with_grass", {
|
|||
_mcl_hardness = 0.6,
|
||||
})
|
||||
|
||||
|
||||
-- NOTE: This block is to be considered equivalent to the grass block
|
||||
minetest.register_node("mcl_core:dirt_with_grass_snow", {
|
||||
description = "Snowy Grass Block",
|
||||
_doc_items_create_entry = false,
|
||||
|
@ -428,6 +428,7 @@ minetest.register_node("mcl_core:mycelium", {
|
|||
_mcl_hardness = 0.6,
|
||||
})
|
||||
|
||||
-- NOTE: This block is to be considered equivalent to mycelium
|
||||
minetest.register_node("mcl_core:mycelium_snow", {
|
||||
description = "Snowy Mycelium",
|
||||
_doc_items_create_entry = false,
|
||||
|
@ -455,6 +456,7 @@ minetest.register_node("mcl_core:podzol", {
|
|||
_mcl_hardness = 0.6,
|
||||
})
|
||||
|
||||
-- NOTE: This block is to be considered equivalent to podzol
|
||||
minetest.register_node("mcl_core:podzol_snow", {
|
||||
description = "Snowy Podzol",
|
||||
_doc_items_create_entry = false,
|
||||
|
@ -463,12 +465,11 @@ minetest.register_node("mcl_core:podzol_snow", {
|
|||
stack_max = 64,
|
||||
groups = {handy=1,shovely=3, soil=1, soil_sapling=2, soil_sugarcane=1, building_block=1, not_in_creative_inventory=1},
|
||||
drop = 'mcl_core:dirt',
|
||||
sounds = mcl_sounds.node_sound_dirt_defaults(),
|
||||
sounds = mcl_sounds.node_sound_snow_defaults(),
|
||||
_mcl_blast_resistance = 2.5,
|
||||
_mcl_hardness = 0.6,
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("mcl_core:dirt", {
|
||||
description = "Dirt",
|
||||
_doc_items_longdesc = "Dirt acts as a soil for a few plants. When in light, it will turn into a grass block eventually.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue