Page 1 of 1

need help with a mod

PostPosted: Sun Jan 01, 2012 00:58
by jordan4ibanez
okay so here is my acid mod



--ACID FLOW

minetest.register_node("acid:acid_flow", {

drawtype = "flowingliquid",

tile_images = {'acid.png'},

inventory_image = 'acid.png',

alpha = 20,

paramtype = 'light',

walkable = false,

diggable = false,

liquid_viscosity = 6,

liquidtype = "flowing",

liquid_alternative_flowing = "acid_flow",

liquid_alternative_source = "acid_source",

special_materials = {

{image="acid.png", backface_culling=false},

{image="acid.png", backface_culling=true},

},

})





--ACID SOURCE

minetest.register_node('acid:acid_source', {

drawtype = 'liquid',

tile_images = {'acid.png'},

inventory_image = 'acid.png',

alpha = 20,

paramtype = 'light',

walkable = false,

pointable = false,

diggable = false,

buildable_to = false,

damage_per_second = 5,

liquid_viscosity = 6,

liquidtype = "source",

liquid_alternative_flowing = "acid_flow",

liquid_alternative_source = "acid_source",

special_materials = {

{image="acid.png", backface_culling=false},

},

})







minetest.register_craft({

output = 'NodeItem "acid:acid_source" 10',

recipe = {

{'', 'node "default:brick" 1', ''},

{'', 'node "default:brick" 1', ''},

},

})


but when i place the acid down it says
ERROR[ServerThread]: Map::setNode(): Not allowing to place CONTENT_IGNORE while trying to place "air" at (quards) (block (way diferent quards))


HELPPP

PostPosted: Sun Jan 01, 2012 01:42
by Jordach
Instead of acid you are placing, its air. You need to define it as a liquid. Not O2.

PostPosted: Sun Jan 01, 2012 01:54
by jordan4ibanez
how would i do that? i thought i already told it its a liquid

PostPosted: Sun Jan 01, 2012 03:13
by Jordach
Liquids are nodes, is that set?

PostPosted: Sun Jan 01, 2012 03:38
by jordan4ibanez
yes that is

PostPosted: Sun Jan 01, 2012 07:13
by Daraku
Check water implementation in default/init.lua:
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
minetest.register_node("default:water_flowing", {
    drawtype = "flowingliquid",
    tile_images = {"default_water.png"},
    alpha = WATER_ALPHA,
    inventory_image = minetest.inventorycube("default_water.png"),
    paramtype = "light",
    walkable = false,
    pointable = false,
    diggable = false,
    buildable_to = true,
    liquidtype = "flowing",
    liquid_alternative_flowing = "water_flowing",
    liquid_alternative_source = "water_source",
    liquid_viscosity = WATER_VISC,
    post_effect_color = {a=64, r=100, g=100, b=200},
    special_materials = {
        {image="default_water.png", backface_culling=false},
        {image="default_water.png", backface_culling=true},
    },
})

minetest.register_node("default:water_source", {
    drawtype = "liquid",
    tile_images = {"default_water.png"},
    alpha = WATER_ALPHA,
    inventory_image = minetest.inventorycube("default_water.png"),
    paramtype = "light",
    walkable = false,
    pointable = false,
    diggable = false,
    buildable_to = true,
    liquidtype = "source",
    liquid_alternative_flowing = "water_flowing",
    liquid_alternative_source = "water_source",
    liquid_viscosity = WATER_VISC,
    post_effect_color = {a=64, r=100, g=100, b=200},
    special_materials = {
        -- New-style water source material (mostly unused)
        {image="default_water.png", backface_culling=false},
    },
})

minetest.register_node("default:lava_flowing", {
    drawtype = "flowingliquid",
    tile_images = {"default_lava.png"},
    inventory_image = minetest.inventorycube("default_lava.png"),
    paramtype = "light",
    light_source = LIGHT_MAX - 1,
    walkable = false,
    pointable = false,
    diggable = false,
    buildable_to = true,
    liquidtype = "flowing",
    liquid_alternative_flowing = "lava_flowing",
    liquid_alternative_source = "lava_source",
    liquid_viscosity = LAVA_VISC,
    damage_per_second = 4*2,
    post_effect_color = {a=192, r=255, g=64, b=0},
    special_materials = {
        {image="default_lava.png", backface_culling=false},
        {image="default_lava.png", backface_culling=true},
    },
})

minetest.register_node("default:lava_source", {
    drawtype = "liquid",
    tile_images = {"default_lava.png"},
    inventory_image = minetest.inventorycube("default_lava.png"),
    paramtype = "light",
    light_source = LIGHT_MAX - 1,
    walkable = false,
    pointable = false,
    diggable = false,
    buildable_to = true,
    liquidtype = "source",
    liquid_alternative_flowing = "lava_flowing",
    liquid_alternative_source = "lava_source",
    liquid_viscosity = LAVA_VISC,
    damage_per_second = 4*2,
    post_effect_color = {a=192, r=255, g=64, b=0},
    special_materials = {
        -- New-style lava source material (mostly unused)
        {image="default_lava.png", backface_culling=false},
    },
    furnace_burntime = 60,
})

PostPosted: Sun Jan 01, 2012 08:29
by sfan5
minetest.register_node('acid:acid_source', {
..
buildable_to = false
..
})


You can't place your liquid, because your code doesn't allow it.
Replace false with true and it should work.

PostPosted: Sun Jan 01, 2012 08:56
by IPushButton2653
Tried that, I placed the acid_flow block, and it came up with CONTENT_IGNORE error thingey, I don't know why, I shall look into it.......

PostPosted: Sun Jan 01, 2012 09:18
by IPushButton2653
Just try using the code for water or lava, but just set it to refer to the acid textures, not lava or water.........

PostPosted: Sun Jan 01, 2012 09:21
by sfan5
IPushButton2653 wrote:Tried that, I placed the acid_flow block, and it came up with CONTENT_IGNORE error thingey, I don't know why, I shall look into it.......

jordan4ibanez wants to place the acid_source block not the acid_flow block

PostPosted: Sun Jan 01, 2012 19:06
by IPushButton2653
I tried everything, it won't allow the acid to flow. Someone needs to attempt to use the code for lava and adjust it for use with the acid mod, and try that. I'm too busy with helping someone with a parkour map to help with this.

PostPosted: Sun Jan 01, 2012 19:10
by celeron55
The problem is in
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
    liquid_alternative_flowing = "acid_flow",

    liquid_alternative_source = "acid_source",


The default mod makes this a bit hard to see because it uses the legacy aliases of water nodes, which are "water_flowing" and "water_source" while their real names are "default:water_flowing" and "default:water_source". I'll change those to make it more clear.

Your mod fixed:
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
    liquid_alternative_flowing = "acid:acid_flow",

    liquid_alternative_source = "acid:acid_source",

PostPosted: Sun Jan 01, 2012 19:15
by IPushButton2653
Dang, why do the admins always know everything???

PostPosted: Sun Jan 01, 2012 19:17
by sfan5
idk :D

PostPosted: Sun Jan 01, 2012 19:27
by IPushButton2653
Well, of to work on the parkour map ^^

PostPosted: Sun Jan 01, 2012 20:05
by MarkTraceur
IPushButton2653 wrote:Dang, why do the admins always know everything???


He's not just the admin, he's the developer of the game. He'd know best the quirks of his own system!

PostPosted: Sun Jan 01, 2012 20:26
by IPushButton2653
I guess that no one gets that I know that, and I point out stuff like that, the forums need at least one idiot.........

PostPosted: Sun Jan 01, 2012 20:57
by jordan4ibanez
celeron55 wrote:The problem is in
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
    liquid_alternative_flowing = "acid_flow",

    liquid_alternative_source = "acid_source",


The default mod makes this a bit hard to see because it uses the legacy aliases of water nodes, which are "water_flowing" and "water_source" while their real names are "default:water_flowing" and "default:water_source". I'll change those to make it more clear.

Your mod fixed:
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
    liquid_alternative_flowing = "acid:acid_flow",

    liquid_alternative_source = "acid:acid_source",

thank you sir!

PostPosted: Sun Jan 01, 2012 20:59
by IPushButton2653
And it actually works!!!