Farming: Override dirt_with_dry_grass to enable cultivation

This commit is contained in:
paramat 2016-04-06 22:52:53 +01:00
parent aadac1223d
commit be05441e77
1 changed files with 11 additions and 2 deletions

View File

@ -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,7 +8,7 @@ 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",
@ -16,6 +16,15 @@ minetest.override_item("default:dirt_with_grass", {
}
})
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"},