mirror of
https://codeberg.org/tenplus1/farming.git
synced 2024-12-27 19:20: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,
|
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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user