-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handy for when modders want to use these definitions to extend or add to the mod
1 parent
6fdfd25
commit 78311a2
Showing
2 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
|
||
-- Wear out hoes, place soil | ||
-- TODO Ignore group:flower | ||
farming.registered_plants = {} | ||
|
||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
sofar
Contributor
|
||
farming.hoe_on_use = function(itemstack, user, pointed_thing, uses) | ||
local pt = pointed_thing | ||
-- check if pointing at a node | ||
|
@@ -263,6 +265,8 @@ farming.register_plant = function(name, def) | |
def.fertility = {} | ||
end | ||
|
||
farming.registered_plants[pname] = def | ||
|
||
-- Register seed | ||
local lbm_nodes = {mname .. ":seed_" .. pname} | ||
local g = {seed = 1, snappy = 3, attached_node = 1} | ||
|
It indeed does not