mirror of
https://codeberg.org/tenplus1/farming.git
synced 2024-12-27 19:20:20 +01:00
Add ABM labels
This commit is contained in:
parent
28fda57767
commit
498063553a
3
init.lua
3
init.lua
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
farming = {
|
farming = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20221028",
|
version = "20230122",
|
||||||
path = minetest.get_modpath("farming"),
|
path = minetest.get_modpath("farming"),
|
||||||
select = {
|
select = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -307,6 +307,7 @@ end)
|
|||||||
-- Just in case a growing type or added node is missed (also catches existing
|
-- Just in case a growing type or added node is missed (also catches existing
|
||||||
-- nodes added to map before timers were incorporated).
|
-- nodes added to map before timers were incorporated).
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
|
label = "Start crop timer",
|
||||||
nodenames = {"group:growing"},
|
nodenames = {"group:growing"},
|
||||||
interval = 300,
|
interval = 300,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
|
1
soil.lua
1
soil.lua
@ -144,6 +144,7 @@ minetest.register_alias("farming:desert_sand_soil_wet", dry_soil .. "_wet")
|
|||||||
|
|
||||||
-- if water near soil then change to wet soil
|
-- if water near soil then change to wet soil
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
|
label = "Soil changes",
|
||||||
nodenames = {"group:field"},
|
nodenames = {"group:field"},
|
||||||
interval = 15,
|
interval = 15,
|
||||||
chance = 4,
|
chance = 4,
|
||||||
|
Loading…
Reference in New Issue
Block a user