forked from mtcontrib/farming
add meshoptions to api and wheat
This commit is contained in:
parent
29d47ff0ec
commit
a501c5d0d4
3
init.lua
3
init.lua
@ -563,6 +563,7 @@ farming.register_plant = function(name, def)
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
selection_box = farming.select,
|
selection_box = farming.select,
|
||||||
|
place_param2 = def.place_param2 or nil,
|
||||||
|
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
return farming.place_seed(itemstack, placer,
|
return farming.place_seed(itemstack, placer,
|
||||||
@ -606,6 +607,8 @@ farming.register_plant = function(name, def)
|
|||||||
waving = 1,
|
waving = 1,
|
||||||
tiles = {mname .. "_" .. pname .. "_" .. i .. ".png"},
|
tiles = {mname .. "_" .. pname .. "_" .. i .. ".png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
paramtype2 = def.paramtype2 or nil,
|
||||||
|
place_param2 = def.place_param2 or nil,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
drop = drop,
|
drop = drop,
|
||||||
|
@ -81,6 +81,8 @@ local crop_def = {
|
|||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"farming_wheat_1.png"},
|
tiles = {"farming_wheat_1.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
paramtype2 = "meshoptions",
|
||||||
|
place_param2 = 3,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
|
Loading…
Reference in New Issue
Block a user