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:
parent
03fce8b65f
commit
2446f3d76c
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user