Browse Source

add compatibility for new dry_soil nodes

pull/20/head
tenplus1 2 months ago
parent
commit
0a3b4466c0
2 changed files with 6 additions and 2 deletions
  1. +3
    -2
      mapgen.lua
  2. +3
    -0
      soil.lua

+ 3
- 2
mapgen.lua View File

@@ -36,7 +36,8 @@ register_plant("potato_3", 15, 40, nil, "", -1, farming.potato)
register_plant("tomato_7", 5, 20, nil, "", -1, farming.tomato)
register_plant("corn_7", 12, 22, nil, "", -1, farming.corn)
register_plant("coffee_5", 20, 45, {"default:dirt_with_dry_grass",
"default:dirt_with_rainforest_litter"}, "", -1, farming.coffee)
"default:dirt_with_rainforest_litter",
"default:dry_dirt_with_dry_grass"}, "", -1, farming.coffee)
register_plant("raspberry_4", 3, 10, nil, "", -1, farming.raspberry)
register_plant("rhubarb_3", 3, 15, nil, "", -1, farming.rhubarb)
register_plant("blueberry_4", 3, 10, nil, "", -1, farming.blueberry)
@@ -129,7 +130,7 @@ end
if farming.pineapple then
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:dirt_with_dry_grass"},
place_on = {"default:dirt_with_dry_grass", "default:dry_dirt_with_dry_grass"},
sidelen = 16,
noise_params = {
offset = 0,


+ 3
- 0
soil.lua View File

@@ -22,6 +22,9 @@ minetest.register_node("farming:soil_wet", {
-- sand is not soil, change existing sand-soil to use normal soil
minetest.register_alias("farming:desert_sand_soil", "farming:soil")
minetest.register_alias("farming:desert_sand_soil_wet", "farming:soil_wet")
-- also change new dry soil to use normal soil
minetest.register_alias("farming:dry_soil", "farming:soil")
minetest.register_alias("farming:dry_soil_wet", "farming:soil_wet")

-- if water near soil then change to wet soil
minetest.register_abm({


Loading…
Cancel
Save