Remplissage du dépôt.

This commit is contained in:
sys4-fr 2018-09-08 14:20:28 +02:00
commit 565558358d
17 changed files with 59 additions and 0 deletions

2
depends.txt Executable file
View File

@ -0,0 +1,2 @@
default
wool

57
init.lua Executable file
View File

@ -0,0 +1,57 @@
-- Licensed under CC0.
-- Painting textures from Stunt Rally <https://code.google.com/p/vdrift-ogre/>, licensed under CC0.
local paintings = {}
paintings.dyes = {
{"white", "White"},
{"grey", "Grey"},
{"black", "Black"},
{"red", "Red"},
{"yellow", "Yellow"},
{"green", "Green"},
{"cyan", "Cyan"},
{"blue", "Blue"},
{"magenta", "Magenta"},
{"orange", "Orange",},
{"violet", "Violet"},
{"brown", "Brown"},
{"pink", "Pink"},
{"dark_grey", "Dark Grey"},
{"dark_green", "Dark Green"},
}
for _, row in ipairs(paintings.dyes) do
local name = row[1]
local desc = row[2]
minetest.register_node("paintings:" .. name, {
description = desc .. " Painting",
drawtype = "nodebox",
tiles = {"paintings_" .. name .. ".png"},
inventory_image = "paintings_" .. name .. ".png",
wield_image = "paintings_" .. name .. ".png",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
node_box = {
type = "wallmounted",
wall_top = {-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5},
wall_bottom = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
wall_side = {-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5},
},
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, flammable = 3},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_craft({
output = "paintings:" .. name,
recipe = {
{"group:stick", "group:stick", "group:stick"},
{"group:stick", "wool:" .. name, "group:stick"},
{"group:stick", "group:stick", "group:stick"},
}
})
end
if minetest.setting_getbool("log_mods") then
minetest.log("action", "Carbone: [paintings] loaded.")
end

BIN
textures/paintings_black.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
textures/paintings_blue.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

BIN
textures/paintings_brown.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
textures/paintings_cyan.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
textures/paintings_dark_green.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

BIN
textures/paintings_dark_grey.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

BIN
textures/paintings_green.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
textures/paintings_grey.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
textures/paintings_magenta.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

BIN
textures/paintings_orange.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
textures/paintings_pink.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
textures/paintings_red.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
textures/paintings_violet.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
textures/paintings_white.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

BIN
textures/paintings_yellow.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB