use farming seed placer function

This commit is contained in:
tenplus1 2023-04-09 08:57:36 +01:00
parent 03fce8b65f
commit 2446f3d76c
4 changed files with 12 additions and 12 deletions

View File

@ -15,9 +15,9 @@ minetest.register_node("farming:seed_barley", {
sunlight_propagates = true, sunlight_propagates = true,
next_plant = "farming:barley_1", next_plant = "farming:barley_1",
selection_box = farming.select, selection_box = farming.select,
-- on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
-- return farming.place_seed(itemstack, placer, pointed_thing, "farming:barley_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:seed_barley")
-- end end
}) })
-- harvested barley -- harvested barley

View File

@ -41,9 +41,9 @@ minetest.register_node("farming:seed_cotton", {
sunlight_propagates = true, sunlight_propagates = true,
selection_box = farming.select, selection_box = farming.select,
next_plant = "farming:cotton_1", next_plant = "farming:cotton_1",
-- on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
-- return farming.place_seed(itemstack, placer, pointed_thing, "farming:cotton_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:seed_cotton")
-- end end
}) })
-- cotton -- cotton

View File

@ -15,9 +15,9 @@ minetest.register_node("farming:seed_hemp", {
sunlight_propagates = true, sunlight_propagates = true,
selection_box = farming.select, selection_box = farming.select,
next_plant = "farming:hemp_1", next_plant = "farming:hemp_1",
-- on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
-- return farming.place_seed(itemstack, placer, pointed_thing, "farming:hemp_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:seed_hemp")
-- end end
}) })
-- harvested hemp -- harvested hemp

View File

@ -15,9 +15,9 @@ minetest.register_node("farming:seed_wheat", {
sunlight_propagates = true, sunlight_propagates = true,
selection_box = farming.select, selection_box = farming.select,
next_plant = "farming:wheat_1", next_plant = "farming:wheat_1",
-- on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
-- return farming.place_seed(itemstack, placer, pointed_thing, "farming:wheat_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:seed_wheat")
-- end end
}) })
-- harvested wheat -- harvested wheat