Update init.lua

Changed for minetest 0.4.9

https://forum.minetest.net/viewtopic.php?pid=135417#p135417
master
mimilus 2014-03-31 19:36:50 +02:00
parent ec9e8aadb8
commit 36b1515177
1 changed files with 33 additions and 2 deletions

View File

@ -1,3 +1,34 @@
--make variables local
local HUES = {
"red",
"orange",
"yellow",
"lime",
"green",
"aqua",
"cyan",
"skyblue",
"blue",
"violet",
"magenta",
"redviolet"
}
local HUES2 = {
"Red",
"Orange",
"Yellow",
"Lime",
"Green",
"Aqua",
"Cyan",
"Sky-blue",
"Blue",
"Violet",
"Magenta",
"Red-violet"
}
local mod = "tulips"
tulips_table = {}
img = ""
@ -23,8 +54,8 @@ minetest.register_node(mod..":plant", {--register wild plant
for i = 1, 9 do
local hue = dye.basecolors[i]
local hue2 = dye.basecolors[i]
local hue = HUES[i]
local hue2 = HUES2[i]
local img = mod.."_"..hue..".png"
--farming
farming:add_plant(mod..":"..hue, {"tulips:"..hue.."_seeds",mod..":"..hue.."_sprout"}, 60, 2)