Remplissage du dépôt.

This commit is contained in:
sys4-fr 2018-09-08 13:23:23 +02:00
commit 4e535eddd2
35 changed files with 547 additions and 0 deletions

14
craftitems.lua Normal file
View File

@ -0,0 +1,14 @@
minetest.register_craftitem("multitest:handle_grip", {
description = "Grip",
inventory_image = "multitest_handle_grip.png",
})
minetest.register_craftitem("multitest:rubber", {
description = "Rubber",
inventory_image = "multitest_rubber.png",
})
minetest.register_craftitem("multitest:rubber_raw", {
description = "Raw Rubber",
inventory_image = "multitest_rubber_raw.png",
})

280
crafts.lua Normal file
View File

@ -0,0 +1,280 @@
minetest.register_craft({
output = "multitest:shears",
recipe = {
{"default:steel_ingot", "", "default:steel_ingot"},
{"", "default:wood", ""},
{"multitest:handle_grip", "", "multitest:handle_grip"}
}
})
minetest.register_craft({
output = "multitest:wood_shears",
recipe = {
{"default:tree", "", "default:tree"},
{"", "default:wood", ""},
{"multitest:handle_grip", "", "multitest:handle_grip"}
}
})
minetest.register_craft({
output = "multitest:stone_shears",
recipe = {
{"default:cobble", "", "default:cobble"},
{"", "default:wood", ""},
{"multitest:handle_grip", "", "multitest:handle_grip"}
}
})
minetest.register_craft({
output = "multitest:rubber_raw 4",
recipe = {
{"default:clay_lump", "default:papyrus", "default:clay_lump"},
{"default:papyrus", "bucket:bucket_water", "default:papyrus"},
{"default:clay_lump", "default:papyrus", "default:clay_lump"},
},
replacements = {{ "bucket:bucket_water", "bucket:bucket_empty" }}
})
minetest.register_craft({
type = "cooking",
recipe = "multitest:rubber_raw",
output = "multitest:rubber",
})
minetest.register_craft({
output = "multitest:handle_grip 2",
recipe = {
{"", "", ""},
{"multitest:rubber", "multitest:rubber", "multitest:rubber"},
{"", "", ""}
}
})
minetest.register_craft({
type = "cooking",
recipe = "multitest:blackcobble",
output = "multitest:blackstone",
})
minetest.register_craft({
output = "multitest:rubberblock",
recipe = {
{"multitest:rubber", "multitest:rubber", ""},
{"multitest:rubber", "multitest:rubber", ""},
{"", "", ""}
}
})
minetest.register_craft({
output = "multitest:scraper",
recipe = {
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{"", "default:steel_ingot", ""},
{"", "multitest:handle_grip", ""}
}
})
minetest.register_craft({
output = "multitest:blackstone_paved",
recipe = {
{"multitest:scraper", "multitest:blackstone", ""},
{"", "", ""},
{"", "", ""},
},
replacements = {{ "multitest:scraper", "multitest:scraper" }}
})
minetest.register_craft({
output = "multitest:rubber 4",
recipe = {
{"multitest:rubberblock", "", ""},
{"", "", ""},
{"", "", ""},
},
})
minetest.register_craft({
output = "multitest:blackstone",
recipe = {
{"default:stone", "default:stone", "default:stone"},
{"default:stone", "dye:black", "default:stone"},
{"default:stone", "default:stone", "default:stone"},
},
})
minetest.register_craft({
output = "multitest:blackstone_brick",
recipe = {
{"multitest:blackstone", "multitest:blackstone", ""},
{"multitest:blackstone", "multitest:blackstone", ""},
{"", "", ""},
},
})
minetest.register_craft({
output = "multitest:hayblock 4",
recipe = {
{"farming:wheat", "farming:wheat", "farming:wheat"},
{"farming:wheat", "farming:wheat", "farming:wheat"},
{"farming:wheat", "farming:wheat", "farming:wheat"},
},
})
minetest.register_craft({
output = "multitest:checkered_floor",
recipe = {
{"default:stone", "multitest:blackstone", ""},
{"multitest:blackstone", "default:stone", ""},
{"", "", ""},
},
})
minetest.register_craft({
output = "multitest:checkered_floor",
recipe = {
{"multitest:blackstone", "default:stone", ""},
{"default:stone", "multitest:blackstone", ""},
{"", "", ""},
},
})
minetest.register_craft({
output = "multitest:checkered_floor",
recipe = {
{"multitest:blackstone", "default:stone", ""},
{"default:stone", "multitest:blackstone", ""},
{"", "", ""},
},
})
for i, v in ipairs(multitest.colors) do
minetest.register_craft({
output = "multitest:carpet_"..v.." 4",
recipe = {
{"wool:"..v, "wool:"..v, ""},
{"", "", ""},
{"", "", ""},
},
})
end
minetest.register_craft({
output = "multitest:lamp",
recipe = {
{"", "default:tree", ""},
{"default:tree", "default:torch", "default:tree"},
{"", "default:tree", ""},
},
})
minetest.register_craft({
output = "multitest:door_mat",
recipe = {
{"wool:black", "wool:black", "wool:black"},
{"wool:black", "wool:brown", "wool:black"},
{"wool:black", "wool:black", "wool:black"},
},
})
minetest.register_craft({
output = "multitest:andesite 4",
recipe = {
{"default:stone", "default:stone", "default:stone"},
{"default:cobble", "default:cobble", "default:cobble"},
{"default:stone", "default:stone", "default:stone"},
},
})
minetest.register_craft({
output = "multitest:andesite_smooth",
recipe = {
{"multitest:andesite", "multitest:scraper", ""},
{"", "", ""},
{"", "", ""},
},
replacements = {{ "multitest:scraper", "multitest:scraper" }}
})
minetest.register_craft({
output = "multitest:granite 4",
recipe = {
{"multitest:andesite", "default:bronze_ingot", ""},
{"", "", ""},
{"", "", ""},
},
})
minetest.register_craft({
output = "multitest:granite_smooth",
recipe = {
{"multitest:granite", "multitest:scraper", ""},
{"", "", ""},
{"", "", ""},
},
replacements = {{ "multitest:scraper", "multitest:scraper" }}
})
minetest.register_craft({
output = "multitest:diorite 4",
recipe = {
{"multitest:andesite", "default:clay_lump", ""},
{"", "", ""},
{"", "", ""},
},
})
minetest.register_craft({
output = "multitest:diorite_smooth",
recipe = {
{"multitest:diorite", "multitest:scraper", ""},
{"", "", ""},
{"", "", ""},
},
replacements = {{ "multitest:scraper", "multitest:scraper" }}
})
minetest.register_craft({
output = "multitest:diorite",
recipe = {
{"multitest:diorite_smooth", "", ""},
{"", "", ""},
{"", "", ""},
},
})
minetest.register_craft({
output = "multitest:granite",
recipe = {
{"multitest:granite_smooth", "", ""},
{"", "", ""},
{"", "", ""},
},
})
minetest.register_craft({
output = "multitest:andesite",
recipe = {
{"multitest:andesite_smooth", "", ""},
{"", "", ""},
{"", "", ""},
},
})
minetest.register_craft({
output = "multitest:sandstone_carved",
recipe = {
{"default:sandstone", "multitest:scraper", ""},
{"", "", ""},
{"", "", ""},
},
replacements = {{ "multitest:scraper", "multitest:scraper" }}
})
minetest.register_craft({
output = "multitest:sponge_block 4",
recipe = {
{"", "dye:yellow", ""},
{"", "wool:white", ""},
{"", "farming:wheat", ""},
},
})

3
depends.txt Normal file
View File

@ -0,0 +1,3 @@
default
stairs
wool

11
fuel.lua Normal file
View File

@ -0,0 +1,11 @@
minetest.register_craft({
type = "fuel",
recipe = "multitest:rubber",
burntime = 5,
})
minetest.register_craft({
type = "fuel",
recipe = "multitest:rubberblock",
burntime = 3,
})

57
init.lua Normal file
View File

@ -0,0 +1,57 @@
multitest = {}
multitest.colors = {"black", "blue", "brown", "cyan", "dark_green",
"dark_grey", "green", "grey", "magenta", "orange",
"pink", "red", "violet", "white", "yellow"}
multitest.colornames = {"Black", "Blue", "Brown", "Cyan", "Dark Green",
"Dark Grey", "Green", "Grey", "Magenta", "Orange",
"Pink", "Red", "Violet", "White", "Yellow"}
dofile(minetest.get_modpath("multitest").."/crafts.lua")
dofile(minetest.get_modpath("multitest").."/craftitems.lua")
dofile(minetest.get_modpath("multitest").."/nodes.lua")
dofile(minetest.get_modpath("multitest").."/fuel.lua")
minetest.register_tool("multitest:shears", {
description = "Shears",
inventory_image = "multitest_shears.png",
tool_capabilities = {
max_drop_level=3,
groupcaps= {
crumbly={times={[1]=5.00, [2]=3.50, [3]=3.00}, uses=80, maxlevel=1}
}
}
})
minetest.register_tool("multitest:wood_shears", {
description = "Wood Shears",
inventory_image = "multitest_wood_shears.png",
tool_capabilities = {
max_drop_level=3,
groupcaps= {
crumbly={times={[1]=3.00, [2]=2.50, [3]=1.00}, uses=40, maxlevel=1}
}
}
})
minetest.register_tool("multitest:stone_shears", {
description = "Stone Shears",
inventory_image = "multitest_stone_shears.png",
tool_capabilities = {
max_drop_level=3,
groupcaps= {
crumbly={times={[1]=4.00, [2]=3.00, [3]=1.50}, uses=50, maxlevel=1}
}
}
})
minetest.register_tool("multitest:scraper", {
description = "Scraper",
inventory_image = "multitest_scraper.png",
tool_capabilities = {
max_drop_level=3,
groupcaps= {
}
}
})

182
nodes.lua Normal file
View File

@ -0,0 +1,182 @@
-- nodes
minetest.register_node("multitest:rubberblock", {
description = "Rubber Block",
tiles = {"multitest_rubberblock.png"},
groups = {oddly_breakable_by_hand=5,crumbly=3},
})
minetest.register_node("multitest:blackstone", {
description = "Blackstone",
tiles = {"multitest_blackstone.png"},
groups = {cracky=3, stone=1},
drop = 'multitest:blackcobble',
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("multitest:blackcobble", {
description = "Black Cobblestone",
tiles = {"multitest_blackcobble.png"},
groups = {cracky=2, stone=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("multitest:blackstone_paved", {
description = "Paved Blackstone",
tiles = {"multitest_blackstone_paved.png"},
groups = {cracky=2, stone=1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("multitest:blackstone_paved", {
description = "Paved Blackstone",
tiles = {"multitest_blackstone_paved.png"},
groups = {cracky=2, stone=1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("multitest:blackstone_brick", {
description = "Blackstone Bricks",
tiles = {"multitest_blackstone_brick.png"},
groups = {cracky=2, stone=1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("multitest:hayblock", {
description = "Hay Bale",
tiles = {"multitest_hayblock_top.png", "multitest_hayblock_top.png", "multitest_hayblock.png"},
paramtype2 = "facedir",
groups = {snappy=1,flammable=2,crumbly=1,cracky=4,oddly_breakable_by_hand=2},
sounds = default.node_sound_sand_defaults(),
on_place = minetest.rotate_node
})
minetest.register_node("multitest:checkered_floor", {
description = "Checkered Floor",
tiles = {"multitest_checkered_floor.png"},
groups = {cracky=2, oddly_breakable_by_hand=4},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("multitest:lamp", {
description = "Lamp",
tiles = {"multitest_lamp.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = LIGHT_MAX-1,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_node("multitest:andesite", {
description = "Andesite",
tiles = {"multitest_andesite.png"},
groups = {cracky=3,},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("multitest:diorite", {
description = "Diorite",
tiles = {"multitest_diorite.png"},
groups = {cracky=3,},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("multitest:granite", {
description = "Granite",
tiles = {"multitest_granite.png"},
groups = {cracky=3,},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("multitest:andesite_smooth", {
description = "Smooth Andesite",
tiles = {"multitest_andesite_smooth.png"},
groups = {cracky=3,},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("multitest:diorite_smooth", {
description = "Smooth Diorite",
tiles = {"multitest_diorite_smooth.png"},
groups = {cracky=3,},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("multitest:granite_smooth", {
description = "Smooth Granite",
tiles = {"multitest_granite_smooth.png"},
groups = {cracky=3,},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("multitest:sandstone_carved", {
description = "Carved Sandstone",
tiles = {"multitest_sandstone_carved_top.png", "multitest_sandstone_carved_top.png", "multitest_sandstone_carved.png"},
groups = {crumbly=2,cracky=4,},
sounds = default.node_sound_sand_defaults(),
})
-- stairs:stair_blackstone
stairs.register_stair_and_slab("blackstone", "multitest:blackstone",
{cracky=3, stone=1},
{"multitest_blackstone.png"},
"Blackstone Stairs",
"Blackstone Slab", nil)
stairs.register_stair_and_slab("blackcobble", "multitest:blackcobble",
{cracky=3, stone=1},
{"multitest_blackcobble.png"},
"Black Cobble Stairs",
"Black Cobble Slab", nil)
stairs.register_stair_and_slab("blackstone_bricks", "multitest:blackstone_brick",
{cracky=3, stone=1},
{"multitest_blackstone_brick.png"},
"Blackstonestone brick Stairs",
"Blackstone Brick Slab", nil)
stairs.register_stair_and_slab("blackstone_paved", "multitest:blackstone_paved",
{cracky=3, stone=1},
{"multitest_blackstone_paved.png"},
"Paved Blackstone Stairs",
"Paved Blackstone Slab", nil)
-- others
for i, v in ipairs(multitest.colors) do
minetest.register_node("multitest:carpet_"..v, {
tiles = {"wool_"..v..".png"},
description = multitest.colornames[i].."Carpet",
groups = {oddly_breakable_by_hand=2,flammable=3},
drawtype="nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.4, 0.5},
}
}
})
end
minetest.register_node("multitest:door_mat", {
description = "Door Mat",
tiles = {"multitest_door_mat.png"},
inventory_image = "multitest_door_mat.png",
wield_image = "multitest_door_mat.png",
groups = {oddly_breakable_by_hand=2,flammable=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",
tiles = {"multitest_sponge_block.png"},
groups = {oddly_breakable_by_hand=3,},
})

BIN
sounds/shears.ogg Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 602 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 752 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 519 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 806 B

BIN
textures/multitest_lamp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 756 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 838 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 886 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 B