Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
3a8863c32f | |||
|
ae65c9c5cb | ||
|
fea7db99b6 |
@ -1,3 +0,0 @@
|
|||||||
default
|
|
||||||
stairs
|
|
||||||
wool
|
|
2
init.lua
2
init.lua
@ -55,3 +55,5 @@ minetest.register_tool("multitest:scraper", {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.log("action", "[multitest] loaded.")
|
||||||
|
5
mod.conf
Normal file
5
mod.conf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
name = multitest
|
||||||
|
title = Multitest
|
||||||
|
description = Adds various nodes
|
||||||
|
depends = default,stairs,wool
|
||||||
|
optional_depends = moreblocks
|
388
nodes.lua
388
nodes.lua
@ -1,187 +1,201 @@
|
|||||||
-- nodes
|
-- nodes
|
||||||
minetest.register_node("multitest:rubberblock", {
|
minetest.register_node("multitest:rubberblock", {
|
||||||
description = "Rubber Block",
|
description = "Rubber Block",
|
||||||
tiles = {"multitest_rubberblock.png"},
|
tiles = {"multitest_rubberblock.png"},
|
||||||
groups = {oddly_breakable_by_hand=5,crumbly=3},
|
groups = {oddly_breakable_by_hand=5,crumbly=3},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("multitest:blackstone", {
|
minetest.register_node("multitest:blackstone", {
|
||||||
description = "Blackstone",
|
description = "Blackstone",
|
||||||
tiles = {"multitest_blackstone.png"},
|
tiles = {"multitest_blackstone.png"},
|
||||||
groups = {cracky=3, stone=1},
|
groups = {cracky=3, stone=1},
|
||||||
drop = 'multitest:blackcobble',
|
drop = 'multitest:blackcobble',
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("multitest:blackcobble", {
|
minetest.register_node("multitest:blackcobble", {
|
||||||
description = "Black Cobblestone",
|
description = "Black Cobblestone",
|
||||||
tiles = {"multitest_blackcobble.png"},
|
tiles = {"multitest_blackcobble.png"},
|
||||||
groups = {cracky=2, stone=2},
|
groups = {cracky=2, stone=2},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("multitest:blackstone_paved", {
|
minetest.register_node("multitest:blackstone_paved", {
|
||||||
description = "Paved Blackstone",
|
description = "Paved Blackstone",
|
||||||
tiles = {"multitest_blackstone_paved.png"},
|
tiles = {"multitest_blackstone_paved.png"},
|
||||||
groups = {cracky=2, stone=1},
|
groups = {cracky=2, stone=1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("multitest:blackstone_paved", {
|
minetest.register_node("multitest:blackstone_paved", {
|
||||||
description = "Paved Blackstone",
|
description = "Paved Blackstone",
|
||||||
tiles = {"multitest_blackstone_paved.png"},
|
tiles = {"multitest_blackstone_paved.png"},
|
||||||
groups = {cracky=2, stone=1},
|
groups = {cracky=2, stone=1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("multitest:blackstone_brick", {
|
minetest.register_node("multitest:blackstone_brick", {
|
||||||
description = "Blackstone Bricks",
|
description = "Blackstone Bricks",
|
||||||
tiles = {"multitest_blackstone_brick.png"},
|
tiles = {"multitest_blackstone_brick.png"},
|
||||||
groups = {cracky=2, stone=1},
|
groups = {cracky=2, stone=1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
--[[ maintenant dans farming redo
|
--[[ maintenant dans farming redo
|
||||||
minetest.register_node("multitest:hayblock", {
|
minetest.register_node("multitest:hayblock", {
|
||||||
description = "Hay Bale",
|
description = "Hay Bale",
|
||||||
tiles = {"multitest_hayblock_top.png", "multitest_hayblock_top.png", "multitest_hayblock.png"},
|
tiles = {"multitest_hayblock_top.png", "multitest_hayblock_top.png", "multitest_hayblock.png"},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=1,flammable=2,crumbly=1,cracky=4,oddly_breakable_by_hand=2},
|
groups = {snappy=1,flammable=2,crumbly=1,cracky=4,oddly_breakable_by_hand=2},
|
||||||
sounds = default.node_sound_sand_defaults(),
|
sounds = default.node_sound_sand_defaults(),
|
||||||
on_place = minetest.rotate_node
|
on_place = minetest.rotate_node
|
||||||
})
|
})
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
minetest.register_node("multitest:checkered_floor", {
|
minetest.register_node("multitest:checkered_floor", {
|
||||||
description = "Checkered Floor",
|
description = "Checkered Floor",
|
||||||
tiles = {"multitest_checkered_floor.png"},
|
tiles = {"multitest_checkered_floor.png"},
|
||||||
groups = {cracky=2, oddly_breakable_by_hand=4},
|
groups = {cracky=2, oddly_breakable_by_hand=4},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
minetest.register_node("multitest:lamp", {
|
minetest.register_node("multitest:lamp", {
|
||||||
description = "Lamp",
|
description = "Lamp",
|
||||||
tiles = {"multitest_lamp.png"},
|
tiles = {"multitest_lamp.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
light_source = LIGHT_MAX-1,
|
light_source = LIGHT_MAX-1,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
]]
|
]]
|
||||||
minetest.register_alias("multitest:lamp", "lantern:lantern")
|
|
||||||
|
minetest.register_alias("multitest:lamp", "lantern:lantern")
|
||||||
minetest.register_node("multitest:andesite", {
|
|
||||||
description = "Andesite",
|
minetest.register_node("multitest:andesite", {
|
||||||
tiles = {"multitest_andesite.png"},
|
description = "Andesite",
|
||||||
groups = {cracky=3,},
|
tiles = {"multitest_andesite.png"},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
groups = {cracky=3,},
|
||||||
})
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
minetest.register_node("multitest:diorite", {
|
|
||||||
description = "Diorite",
|
minetest.register_node("multitest:diorite", {
|
||||||
tiles = {"multitest_diorite.png"},
|
description = "Diorite",
|
||||||
groups = {cracky=3,},
|
tiles = {"multitest_diorite.png"},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
groups = {cracky=3,},
|
||||||
})
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
minetest.register_node("multitest:granite", {
|
|
||||||
description = "Granite",
|
minetest.register_node("multitest:granite", {
|
||||||
tiles = {"multitest_granite.png"},
|
description = "Granite",
|
||||||
groups = {cracky=3,},
|
tiles = {"multitest_granite.png"},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
groups = {cracky=3,},
|
||||||
})
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
minetest.register_node("multitest:andesite_smooth", {
|
|
||||||
description = "Smooth Andesite",
|
minetest.register_node("multitest:andesite_smooth", {
|
||||||
tiles = {"multitest_andesite_smooth.png"},
|
description = "Smooth Andesite",
|
||||||
groups = {cracky=3,},
|
tiles = {"multitest_andesite_smooth.png"},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
groups = {cracky=3,},
|
||||||
})
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
minetest.register_node("multitest:diorite_smooth", {
|
|
||||||
description = "Smooth Diorite",
|
minetest.register_node("multitest:diorite_smooth", {
|
||||||
tiles = {"multitest_diorite_smooth.png"},
|
description = "Smooth Diorite",
|
||||||
groups = {cracky=3,},
|
tiles = {"multitest_diorite_smooth.png"},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
groups = {cracky=3,},
|
||||||
})
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
minetest.register_node("multitest:granite_smooth", {
|
|
||||||
description = "Smooth Granite",
|
minetest.register_node("multitest:granite_smooth", {
|
||||||
tiles = {"multitest_granite_smooth.png"},
|
description = "Smooth Granite",
|
||||||
groups = {cracky=3,},
|
tiles = {"multitest_granite_smooth.png"},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
groups = {cracky=3,},
|
||||||
})
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
minetest.register_node("multitest:sandstone_carved", {
|
|
||||||
description = "Carved Sandstone",
|
minetest.register_node("multitest:sandstone_carved", {
|
||||||
tiles = {"multitest_sandstone_carved_top.png", "multitest_sandstone_carved_top.png", "multitest_sandstone_carved.png"},
|
description = "Carved Sandstone",
|
||||||
groups = {crumbly=2,cracky=4,},
|
tiles = {"multitest_sandstone_carved_top.png", "multitest_sandstone_carved_top.png", "multitest_sandstone_carved.png"},
|
||||||
sounds = default.node_sound_sand_defaults(),
|
groups = {crumbly=2,cracky=4,},
|
||||||
})
|
sounds = default.node_sound_sand_defaults(),
|
||||||
|
})
|
||||||
-- stairs:stair_blackstone
|
|
||||||
stairs.register_stair_and_slab("blackstone", "multitest:blackstone",
|
if minetest.get_modpath("moreblocks") then
|
||||||
{cracky=3, stone=1},
|
local modname = "multitest"
|
||||||
{"multitest_blackstone.png"},
|
local names = {"blackstone", "blackcobble", "blackstone_brick", "blackstone_paved"}
|
||||||
"Blackstone Stairs",
|
|
||||||
"Blackstone Slab", nil)
|
for _,name in ipairs(names) do
|
||||||
|
local nodename = modname..":"..name
|
||||||
stairs.register_stair_and_slab("blackcobble", "multitest:blackcobble",
|
local ndef = table.copy(minetest.registered_nodes[nodename])
|
||||||
{cracky=3, stone=1},
|
ndef.sunlight_propagates = true
|
||||||
{"multitest_blackcobble.png"},
|
ndef.place_param2 = nil
|
||||||
"Black Cobble Stairs",
|
stairsplus:register_all(modname, name, nodename, ndef)
|
||||||
"Black Cobble Slab", nil)
|
end
|
||||||
|
else
|
||||||
stairs.register_stair_and_slab("blackstone_bricks", "multitest:blackstone_brick",
|
-- stairs:stair_blackstone
|
||||||
{cracky=3, stone=1},
|
stairs.register_stair_and_slab("blackstone", "multitest:blackstone",
|
||||||
{"multitest_blackstone_brick.png"},
|
{cracky=3, stone=1},
|
||||||
"Blackstonestone brick Stairs",
|
{"multitest_blackstone.png"},
|
||||||
"Blackstone Brick Slab", nil)
|
"Blackstone Stairs",
|
||||||
|
"Blackstone Slab", nil)
|
||||||
stairs.register_stair_and_slab("blackstone_paved", "multitest:blackstone_paved",
|
|
||||||
{cracky=3, stone=1},
|
stairs.register_stair_and_slab("blackcobble", "multitest:blackcobble",
|
||||||
{"multitest_blackstone_paved.png"},
|
{cracky=3, stone=1},
|
||||||
"Paved Blackstone Stairs",
|
{"multitest_blackcobble.png"},
|
||||||
"Paved Blackstone Slab", nil)
|
"Black Cobble Stairs",
|
||||||
|
"Black Cobble Slab", nil)
|
||||||
-- others
|
|
||||||
for i, v in ipairs(multitest.colors) do
|
stairs.register_stair_and_slab("blackstone_bricks", "multitest:blackstone_brick",
|
||||||
minetest.register_node("multitest:carpet_"..v, {
|
{cracky=3, stone=1},
|
||||||
tiles = {"wool_"..v..".png"},
|
{"multitest_blackstone_brick.png"},
|
||||||
description = multitest.colornames[i].."Carpet",
|
"Blackstonestone brick Stairs",
|
||||||
groups = {oddly_breakable_by_hand=2,flammable=3},
|
"Blackstone Brick Slab", nil)
|
||||||
drawtype="nodebox",
|
|
||||||
paramtype = "light",
|
stairs.register_stair_and_slab("blackstone_paved", "multitest:blackstone_paved",
|
||||||
node_box = {
|
{cracky=3, stone=1},
|
||||||
type = "fixed",
|
{"multitest_blackstone_paved.png"},
|
||||||
fixed = {
|
"Paved Blackstone Stairs",
|
||||||
{-0.5, -0.5, -0.5, 0.5, -0.4, 0.5},
|
"Paved Blackstone Slab", nil)
|
||||||
}
|
end
|
||||||
}
|
|
||||||
})
|
-- others
|
||||||
end
|
for i, v in ipairs(multitest.colors) do
|
||||||
|
minetest.register_node("multitest:carpet_"..v, {
|
||||||
minetest.register_node("multitest:door_mat", {
|
tiles = {"wool_"..v..".png"},
|
||||||
description = "Door Mat",
|
description = multitest.colornames[i].."Carpet",
|
||||||
tiles = {"multitest_door_mat.png"},
|
groups = {oddly_breakable_by_hand=2,flammable=3},
|
||||||
inventory_image = "multitest_door_mat.png",
|
drawtype="nodebox",
|
||||||
wield_image = "multitest_door_mat.png",
|
paramtype = "light",
|
||||||
groups = {oddly_breakable_by_hand=2,flammable=3},
|
node_box = {
|
||||||
drawtype = "nodebox",
|
type = "fixed",
|
||||||
paramtype = "light",
|
fixed = {
|
||||||
paramtype2 = "facedir",
|
{-0.5, -0.5, -0.5, 0.5, -0.4, 0.5},
|
||||||
node_box = {
|
}
|
||||||
type = "fixed",
|
}
|
||||||
fixed = {
|
})
|
||||||
{-0.5, -0.5, -0.363675, 0.5, -0.454674, 0.426703},
|
end
|
||||||
}
|
|
||||||
}
|
minetest.register_node("multitest:door_mat", {
|
||||||
})
|
description = "Door Mat",
|
||||||
|
tiles = {"multitest_door_mat.png"},
|
||||||
minetest.register_node("multitest:sponge_block", {
|
inventory_image = "multitest_door_mat.png",
|
||||||
description = "Sponge Block (Decorative)",
|
wield_image = "multitest_door_mat.png",
|
||||||
tiles = {"multitest_sponge_block.png"},
|
groups = {oddly_breakable_by_hand=2,flammable=3},
|
||||||
groups = {oddly_breakable_by_hand=3,},
|
drawtype = "nodebox",
|
||||||
})
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.363675, 0.5, -0.454674, 0.426703},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("multitest:sponge_block", {
|
||||||
|
description = "Sponge Block (Decorative)",
|
||||||
|
tiles = {"multitest_sponge_block.png"},
|
||||||
|
groups = {oddly_breakable_by_hand=3,},
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user