Skip to content
Permalink
Browse files

Farming: Override dirt_with_dry_grass to enable cultivation

  • Loading branch information
paramat committed Apr 8, 2016
1 parent aadac12 commit be05441e77b2e17f2c30b877847c7498338e1e1a
Showing with 11 additions and 2 deletions.
  1. +11 −2 mods/farming/nodes.lua
@@ -1,5 +1,5 @@
minetest.override_item("default:dirt", {
groups = {crumbly=3,soil=1},
groups = {crumbly=3, soil=1},
soil = {
base = "default:dirt",
dry = "farming:soil",
@@ -8,14 +8,23 @@ minetest.override_item("default:dirt", {
})

minetest.override_item("default:dirt_with_grass", {
groups = {crumbly=3,soil=1},
groups = {crumbly=3, soil=1},
soil = {
base = "default:dirt_with_grass",
dry = "farming:soil",
wet = "farming:soil_wet"
}
})

minetest.override_item("default:dirt_with_dry_grass", {
groups = {crumbly=3, soil=1},
soil = {
base = "default:dirt_with_dry_grass",
dry = "farming:soil",
wet = "farming:soil_wet"
}
})

minetest.register_node("farming:soil", {
description = "Soil",
tiles = {"default_dirt.png^farming_soil.png", "default_dirt.png"},

0 comments on commit be05441

Please sign in to comment.