772 lines
24 KiB
Lua
772 lines
24 KiB
Lua
-- mods/australia/nodes.lua
|
|
|
|
|
|
--
|
|
-- Stone
|
|
--
|
|
|
|
minetest.register_node("australia:red_stone", {
|
|
description = "Red Stone",
|
|
tiles = {"aus_red_stone.png"},
|
|
groups = {cracky=3, stone=1},
|
|
drop = 'australia:red_cobble',
|
|
sounds = default.node_sound_stone_defaults(),
|
|
})
|
|
|
|
minetest.register_node("australia:red_cobble", {
|
|
description = "Red cobblestone",
|
|
tiles = {"aus_red_cobble.png"},
|
|
is_ground_content = false,
|
|
groups = {cracky=3, stone=2},
|
|
sounds = default.node_sound_stone_defaults(),
|
|
})
|
|
|
|
minetest.register_node("australia:red_stonebrick", {
|
|
description = "Red Stone Brick",
|
|
tiles = {"aus_red_stonebrick.png"},
|
|
is_ground_content = false,
|
|
groups = {cracky=2, stone=1},
|
|
sounds = default.node_sound_stone_defaults(),
|
|
})
|
|
|
|
minetest.register_node("australia:bluestone", {
|
|
description = "Bluestone (Basalt)",
|
|
tiles = {"aus_bluestone.png"},
|
|
groups = {cracky=2, stone=1},
|
|
drop = 'australia:bluestone_cobble',
|
|
sounds = default.node_sound_stone_defaults(),
|
|
})
|
|
|
|
minetest.register_node("australia:bluestone_cobble", {
|
|
description = "Bluestone cobble",
|
|
tiles = {"aus_bluestone_cobble.png"},
|
|
is_ground_content = false,
|
|
groups = {cracky=2, stone=2},
|
|
sounds = default.node_sound_stone_defaults(),
|
|
})
|
|
|
|
minetest.register_node("australia:bluestone_brick", {
|
|
description = "Bluestone Brick",
|
|
tiles = {"aus_bluestone_brick.png"},
|
|
is_ground_content = false,
|
|
groups = {cracky=1, stone=1},
|
|
sounds = default.node_sound_stone_defaults(),
|
|
})
|
|
|
|
|
|
--
|
|
-- Soft / Non-Stone
|
|
--
|
|
|
|
minetest.register_node("australia:red_dirt", {
|
|
description = "Red Dirt",
|
|
tiles = {"aus_red_dirt.png"},
|
|
groups = {crumbly=3,soil=1},
|
|
sounds = default.node_sound_dirt_defaults(),
|
|
})
|
|
|
|
minetest.register_node("australia:red_sand", {
|
|
description = "Red Sand",
|
|
tiles = {"aus_red_sand.png"},
|
|
groups = {crumbly=3, falling_node=1, sand=1},
|
|
sounds = default.node_sound_sand_defaults(),
|
|
})
|
|
|
|
minetest.register_node("australia:red_gravel", {
|
|
description = "Red Gravel",
|
|
tiles = {"aus_red_gravel.png"},
|
|
groups = {crumbly=2, falling_node=1},
|
|
sounds = default.node_sound_dirt_defaults({
|
|
footstep = {name="default_gravel_footstep", gain=0.5},
|
|
dug = {name="default_gravel_footstep", gain=1.0},
|
|
}),
|
|
})
|
|
|
|
minetest.register_node("australia:mangrove_mud", {
|
|
description = "Mangrove Mud",
|
|
tiles = {"aus_mangrove_mud.png"},
|
|
groups = {crumbly=2, soil=1},
|
|
sounds = default.node_sound_dirt_defaults({
|
|
footstep = {name="aus_mangrove_mud", gain=0.4},
|
|
dug = {name="aus_mangrove_mud", gain=0.4},
|
|
}),
|
|
})
|
|
|
|
|
|
|
|
--
|
|
-- Trees
|
|
--
|
|
|
|
aus.treelist = {
|
|
--treename, treedesc, treetrunk_dia, treespaling, treefruit, treefruit_desc, treefruit_scale, treefruit_health
|
|
{"black_box", "Eucalyptus largiflorens: Black Box", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"black_wattle", "Acacia melanoxylon: Black Wattle", 0.75, "acacia", nil, nil, nil, nil },
|
|
{"blue_gum", "Eucalyptus globulus: Blue Gum", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"boab", "Adansonia gregorii: Boab", 1.0, "boab", nil, nil, nil, nil },
|
|
{"bull_banksia", "Banksia grandis: Bull Banksia", 0.33, "banksia", nil, nil, nil, nil },
|
|
{"celery_top_pine", "Phyllocladus aspleniifolius: Celery-top Pine", 1, "pine", nil, nil, nil, nil },
|
|
{"cherry", "Exocarpos cupressiformis: Australian Cherry", 0.5, "berry", "cherry", "Australian Cherries", 0.67, 1 },
|
|
{"cloncurry_box", "Eucalyptus leucophylla: Cloncurry Box", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"coast_banksia", "Banksia integrifolia: Coast Banksia", 1.0, "banksia", nil, nil, nil, nil },
|
|
{"coolabah", "Eucalyptus coolabah: Coolabah", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"daintree_stringybark", "Eucalyptus pellita: Daintree Stringybark", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"darwin_woollybutt", "Eucalyptus miniata: Darwin Woollybutt", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"desert_oak", "Allocasuarina decaisneana: Desert Oak", 1.0, "acacia", nil, nil, nil, nil },
|
|
{"fan_palm", "Licuala ramsayi: Australian Fan Palm", 1.0, "palm", nil, nil, nil, nil },
|
|
{"golden_wattle", "Acacia pycnantha: Golden Wattle", 0.33, "acacia", nil, nil, nil, nil },
|
|
{"grey_mangrove", "Avicennia marina: Grey Mangrove", 0.25, "mangrove", nil, nil, nil, nil },
|
|
{"huon_pine", "Lagarostrobos franklinii: Huon Pine", 1.0, "pine", nil, nil, nil, nil },
|
|
{"illawarra_flame", "Brachychiton acerifolius: Illawarra Flame", 1.0, "illawarra_flame", nil, nil, nil, nil },
|
|
{"jarrah", "Eucalyptus marginata: Jarrah", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"karri", "Eucalyptus diversicolor: Karri", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"lemon_eucalyptus", "Eucalyptus citriodora: Lemon Eucalyptus", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"lemon_myrtle", "Backhousia citriodora: Lemon Myrtle", 0.5, "myrtle", nil, nil, nil, nil },
|
|
{"lilly_pilly", "Syzygium smithii: Lilly Pilly", 0.33, "berry", "lilly_pilly_berries", "Lilly Pilly Berries", 0.67, 1 },
|
|
{"macadamia", "Macadamia tetraphylla: Prickly Macadamia", 0.75, "macadamia", "macadamia", "Macadamia Nuts", 0.67, 1 },
|
|
{"mangrove_apple", "Sonneratia caseolaris: Mangrove Apple", 0.75, "mangrove_apple", "mangrove_apple", "Mangrove Apple", 0.67, 1 },
|
|
{"merbau", "Intsia bijuga: Merbau", 1.0, "merbau", nil, nil, nil, nil },
|
|
{"marri", "Corymbia calophylla: Marri", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"moreton_bay_fig", "Ficus macrophylla: Moreton Bay Fig", 1.0, "fig", "moreton_bay_fig", "Moreton Bay Fig", 0.67, 1 },
|
|
{"mulga", "Acacia aneura: Mulga", 0.5, "acacia", nil, nil, nil, nil },
|
|
{"paperbark", "Melaleuca quinquenervia: Paper Bark", 1.0, "melaleuca", nil, nil, nil, nil },
|
|
{"quandong", "Santalum acuminatum: Desert Quandong", 0.25, "quandong", "quandong", "Desert Quandong", 0.5, 1 },
|
|
{"red_bottlebrush", "Melaleuca citrina: Red Bottlebrush", 0.33, "melaleuca", nil, nil, nil, nil },
|
|
{"river_oak", "Casuarina cunninghamiana: River Oak", 1.0, "acacia", nil, nil, nil, nil },
|
|
{"river_red_gum", "Eucalyptus camaldulensis: River Red Gum", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"rottnest_island_pine", "Callitris preissii: Rottnest Island Pine", 0.75, "pine", nil, nil, nil, nil },
|
|
{"scribbly_gum", "Eucalyptus haemastoma: Scribbly Gum", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"shoestring_acacia", "Acacia stenophylla: Shoestring Acacia", 1.0, "acacia", nil, nil, nil, nil },
|
|
{"snow_gum", "Eucalyptus pauciflora: Snow Gum", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"southern_sassafras", "Atherosperma moschatum: Southern Sassafras", 1, "pine", nil, nil, nil, nil },
|
|
{"stilted_mangrove", "Rhizophora stylosa: Stilted Mangrove", 0.25, "mangrove", nil, nil, nil, nil },
|
|
{"sugar_gum", "Eucalyptus cladocalyx: Sugar Gum", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"swamp_bloodwood", "Corymbia ptychocarpa: Swamp Bloodwood", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"swamp_gum", "Eucalyptus regnans: Swamp Gum", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"swamp_paperbark", "Melaleuca rhaphiophylla: Swamp Paperbark", 0.5, "melaleuca", nil, nil, nil, nil },
|
|
{"tasmanian_myrtle", "Lophozonia cunninghamii: Tasmanian Myrtle", 1.0, "myrtle", nil, nil, nil, nil },
|
|
{"tea_tree", "Melaleuca alternifolia: Tea", 0.5, "melaleuca", nil, nil, nil, nil },
|
|
{"white_box", "Eucalyptus albens: White Box", 1.0, "eucalyptus", nil, nil, nil, nil },
|
|
{"wirewood", "Acacia coriacea: Wirewood", 0.33, "acacia", nil, nil, nil, nil },
|
|
}
|
|
|
|
for i in ipairs(aus.treelist) do
|
|
local treename = aus.treelist[i][1]
|
|
local treedesc = aus.treelist[i][2]
|
|
local treetrunk_dia = aus.treelist[i][3]
|
|
local treespaling = aus.treelist[i][4]
|
|
local treefruit = aus.treelist[i][5]
|
|
local treefruit_desc = aus.treelist[i][6]
|
|
local treefruit_scale = aus.treelist[i][7]
|
|
local treefruit_health = aus.treelist[i][8]
|
|
|
|
-- tree
|
|
local node_d = {
|
|
description = treedesc.. " Tree",
|
|
tiles = {
|
|
"aus_"..treename.."_treetop.png",
|
|
"aus_"..treename.."_treetop.png",
|
|
"aus_"..treename.."_tree.png"
|
|
},
|
|
paramtype2 = "facedir",
|
|
is_ground_content = true,
|
|
groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
|
|
sounds = default.node_sound_wood_defaults(),
|
|
on_place = minetest.rotate_node,
|
|
}
|
|
-- Some trunks aren't a meter wide.
|
|
if treetrunk_dia and treetrunk_dia ~= 1 then
|
|
local radius = treetrunk_dia / 2
|
|
node_d.paramtype = "light"
|
|
node_d.drawtype = "nodebox"
|
|
node_d.node_box = { type = "fixed",
|
|
fixed = { {-radius, -0.5, -radius, radius, 0.5, radius}, }
|
|
}
|
|
node_d.selection_box = { type = "fixed",
|
|
fixed = { {-radius, -0.5, -radius, radius, 0.5, radius}, }
|
|
}
|
|
end
|
|
minetest.register_node("australia:"..treename.."_tree", node_d)
|
|
|
|
-- wood
|
|
minetest.register_node("australia:"..treename.."_wood", {
|
|
description = treedesc.." Wood Planks",
|
|
tiles = {"aus_"..treename.."_wood.png"},
|
|
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
|
|
sounds = default.node_sound_wood_defaults(),
|
|
})
|
|
|
|
-- leaves
|
|
minetest.register_node("australia:"..treename.."_leaves", {
|
|
description = treedesc.." Leaves",
|
|
drawtype = "allfaces_optional",
|
|
visual_scale = 1.3,
|
|
tiles = { "aus_"..treename.."_leaves.png"},
|
|
paramtype = "light",
|
|
is_ground_content = false,
|
|
groups = {snappy=3,flammable=2,leaves=1},
|
|
drop = {
|
|
max_items = 1,
|
|
items = {
|
|
{items = {"australia:"..treename.."_sapling"}, rarity = 50 },
|
|
{items = {"australia:"..treename.."_leaves"} }
|
|
}
|
|
},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
})
|
|
|
|
-- sapling
|
|
minetest.register_node("australia:"..treename.."_sapling", {
|
|
description = treedesc.." Sapling",
|
|
drawtype = "plantlike",
|
|
visual_scale = 1.0,
|
|
tiles = {"aus_"..treespaling.."_sapling.png"},
|
|
inventory_image = "aus_"..treespaling.."_sapling.png",
|
|
wield_image = "aus_"..treespaling.."_sapling.png",
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
is_ground_content = false,
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
|
|
},
|
|
groups = {snappy=2,dig_immediate=3,flammable=2,attached_node=1},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
})
|
|
|
|
-- fruit, if applicable
|
|
if treefruit then
|
|
minetest.register_node("australia:"..treefruit.."", {
|
|
description = treefruit_desc,
|
|
drawtype = "plantlike",
|
|
visual_scale = treefruit_scale,
|
|
tiles = { "aus_"..treefruit..".png" },
|
|
inventory_image = "aus_"..treefruit..".png",
|
|
wield_image = "aus_"..treefruit..".png",
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
is_ground_content = false,
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.1, -0.5, -0.1, 0.1, -0.25, 0.1},
|
|
},
|
|
groups = {fleshy=3,dig_immediate=3,flammable=2,leafdecay=3,leafdecay_drop=1},
|
|
-- Fruit makes you healthy.
|
|
on_use = minetest.item_eat(treefruit_health),
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
after_place_node = function(pos, placer, itemstack)
|
|
if placer:is_player() then
|
|
minetest.set_node(pos, {name="australia:"..treefruit.."", param2=1})
|
|
end
|
|
end,
|
|
})
|
|
end
|
|
|
|
-- fence
|
|
default.register_fence("australia:fence_"..treename.."_wood", {
|
|
description = treedesc.." Fence",
|
|
texture = "aus_"..treename.."_wood.png",
|
|
material = "australia:"..treename.."_wood",
|
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
|
sounds = default.node_sound_wood_defaults(),
|
|
})
|
|
end
|
|
|
|
|
|
--
|
|
-- Ores
|
|
--
|
|
|
|
|
|
--
|
|
-- Plantlife (non-cubic)
|
|
--
|
|
|
|
-- Acrostichum speciosum: Mangrove Fern
|
|
minetest.register_node("australia:mangrove_fern", {
|
|
description = "Acrostichum speciosum: Mangrove Fern",
|
|
drawtype = "plantlike",
|
|
waving = 1,
|
|
visual_scale = 1.0,
|
|
tiles = {"aus_mangrove_fern.png"},
|
|
inventory_image = "aus_mangrove_fern.png",
|
|
wield_image = "aus_mangrove_fern.png",
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
buildable_to = false,
|
|
groups = {snappy = 3, flammable = 2, flora = 1, attached_node = 1},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5},
|
|
},
|
|
})
|
|
|
|
-- Crinum pedunculatum: Mangrove Lily
|
|
minetest.register_node("australia:mangrove_lily", {
|
|
description = "Crinum pedunculatum: Mangrove Lily",
|
|
drawtype = "plantlike",
|
|
waving = 1,
|
|
visual_scale = 1.0,
|
|
tiles = {"aus_mangrove_lily.png"},
|
|
inventory_image = "aus_mangrove_lily.png",
|
|
wield_image = "aus_mangrove_lily.png",
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
buildable_to = false,
|
|
groups = {snappy = 3, flammable = 2, flora = 1, attached_node = 1},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5},
|
|
},
|
|
})
|
|
|
|
-- Nypa fruticans: Mangrove Palm
|
|
minetest.register_node("australia:mangrove_palm_trunk", {
|
|
description = "Nypa fruticans: Mangrove Fern",
|
|
tiles = {"aus_mangrove_palm_trunk.png", "aus_mangrove_mud.png",
|
|
"aus_mangrove_palm_trunk.png"},
|
|
inventory_image = "aus_mangrove_palm_trunk.png",
|
|
wield_image = "aus_mangrove_palm_trunk.png",
|
|
paramtype = "light",
|
|
paramtype2 = "facedir",
|
|
groups = {choppy = 2, flammable = 2, flora = 1, attached_node = 1, oddly_breakable_by_hand = 1},
|
|
sounds = default.node_sound_wood_defaults(),
|
|
on_place = minetest.rotate_node,
|
|
-- drawtype = "nodebox",
|
|
-- node_box = {
|
|
-- type = "fixed",
|
|
-- fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
|
-- },
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
|
},
|
|
})
|
|
|
|
minetest.register_node("australia:mangrove_palm_leaf_bot", {
|
|
description = "Nypa fruticans: Mangrove Fern",
|
|
tiles = {"aus_mangrove_palm_leaf_bot.png", "aus_mangrove_palm_leaf_bot.png",
|
|
"aus_mangrove_palm_leaf_bot.png"},
|
|
inventory_image = "aus_mangrove_palm_leaf_bot.png",
|
|
wield_image = "aus_mangrove_palm_leaf_bot.png",
|
|
paramtype = "light",
|
|
paramtype2 = "facedir",
|
|
groups = {snappy = 3, flammable = 2, flora = 1, attached_node = 1},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
drawtype = "nodebox",
|
|
nodebox = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
|
},
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
|
},
|
|
})
|
|
|
|
minetest.register_node("australia:mangrove_palm_leaf_top", {
|
|
description = "Nypa fruticans: Mangrove Fern",
|
|
tiles = {"aus_mangrove_palm_leaf_top.png", "aus_mangrove_palm_leaf_top.png",
|
|
"aus_mangrove_palm_leaf_top.png"},
|
|
inventory_image = "aus_mangrove_palm_leaf_top.png",
|
|
wield_image = "aus_mangrove_palm_leaf_top.png",
|
|
paramtype = "light",
|
|
paramtype2 = "facedir",
|
|
groups = {snappy = 3, flammable = 2, flora = 1, attached_node = 1},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
drawtype = "nodebox",
|
|
nodebox = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
|
},
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
|
},
|
|
})
|
|
|
|
-- Banksia dallanneyi: Couch Honeypot
|
|
minetest.register_node("australia:couch_honeypot", {
|
|
description = "Banksia dallanneyi: Couch Honeypot",
|
|
drawtype = "plantlike",
|
|
waving = 0,
|
|
visual_scale = 1.0,
|
|
tiles = {"aus_couch_honeypot.png"},
|
|
inventory_image = "aus_couch_honeypot.png",
|
|
wield_image = "aus_couch_honeypot.png",
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
buildable_to = false,
|
|
groups = {snappy = 3, flammable = 2, flora = 1, attached_node = 1},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5},
|
|
},
|
|
})
|
|
|
|
-- Crinum flaccidum: Darling Lily
|
|
minetest.register_node("australia:darling_lily", {
|
|
description = "Crinum flaccidum: Darling Lily",
|
|
drawtype = "plantlike",
|
|
waving = 1,
|
|
visual_scale = 1.0,
|
|
tiles = {"aus_darling_lily.png"},
|
|
inventory_image = "aus_darling_lily.png",
|
|
wield_image = "aus_darling_lily.png",
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
buildable_to = false,
|
|
groups = {snappy = 3, flammable = 2, flora = 1, attached_node = 1},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5},
|
|
},
|
|
})
|
|
|
|
-- Astrebla pectinata: Mitchell Grass
|
|
minetest.register_node("australia:mitchell_grass", {
|
|
description = "Astrebla pectinata: Mitchell Grass",
|
|
drawtype = "plantlike",
|
|
waving = 0,
|
|
visual_scale = 1.0,
|
|
tiles = {"aus_mitchell_grass.png"},
|
|
inventory_image = "aus_mitchell_grass.png",
|
|
wield_image = "aus_mitchell_grass.png",
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
buildable_to = false,
|
|
groups = {snappy = 3, flammable = 2, flora = 1, attached_node = 1},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5},
|
|
},
|
|
})
|
|
|
|
-- Atriplex nummularia: Saltbush
|
|
minetest.register_node("australia:saltbush", {
|
|
description = "Atriplex nummularia: Saltbush",
|
|
drawtype = "plantlike",
|
|
waving = 0,
|
|
visual_scale = 1.4,
|
|
tiles = {"aus_saltbush.png"},
|
|
inventory_image = "aus_saltbush.png",
|
|
wield_image = "aus_saltbush.png",
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
buildable_to = false,
|
|
groups = {snappy = 3, flammable = 2, flora = 1, attached_node = 1},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5},
|
|
},
|
|
})
|
|
|
|
-- Olearia pannosa: Silver Daisy
|
|
minetest.register_node("australia:silver_daisy", {
|
|
description = "Olearia pannosa: Silver Daisy",
|
|
drawtype = "plantlike",
|
|
waving = 1,
|
|
visual_scale = 1.0,
|
|
tiles = {"aus_silver_daisy.png"},
|
|
inventory_image = "aus_silver_daisy.png",
|
|
wield_image = "aus_silver_daisy.png",
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
buildable_to = false,
|
|
groups = {snappy = 3, flammable = 2, flora = 1, attached_node = 1},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5},
|
|
},
|
|
})
|
|
|
|
-- Triodia longiceps: Spinifex
|
|
minetest.register_node("australia:spinifex", {
|
|
description = "Triodia longiceps: Spinifex",
|
|
drawtype = "plantlike",
|
|
waving = 0,
|
|
visual_scale = 1.2,
|
|
tiles = {"aus_spinifex.png"},
|
|
inventory_image = "aus_spinifex.png",
|
|
wield_image = "aus_spinifex.png",
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
buildable_to = false,
|
|
groups = {snappy = 3, flammable = 2, flora = 1, attached_node = 1},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5},
|
|
},
|
|
})
|
|
|
|
-- Telopea speciosissima: Waratah
|
|
minetest.register_node("australia:waratah", {
|
|
description = "Telopea speciosissima: Waratah",
|
|
drawtype = "allfaces_optional",
|
|
visual_scale = 1.0,
|
|
tiles = { "aus_waratah.png"},
|
|
inventory_image = { "aus_waratah.png"},
|
|
wield_image = { "aus_waratah.png"},
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
is_ground_content = true,
|
|
groups = {snappy = 3, flammable = 2, flora = 1, attached_node = 1},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
})
|
|
|
|
-- Acropora cervicornis: Staghorn Coral (yellow)
|
|
minetest.register_node("australia:staghorn_coral_yellow", {
|
|
description = "Acropora cervicornis: Staghorn Coral",
|
|
drawtype = "plantlike",
|
|
waving = 0,
|
|
visual_scale = 1.0,
|
|
tiles = {"aus_staghorn_coral_yellow.png"},
|
|
inventory_image = "aus_staghorn_coral_yellow.png",
|
|
wield_image = "aus_staghorn_coral_yellow.png",
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
buildable_to = false,
|
|
groups = {cracky = 3, stone=1, attached_node=1, sea=1},
|
|
sounds = default.node_sound_stone_defaults(),
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5},
|
|
},
|
|
})
|
|
|
|
-- Acropora cervicornis: Staghorn Coral (purple)
|
|
minetest.register_node("australia:staghorn_coral_purple", {
|
|
description = "Acropora cervicornis: Staghorn Coral",
|
|
drawtype = "plantlike",
|
|
waving = 0,
|
|
visual_scale = 1.0,
|
|
tiles = {"aus_staghorn_coral_purple.png"},
|
|
inventory_image = "aus_staghorn_coral_purple.png",
|
|
wield_image = "aus_staghorn_coral_purple.png",
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
buildable_to = false,
|
|
groups = {cracky = 3, stone=1, attached_node=1, sea=1},
|
|
sounds = default.node_sound_stone_defaults(),
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5},
|
|
},
|
|
})
|
|
|
|
-- Acropora cervicornis: Staghorn Coral (pink)
|
|
minetest.register_node("australia:staghorn_coral_pink", {
|
|
description = "Acropora cervicornis: Staghorn Coral",
|
|
drawtype = "plantlike",
|
|
waving = 0,
|
|
visual_scale = 1.0,
|
|
tiles = {"aus_staghorn_coral_pink.png"},
|
|
inventory_image = "aus_staghorn_coral_pink.png",
|
|
wield_image = "aus_staghorn_coral_pink.png",
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
buildable_to = false,
|
|
groups = {cracky = 3, stone=1, attached_node=1, sea=1},
|
|
sounds = default.node_sound_stone_defaults(),
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5},
|
|
},
|
|
})
|
|
|
|
-- Acropora cervicornis: Staghorn Coral (blue)
|
|
minetest.register_node("australia:staghorn_coral_blue", {
|
|
description = "Acropora cervicornis: Staghorn Coral",
|
|
drawtype = "plantlike",
|
|
waving = 0,
|
|
visual_scale = 1.0,
|
|
tiles = {"aus_staghorn_coral_blue.png"},
|
|
inventory_image = "aus_staghorn_coral_blue.png",
|
|
wield_image = "aus_staghorn_coral_blue.png",
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
buildable_to = false,
|
|
groups = {cracky = 3, stone=1, attached_node=1, sea=1},
|
|
sounds = default.node_sound_stone_defaults(),
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5},
|
|
},
|
|
})
|
|
|
|
|
|
--
|
|
-- Liquids
|
|
--
|
|
|
|
minetest.register_node("australia:muddy_river_water_source", {
|
|
description = "Muddy river water source",
|
|
drawtype = "liquid",
|
|
tiles = {
|
|
{
|
|
name="aus_muddy_river_water_flowing.png",
|
|
animation = {
|
|
type = "vertical_frames",
|
|
aspect_w = 16,
|
|
aspect_h = 16,
|
|
length = 2.0,
|
|
},
|
|
},
|
|
},
|
|
special_tiles = {
|
|
{
|
|
name="aus_muddy_river_water_flowing.png",
|
|
animation = {
|
|
type = "vertical_frames",
|
|
aspect_w = 16,
|
|
aspect_h = 16,
|
|
length = 2.0,
|
|
},
|
|
backface_culling = false,
|
|
},
|
|
},
|
|
alpha = 160,
|
|
paramtype = "light",
|
|
walkable = false,
|
|
pointable = false,
|
|
diggable = false,
|
|
buildable_to = true,
|
|
is_ground_content = false,
|
|
drop = "",
|
|
drowning = 1,
|
|
liquidtype = "source",
|
|
liquid_alternative_flowing = "australia:muddy_river_water_flowing",
|
|
liquid_alternative_source = "australia:muddy_river_water_source",
|
|
liquid_viscosity = 1,
|
|
liquid_renewable = false,
|
|
liquid_range = 2,
|
|
post_effect_color = {a = 64, r = 200, g = 150, b = 100},
|
|
groups = {water = 3, liquid = 3, puts_out_fire = 1},
|
|
})
|
|
|
|
minetest.register_node("australia:muddy_river_water_flowing", {
|
|
description = "Flowing muddy river water",
|
|
drawtype = "flowingliquid",
|
|
tiles = {"aus_muddy_river_water_source.png"},
|
|
special_tiles = {
|
|
{
|
|
image="aus_muddy_river_water_flowing.png",
|
|
backface_culling = false,
|
|
animation = {
|
|
type = "vertical_frames",
|
|
aspect_w = 16,
|
|
aspect_h = 16,
|
|
length = 0.8,
|
|
},
|
|
},
|
|
{
|
|
image="aus_muddy_river_water_flowing.png",
|
|
backface_culling = true,
|
|
animation = {
|
|
type = "vertical_frames",
|
|
aspect_w = 16,
|
|
aspect_h = 16,
|
|
length = 0.8,
|
|
},
|
|
},
|
|
},
|
|
alpha = 160,
|
|
paramtype = "light",
|
|
paramtype2 = "flowingliquid",
|
|
walkable = false,
|
|
pointable = false,
|
|
diggable = false,
|
|
buildable_to = true,
|
|
is_ground_content = false,
|
|
drop = "",
|
|
drowning = 1,
|
|
liquidtype = "flowing",
|
|
liquid_alternative_flowing = "australia:muddy_river_water_flowing",
|
|
liquid_alternative_source = "australia:muddy_river_water_source",
|
|
liquid_viscosity = 1,
|
|
liquid_renewable = false,
|
|
liquid_range = 2,
|
|
post_effect_color = {a = 64, r = 200, g = 150, b = 100},
|
|
groups = {water = 3, liquid = 3, puts_out_fire = 1,
|
|
not_in_creative_inventory = 1},
|
|
})
|
|
|
|
|
|
--
|
|
-- Tools / "Advanced" crafting / Non-"natural"
|
|
--
|
|
|
|
|
|
|
|
--
|
|
-- Misc
|
|
--
|
|
|
|
minetest.register_node("australia:moss", {
|
|
description = "Moss",
|
|
drawtype = "nodebox",
|
|
tiles = {"aus_moss.png"},
|
|
inventory_image = "aus_moss.png",
|
|
wield_image = "aus_moss.png",
|
|
paramtype = "light",
|
|
paramtype2 = "facedir",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
buildable_to = false,
|
|
node_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.46875, 0.5}
|
|
},
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}
|
|
},
|
|
groups = {snappy = 3,flammable = 3},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
})
|
|
|
|
minetest.register_node("australia:moss_with_fungus", {
|
|
description = "Moss with Fungus",
|
|
drawtype = "nodebox",
|
|
tiles = {"aus_moss_fungus.png"},
|
|
inventory_image = "aus_moss_fungus.png",
|
|
wield_image = "aus_moss_fungus.png",
|
|
paramtype = "light",
|
|
paramtype2 = "facedir",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
buildable_to = false,
|
|
node_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.46875, 0.5}
|
|
},
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}
|
|
},
|
|
groups = {snappy = 3,flammable = 3},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
})
|