External Publication
Visit Post

WIP Mods • Re: [mod] Beautiful flowers [beautiflowers]

Luanti Forums - Index page [Unofficial] March 22, 2026
Source

Another question : the azaleas are a very nice addition but only one color seems to appear in the world, which is the basic pink azalea. Why is that ? I guess it is related to the fact that they are not registered the same way :

  • the basic pink one is called just "azalea"
  • while the other ones are called "azalea__color_ " Knowing next to nothing about coding, I really don't undestand how to use this name ~= "" and "" .. name or ""_. :"/

Code:

local function register_azalea() local azaleas = {"", "autum", "blue", "orange", "green", "red", "rouse"} for _, name in ipairs(azaleas) do local node_name = "beautiflowers:azalea" .. (name ~= "" and "_" .. name or "") local texture = "azalea" .. (name ~= "" and "_" .. name or "") .. ".png"

Is there a reason why the basic azalea is not called "azalea_pink" like the others, so that the code could fit any color equally ? By the way, I just noticed that the "azalea_high" texture doesn't even appear in the code. ;)

Statistics: Posted by Isao — Sun Mar 22, 2026 19:18


Discussion in the ATmosphere

Loading comments...