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

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,
next_plant = "farming:barley_1",
selection_box = farming.select,
-- on_place = function(itemstack, placer, pointed_thing)
-- return farming.place_seed(itemstack, placer, pointed_thing, "farming:barley_1")
-- end
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:seed_barley")
end
})
-- harvested barley

View File

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

View File

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

View File

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