forked from mtcontrib/farming
placable mint and sunflower seeds, added waving to most crops
This commit is contained in:
parent
c218d5aada
commit
bf697555e0
@ -20,6 +20,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
|
@ -23,6 +23,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
|
@ -48,6 +48,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
|
@ -58,6 +58,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
|
@ -58,6 +58,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 4, plant = 1, attached_node = 1,
|
||||
|
@ -52,6 +52,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
|
@ -113,6 +113,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
|
@ -100,6 +100,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 4, plant = 1, attached_node = 1,
|
||||
|
@ -22,6 +22,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
local S = farming.intllib
|
||||
|
||||
-- potato
|
||||
-- garlic clove
|
||||
minetest.register_craftitem("farming:garlic_clove", {
|
||||
description = S("Garlic clove"),
|
||||
inventory_image = "crops_garlic_clove.png",
|
||||
|
@ -21,6 +21,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
|
@ -192,6 +192,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
|
@ -2,13 +2,21 @@
|
||||
local S = farming.intllib
|
||||
|
||||
-- mint seed
|
||||
minetest.register_craftitem("farming:seed_mint", {
|
||||
minetest.register_node("farming:seed_mint", {
|
||||
description = S("Mint Seeds"),
|
||||
tiles = {"farming_mint_seeds.png"},
|
||||
inventory_image = "farming_mint_seeds.png",
|
||||
groups = {seed = 2, flammable = 2},
|
||||
wield_image = "farming_mint_seeds.png",
|
||||
drawtype = "signlike",
|
||||
groups = {seed = 1, snappy = 3, attached_node = 1, growing = 1, flammable = 2},
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
walkable = false,
|
||||
sunlight_propagates = true,
|
||||
selection_box = farming.select,
|
||||
next_plant = "farming:mint_1",
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(
|
||||
itemstack, placer, pointed_thing, "farming:mint_1")
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:seed_mint")
|
||||
end
|
||||
})
|
||||
|
||||
@ -47,6 +55,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
|
@ -54,6 +54,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 3, plant = 1, attached_node = 1,
|
||||
|
@ -19,6 +19,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
|
@ -85,6 +85,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
|
@ -38,6 +38,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
|
@ -54,6 +54,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 4, plant = 1, attached_node = 1,
|
||||
|
@ -8,12 +8,22 @@ minetest.register_craftitem("farming:sunflower", {
|
||||
})
|
||||
|
||||
-- sunflower seeds
|
||||
minetest.register_craftitem("farming:seed_sunflower", {
|
||||
minetest.register_node("farming:seed_sunflower", {
|
||||
description = S("Sunflower Seeds"),
|
||||
tiles = {"farming_sunflower_seeds.png"},
|
||||
inventory_image = "farming_sunflower_seeds.png",
|
||||
groups = {seed = 2, food_sunflower_seeds = 1, flammable = 2},
|
||||
wield_image = "farming_sunflower_seeds.png",
|
||||
drawtype = "signlike",
|
||||
groups = {seed = 1, snappy = 3, attached_node = 1, growing = 1,
|
||||
food_sunflower_seeds = 1, flammable = 2},
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
walkable = false,
|
||||
sunlight_propagates = true,
|
||||
selection_box = farming.select,
|
||||
next_plant = "farming:sunflower_1",
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:sunflower_1")
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:seed_sunflower")
|
||||
end
|
||||
})
|
||||
|
||||
@ -98,6 +108,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
|
@ -43,6 +43,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
|
@ -20,6 +20,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 2, plant = 1, attached_node = 1,
|
||||
|
@ -159,6 +159,7 @@ local def = {
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
waving = 1,
|
||||
selection_box = farming.select,
|
||||
groups = {
|
||||
snappy = 3, flammable = 4, plant = 1, attached_node = 1,
|
||||
|
Loading…
Reference in New Issue
Block a user