Browse Source

Remplissage du dépôt.

master
sys4-fr 1 year ago
commit
565558358d
17 changed files with 59 additions and 0 deletions
  1. +2
    -0
      depends.txt
  2. +57
    -0
      init.lua
  3. BIN
      textures/paintings_black.png
  4. BIN
      textures/paintings_blue.png
  5. BIN
      textures/paintings_brown.png
  6. BIN
      textures/paintings_cyan.png
  7. BIN
      textures/paintings_dark_green.png
  8. BIN
      textures/paintings_dark_grey.png
  9. BIN
      textures/paintings_green.png
  10. BIN
      textures/paintings_grey.png
  11. BIN
      textures/paintings_magenta.png
  12. BIN
      textures/paintings_orange.png
  13. BIN
      textures/paintings_pink.png
  14. BIN
      textures/paintings_red.png
  15. BIN
      textures/paintings_violet.png
  16. BIN
      textures/paintings_white.png
  17. BIN
      textures/paintings_yellow.png

+ 2
- 0
depends.txt View File

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

+ 57
- 0
init.lua 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 View File

Before After
Width: 64  |  Height: 64  |  Size: 7.5KB

BIN
textures/paintings_blue.png View File

Before After
Width: 64  |  Height: 64  |  Size: 8.5KB

BIN
textures/paintings_brown.png View File

Before After
Width: 64  |  Height: 64  |  Size: 8.6KB

BIN
textures/paintings_cyan.png View File

Before After
Width: 64  |  Height: 64  |  Size: 8.6KB

BIN
textures/paintings_dark_green.png View File

Before After
Width: 64  |  Height: 64  |  Size: 8.2KB

BIN
textures/paintings_dark_grey.png View File

Before After
Width: 64  |  Height: 64  |  Size: 7.3KB

BIN
textures/paintings_green.png View File

Before After
Width: 64  |  Height: 64  |  Size: 7.9KB

BIN
textures/paintings_grey.png View File

Before After
Width: 64  |  Height: 64  |  Size: 8.6KB

BIN
textures/paintings_magenta.png View File

Before After
Width: 64  |  Height: 64  |  Size: 9.3KB

BIN
textures/paintings_orange.png View File

Before After
Width: 64  |  Height: 64  |  Size: 8.6KB

BIN
textures/paintings_pink.png View File

Before After
Width: 64  |  Height: 64  |  Size: 7.5KB

BIN
textures/paintings_red.png View File

Before After
Width: 64  |  Height: 64  |  Size: 7.2KB

BIN
textures/paintings_violet.png View File

Before After
Width: 64  |  Height: 64  |  Size: 8.6KB

BIN
textures/paintings_white.png View File

Before After
Width: 64  |  Height: 64  |  Size: 8.7KB

BIN
textures/paintings_yellow.png View File

Before After
Width: 64  |  Height: 64  |  Size: 9.1KB

Loading…
Cancel
Save