1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2024-12-27 03:00:20 +01:00

placable mint and sunflower seeds, added waving to most crops

This commit is contained in:
tenplus1 2023-04-28 08:56:10 +01:00
parent c218d5aada
commit bf697555e0
22 changed files with 47 additions and 8 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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",

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,