maptools/default_nodes.lua

282 lines
7.4 KiB
Lua
Raw Normal View History

2015-01-11 22:20:57 +01:00
--[[
2015-01-12 17:46:30 +01:00
Map Tools: unbreakable default nodes
2015-01-11 22:20:57 +01:00
2020-01-01 04:10:24 +01:00
Copyright © 2012-2020 Hugo Locurcio and contributors.
2015-01-11 22:20:57 +01:00
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local S = maptools.S
local register_node = maptools.register_node
2014-12-27 20:31:31 +01:00
maptools.creative = maptools.config["hide_from_creative_inventory"]
2014-07-27 12:38:02 +02:00
register_node("maptools:stone", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Stone"),
tiles = {"default_stone.png"},
sounds = default.node_sound_stone_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:stonebrick", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Stone Brick"),
tiles = {"default_stone_brick.png"},
sounds = default.node_sound_stone_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:tree", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Tree"),
tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
2014-07-27 12:38:02 +02:00
})
register_node("maptools:jungletree", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Jungle Tree"),
tiles = {
"default_jungletree_top.png",
"default_jungletree_top.png",
"default_jungletree.png",
},
2014-07-27 12:38:02 +02:00
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
2014-07-27 12:38:02 +02:00
})
register_node("maptools:cactus", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Cactus"),
tiles = {"default_cactus_top.png", "default_cactus_top.png", "default_cactus_side.png"},
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
2014-07-27 12:38:02 +02:00
})
register_node("maptools:papyrus", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Papyrus"),
drawtype = "plantlike",
tiles = {"default_papyrus.png"},
inventory_image = "default_papyrus.png",
wield_image = "default_papyrus.png",
walkable = false,
paramtype = "light",
sunlight_propagates = true,
selection_box = {
type = "fixed",
fixed = {-0.375, -0.5, -0.375, 0.375, 0.5, 0.375}
},
sounds = default.node_sound_leaves_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:dirt", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Dirt"),
tiles = {"default_dirt.png"},
sounds = default.node_sound_dirt_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:wood", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Wooden Planks"),
tiles = {"default_wood.png"},
sounds = default.node_sound_wood_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:junglewood", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Junglewood Planks"),
tiles = {"default_junglewood.png"},
sounds = default.node_sound_wood_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:glass", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Glass"),
drawtype = "glasslike",
tiles = {"default_glass.png"},
paramtype = "light",
sunlight_propagates = true,
sounds = default.node_sound_glass_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:leaves", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Leaves"),
drawtype = "allfaces_optional",
tiles = {"default_leaves.png"},
paramtype = "light",
sounds = default.node_sound_leaves_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:sand", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Sand"),
tiles = {"default_sand.png"},
sounds = default.node_sound_sand_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:gravel", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Gravel"),
tiles = {"default_gravel.png"},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_gravel_footstep", gain=0.35},
dug = {name="default_gravel_footstep", gain=0.6},
})
2014-07-27 12:38:02 +02:00
})
register_node("maptools:clay", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Clay"),
tiles = {"default_clay.png"},
sounds = default.node_sound_dirt_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:desert_sand", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Desert Sand"),
tiles = {"default_desert_sand.png"},
sounds = default.node_sound_sand_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:sandstone", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Sandstone"),
tiles = {"default_sandstone.png"},
sounds = default.node_sound_stone_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:sandstone_brick", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Sandstone Brick"),
tiles = {"default_sandstone_brick.png"},
sounds = default.node_sound_stone_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:desert_stone", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Desert Stone"),
tiles = {"default_desert_stone.png"},
sounds = default.node_sound_stone_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:desert_cobble", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Desert Cobble"),
tiles = {"default_desert_cobble.png"},
sounds = default.node_sound_stone_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:desert_stonebrick", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Desert Stone Brick"),
tiles = {"default_desert_stone_brick.png"},
sounds = default.node_sound_stone_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:grass", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Dirt with Grass"),
tiles = {
"default_grass.png",
"default_dirt.png",
"default_dirt.png^default_grass_side.png",
},
2014-07-27 12:38:02 +02:00
paramtype2 = "facedir",
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain = 0.4},
})
2014-07-27 12:38:02 +02:00
})
register_node("maptools:fullgrass", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Full Grass"),
tiles = {"default_grass.png"},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_grass_footstep", gain=0.4},
})
2014-07-27 12:38:02 +02:00
})
for slab_num = 1,3,1 do
register_node("maptools:slab_grass_" .. slab_num * 4, {
2014-07-27 12:38:02 +02:00
description = S("Grass Slab"),
tiles = {
"default_grass.png",
"default_dirt.png",
"default_dirt.png^maptools_grass_side_" .. slab_num * 4 .. ".png",
},
2014-07-27 12:38:02 +02:00
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5 + slab_num * 0.25, 0.5},
},
sunlight_propagates = true,
paramtype = "light",
paramtype2 = "facedir",
sounds = default.node_sound_dirt_defaults(
{footstep = {name="default_grass_footstep", gain = 0.4}}
)
2014-07-27 12:38:02 +02:00
})
end
register_node("maptools:cobble", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Cobblestone"),
tiles = {"default_cobble.png"},
sounds = default.node_sound_stone_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:mossycobble", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Mossy Cobblestone"),
tiles = {"default_mossycobble.png"},
sounds = default.node_sound_stone_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:brick", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Brick"),
tiles = {"default_brick.png"},
sounds = default.node_sound_stone_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:coalblock", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Coal Block"),
tiles = {"default_coal_block.png"},
sounds = default.node_sound_stone_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:steelblock", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Steel Block"),
tiles = {"default_steel_block.png"},
sounds = default.node_sound_stone_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:goldblock", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Gold Block"),
tiles = {"default_gold_block.png"},
sounds = default.node_sound_stone_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:copperblock", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Copper Block"),
tiles = {"default_copper_block.png"},
sounds = default.node_sound_stone_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:bronzeblock", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Bronze Block"),
tiles = {"default_bronze_block.png"},
sounds = default.node_sound_stone_defaults()
2014-07-27 12:38:02 +02:00
})
register_node("maptools:diamondblock", {
2014-07-27 12:38:02 +02:00
description = S("Unbreakable Diamond Block"),
2015-01-20 17:29:25 +01:00
tiles = {"default_diamond_block.png"},
sounds = default.node_sound_stone_defaults()
2014-07-27 12:38:02 +02:00
})
2014-08-03 19:03:54 +02:00
-- Farming:
register_node("maptools:soil_wet", {
2014-08-03 19:03:54 +02:00
description = "Wet Soil",
tiles = {
"default_dirt.png^farming_soil_wet.png",
"default_dirt.png^farming_soil_wet_side.png",
},
groups = {
soil = 3,
wet = 1,
grassland = 1,
},
sounds = default.node_sound_dirt_defaults()
2014-08-03 19:03:54 +02:00
})
register_node("maptools:desert_sand_soil_wet", {
2014-08-03 19:03:54 +02:00
description = "Wet Desert Sand Soil",
tiles = {"farming_desert_sand_soil_wet.png", "farming_desert_sand_soil_wet_side.png"},
groups = {
soil = 3,
wet = 1,
desert = 1,
},
sounds = default.node_sound_sand_defaults()
2014-08-03 19:03:54 +02:00
})