Topywo wrote:HeroOfTheWinds wrote:So, while trying to modify paramat's floatindev mod, I ran into a very vexing problem: Many of the blocks that the voxelmanip generates, including default:gravel and a couple moreblocks nodes are added to the world as fire:basic_flame. However, other blocks that I added such as obsidian and dirt_with_snow are generating perfectly fine. Near the beginning of the code, I check to see if moreblocks is installed before redefining the nodes from it I'm using so as to turn is_ground_content false. Does anyone know what could be causing this?
Maybe this is a relevant link:
viewtopic.php?f=9&t=7383Edit: Quote and typo.
Thanks for the help. After posting this last night, I kept at it for about half an hour more, and found the problem. I knew it was relating to unknown nodes, but since I double checked my spelling and the names of the mods, I knew it was a logic error. And indeed it was. At the start of my code, I had something along these lines:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local mblocks = false
if (minetest.get_modpath("moreblocks")) then
mblocks = true
end
What my error was, is that the logic statement was never run since it was not in any function. Silly error, but after correcting it, everything is going good. Volcano biomes with optional coal_stone depending on mods installed are now working. This error has one more benefit: I'm thinking of purposely adding fire to that biome as a surface generation similar to grass. :P
Nam ex spatio, omnes res venire possunt.
Why let the ground limit you when you can reach for the sky?
Back to college now, yay for sophomore year schedules. :P