Skip to content

Commit

Permalink
Small tidyup
Browse files Browse the repository at this point in the history
  • Loading branch information
Amaz1 committed Oct 1, 2015
1 parent ef8768c commit f92eb70
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 78 deletions.
60 changes: 30 additions & 30 deletions mods/lottplants/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -591,8 +591,8 @@ end

minetest.register_abm({
nodenames = {"lottplants:aldersapling"},
interval = ALDINT,
chance = ALDCHA,
interval = 67,
chance = 11,
action = function(pos, node, active_object_count, active_object_count_wider)
lottplants_aldertree(pos)
print ("[lottplants] Alder Grows")
Expand All @@ -603,8 +603,8 @@ minetest.register_abm({

minetest.register_abm({
nodenames = {"lottplants:applesapling"},
interval = APPINT,
chance = APPCHA,
interval = 67,
chance = 11,
action = function(pos, node, active_object_count, active_object_count_wider)
lottplants_appletree(pos)
print ("[lottplants] Apple Tree Grows")
Expand All @@ -615,8 +615,8 @@ minetest.register_abm({

minetest.register_abm({
nodenames = {"lottplants:birchsapling"},
interval = BIRINT,
chance = BIRCHA,
interval = 67,
chance = 11,
action = function(pos, node, active_object_count, active_object_count_wider)
lottplants_birchtree(pos)
print ("[lottplants] Birch Grows")
Expand All @@ -627,8 +627,8 @@ minetest.register_abm({

minetest.register_abm({
nodenames = {"lottplants:beechsapling"},
interval = BEEINT,
chance = BEECHA,
interval = 67,
chance = 11,
action = function(pos, node, active_object_count, active_object_count_wider)
lottplants_beechtree(pos)
print ("[lottplants] Beech Grows")
Expand All @@ -639,8 +639,8 @@ minetest.register_abm({

minetest.register_abm({
nodenames = {"lottplants:culumaldasapling"},
interval = CULINT,
chance = CULCHA,
interval = 67,
chance = 11,
action = function(pos, node, active_object_count, active_object_count_wider)
lottplants_culumaldatree(pos)
print ("[lottplants] Culumalda Grows")
Expand All @@ -651,8 +651,8 @@ minetest.register_abm({

minetest.register_abm({
nodenames = {"lottplants:elmsapling"},
interval = ELMINT,
chance = ELMCHA,
interval = 67,
chance = 11,
action = function(pos, node, active_object_count, active_object_count_wider)
lottplants_elmtree(pos)
print ("[lottplants] Elm Grows")
Expand All @@ -663,8 +663,8 @@ minetest.register_abm({

minetest.register_abm({
nodenames = {"lottplants:firsapling"},
interval = FIRINT,
chance = FIRCHA,
interval = 67,
chance = 11,
action = function(pos, node, active_object_count, active_object_count_wider)
lottplants_firtree(pos)
print ("[lottplants] Fir Grows")
Expand All @@ -675,8 +675,8 @@ minetest.register_abm({

minetest.register_abm({
nodenames = {"lottplants:lebethronsapling"},
interval = LEBINT,
chance = LEBCHA,
interval = 67,
chance = 11,
action = function(pos, node, active_object_count, active_object_count_wider)
lottplants_lebethrontree(pos)
print ("[lottplants] Lebethron Grows")
Expand All @@ -687,8 +687,8 @@ minetest.register_abm({

minetest.register_abm({
nodenames = {"lottplants:mallornsapling"},
interval = MALINT,
chance = MALCHA,
interval = 67,
chance = 11,
action = function(pos, node, active_object_count, active_object_count_wider)
if math.random(3) == 1 then
lottplants_mallorntree(pos)
Expand All @@ -705,8 +705,8 @@ minetest.register_abm({

minetest.register_abm({
nodenames = {"lottplants:pinesapling"},
interval = PININT,
chance = PINCHA,
interval = 67,
chance = 11,
action = function(pos, node, active_object_count, active_object_count_wider)
lottplants_pinetree(pos)
print ("[lottplants] Pine Grows")
Expand All @@ -717,8 +717,8 @@ minetest.register_abm({

minetest.register_abm({
nodenames = {"lottplants:plumsapling"},
interval = PLUINT,
chance = PLUCHA,
interval = 67,
chance = 11,
action = function(pos, node, active_object_count, active_object_count_wider)
lottplants_plumtree(pos)
print ("[lottplants] Plum Tree Grows")
Expand All @@ -729,8 +729,8 @@ minetest.register_abm({

minetest.register_abm({
nodenames = {"lottplants:rowansapling"},
interval = ROWINT,
chance = ROWCHA,
interval = 67,
chance = 11,
action = function(pos, node, active_object_count, active_object_count_wider)
lottplants_rowantree(pos)
print ("[lottplants] Rowan Grows")
Expand All @@ -741,8 +741,8 @@ minetest.register_abm({

minetest.register_abm({
nodenames = {"lottplants:whitesapling"},
interval = WHIINT,
chance = WHICHA,
interval = 67,
chance = 11,
action = function(pos, node, active_object_count, active_object_count_wider)
lottplants_whitetree(pos)
print ("[lottplants] The White Tree of Minetest Grows")
Expand All @@ -753,8 +753,8 @@ minetest.register_abm({

minetest.register_abm({
nodenames = {"lottplants:yavannamiresapling"},
interval = YAVINT,
chance = YAVCHA,
interval = 67,
chance = 11,
action = function(pos, node, active_object_count, active_object_count_wider)
lottplants_yavannamiretree(pos)
print ("[lottplants] Yavannamire Grows")
Expand All @@ -765,8 +765,8 @@ minetest.register_abm({

minetest.register_abm({
nodenames = {"lottplants:mirksapling"},
interval = MIRINT,
chance = MIRCHA,
interval = 67,
chance = 11,
action = function(pos, node, active_object_count, active_object_count_wider)
if math.random(2) == 1 then
lottplants_mirktree(pos)
Expand Down
48 changes: 0 additions & 48 deletions mods/lottplants/init.lua
Original file line number Diff line number Diff line change
@@ -1,54 +1,6 @@
dofile(minetest.get_modpath("lottplants").."/nodes.lua")
dofile(minetest.get_modpath("lottplants").."/wild_food.lua")
dofile(minetest.get_modpath("lottplants").."/flowers.lua")

-- ===== GROWING TIME =====

ALDINT = 67
ALDCHA = 11

APPINT = 67
APPCHA = 11

BIRINT = 67
BIRCHA = 11

BEEINT = 67
BEECHA = 11

CULINT = 67
CULCHA = 11

ELMINT = 67
ELMCHA = 11

FIRINT = 67
FIRCHA = 11

LEBINT = 67
LEBCHA = 11

MALINT = 67
MALCHA = 11

MIRINT = 67
MIRCHA = 11

PININT = 67
PINCHA = 11

PLUINT = 67
PLUCHA = 11

ROWINT = 67
ROWCHA = 11

WHIINT = 67
WHICHA = 11

YAVINT = 67
YAVCHA = 11

dofile(minetest.get_modpath("lottplants").."/functions.lua")

minetest.register_node("lottplants:brambles_of_mordor", {
Expand Down

0 comments on commit f92eb70

Please sign in to comment.