First Upload
commit
3e95c4e508
|
@ -0,0 +1,7 @@
|
|||
# mypaint_dirt
|
||||
|
||||
Paint all the default dirt nodes.
|
||||
|
||||
Requires mypaint.
|
||||
|
||||
Licence - DWYWPL
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
mypaint
|
|
@ -0,0 +1 @@
|
|||
Allows you to paint dirt.
|
|
@ -0,0 +1,81 @@
|
|||
|
||||
local mypaint_dirt_colors = {
|
||||
{"black", "Black", "#000000b0",1},
|
||||
{"blue", "Blue", "#015dbb70",1},
|
||||
{"brown", "Brown", "#a78c4570",1},
|
||||
{"cyan", "Cyan", "#01ffd870",1},
|
||||
{"darkgreen", "Dark Green", "#005b0770",1},
|
||||
{"darkgrey", "Dark Grey", "#303030b0",1},
|
||||
{"green", "Green", "#61ff0170",1},
|
||||
{"grey", "Grey", "#5b5b5bb0",1},
|
||||
{"magenta", "Magenta", "#ff05bb70",1},
|
||||
{"orange", "Orange", "#ff840170",1},
|
||||
{"pink", "Pink", "#ff65b570",1},
|
||||
{"red", "Red", "#ff000070",1},
|
||||
{"violet", "Violet", "#2000c970",1},
|
||||
{"white", "White", "#abababc0",1},
|
||||
{"yellow", "Yellow", "#e3ff0070",1},
|
||||
{"clear", "Clear", "#000000:0",1},
|
||||
}
|
||||
|
||||
local paintables = {
|
||||
"default:dirt","default:dirt_with_grass","default:dirt_with_dry_grass","default:dirt_with_snow"
|
||||
}
|
||||
|
||||
for _, entry in ipairs(mypaint_dirt_colors) do
|
||||
local color = entry[1]
|
||||
local desc = entry[2]
|
||||
local paint = "^[colorize:"..entry[3]
|
||||
local nici = entry[4]
|
||||
|
||||
-- Dirt
|
||||
minetest.register_alias("default:dirt", "default:dirt_clear")
|
||||
minetest.register_node(":default:dirt_" .. color, {
|
||||
description = desc .. " Dirt",
|
||||
tiles = {"default_dirt.png".. paint},
|
||||
groups = {crumbly = 3, soil = 1, not_in_creative_inventory = nici},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
|
||||
-- Dirt with Grass
|
||||
minetest.register_alias("default:dirt_with_grass", "default:dirt_with_grass_clear")
|
||||
minetest.register_node(":default:dirt_with_grass_" .. color, {
|
||||
description = desc .. " Dirt with Grass",
|
||||
tiles = {"default_grass.png"..paint, "default_dirt.png"..paint,
|
||||
{name = "default_dirt.png^default_grass_side.png"..paint,
|
||||
tileable_vertical = false}},
|
||||
groups = {crumbly = 3, soil = 1, not_in_creative_inventory = nici},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
|
||||
-- Dirt with Dry Grass
|
||||
minetest.register_alias("default:dirt_with_dry_grass", "default:dirt_with_dry_grass_clear")
|
||||
minetest.register_node(":default:dirt_with_dry_grass_" .. color, {
|
||||
description = desc .. " Dirt with Dry Grass",
|
||||
tiles = {"default_dry_grass.png"..paint, "default_dirt.png"..paint,
|
||||
{name = "default_dirt.png^default_dry_grass_side.png"..paint,
|
||||
tileable_vertical = false}},
|
||||
groups = {crumbly = 3, soil = 1, not_in_creative_inventory = nici},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
|
||||
-- Dirt with Snow
|
||||
minetest.register_alias("default:dirt_with_snow", "default:dirt_with_snow_clear")
|
||||
minetest.register_node(":default:dirt_with_snow_" .. color, {
|
||||
description = desc .. " Dirt with Snow",
|
||||
tiles = {"default_snow.png"..paint, "default_dirt.png"..paint,
|
||||
{name = "default_dirt.png^default_snow_side.png"..paint,
|
||||
tileable_vertical = false}},
|
||||
groups = {crumbly = 3, soil = 1, not_in_creative_inventory = nici},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
|
||||
|
||||
end
|
||||
|
||||
local colors = {}
|
||||
for _, entry in ipairs(mypaint_dirt_colors) do
|
||||
table.insert(colors, entry[1])
|
||||
end
|
||||
mypaint.register(paintables, colors)
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
DO WHAT YOU WANT TO PUBLIC LICENSE
|
||||
or abbreviated DWYWPL
|
||||
|
||||
December 2nd 2015
|
||||
License Copyright (C) 2015 Michael Tomaino (PlatinumArts@gmail.com)
|
||||
www.sandboxgamemaker.com/DWYWPL/
|
||||
|
||||
DO WHAT YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
1. You are allowed to do whatever you want to with what content is using this license.
|
||||
2. This content is provided 'as-is', without any express or implied warranty. In no event
|
||||
will the authors be held liable for any damages arising from the use of this content.
|
|
@ -0,0 +1 @@
|
|||
name = mypaint_dirt
|
|
@ -0,0 +1,7 @@
|
|||
# mypaint
|
||||
|
||||
A sample mod for mypaint.
|
||||
|
||||
Requires mypaint mod.
|
||||
|
||||
Licence - DWYWPL
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
mypaint?
|
|
@ -0,0 +1 @@
|
|||
A sample mod for mypaint.
|
|
@ -0,0 +1,53 @@
|
|||
|
||||
mypaint_sample = {}
|
||||
|
||||
mypaint_sample.colors = {
|
||||
{"black", "Black", "#000000b0"},
|
||||
{"blue", "Blue", "#015dbb70"},
|
||||
{"brown", "Brown", "#a78c4570"},
|
||||
{"cyan", "Cyan", "#01ffd870"},
|
||||
{"darkgreen", "Dark Green", "#005b0770"},
|
||||
{"darkgrey", "Dark Grey", "#303030b0"},
|
||||
{"green", "Green", "#61ff0170"},
|
||||
{"grey", "Grey", "#5b5b5bb0"},
|
||||
{"magenta", "Magenta", "#ff05bb70"},
|
||||
{"orange", "Orange", "#ff840170"},
|
||||
{"pink", "Pink", "#ff65b570"},
|
||||
{"red", "Red", "#ff000070"},
|
||||
{"violet", "Violet", "#2000c970"},
|
||||
{"white", "White", "#abababc0"},
|
||||
{"yellow", "Yellow", "#e3ff0070"},
|
||||
}
|
||||
|
||||
local paintables = {
|
||||
"mypaint_sample:sand"
|
||||
}
|
||||
|
||||
for _, entry in ipairs(mypaint_sample.colors) do
|
||||
local color = entry[1]
|
||||
local desc = entry[2]
|
||||
local paint = "^[colorize:"..entry[3]
|
||||
|
||||
minetest.register_node("mypaint_sample:sand_" .. color, {
|
||||
description = desc .. " Sample Block",
|
||||
tiles = {"default_sand.png".. paint},
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2,cracky = 2},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mypaint_sample:sand_".. color .. " 2",
|
||||
recipe = {
|
||||
{"group:sand","group:sand"},
|
||||
}
|
||||
})
|
||||
|
||||
end
|
||||
if minetest.get_modpath("mypaint") then
|
||||
local colors = {}
|
||||
for _, entry in ipairs(mypaint_sample.colors) do
|
||||
table.insert(colors, entry[1])
|
||||
end
|
||||
mypaint.register(paintables, colors)
|
||||
end
|
|
@ -0,0 +1,13 @@
|
|||
DO WHAT YOU WANT TO PUBLIC LICENSE
|
||||
or abbreviated DWYWPL
|
||||
|
||||
December 2nd 2015
|
||||
License Copyright (C) 2015 Michael Tomaino (PlatinumArts@gmail.com)
|
||||
www.sandboxgamemaker.com/DWYWPL/
|
||||
|
||||
DO WHAT YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
1. You are allowed to do whatever you want to with what content is using this license.
|
||||
2. This content is provided 'as-is', without any express or implied warranty. In no event
|
||||
will the authors be held liable for any damages arising from the use of this content.
|
|
@ -0,0 +1 @@
|
|||
name = mypaint_sample
|
|
@ -0,0 +1,7 @@
|
|||
# mypaint_sand
|
||||
|
||||
Paint all the default sand nodes.
|
||||
|
||||
Requires mypaint.
|
||||
|
||||
Licence - DWYWPL
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
mypaint
|
|
@ -0,0 +1 @@
|
|||
Allows you to paint sand.
|
|
@ -0,0 +1,77 @@
|
|||
|
||||
local mypaint_sand_colors = {
|
||||
{"black", "Black", "#000000b0",1},
|
||||
{"blue", "Blue", "#015dbb70",1},
|
||||
{"brown", "Brown", "#a78c4570",1},
|
||||
{"cyan", "Cyan", "#01ffd870",1},
|
||||
{"darkgreen", "Dark Green", "#005b0770",1},
|
||||
{"darkgrey", "Dark Grey", "#303030b0",1},
|
||||
{"green", "Green", "#61ff0170",1},
|
||||
{"grey", "Grey", "#5b5b5bb0",1},
|
||||
{"magenta", "Magenta", "#ff05bb70",1},
|
||||
{"orange", "Orange", "#ff840170",1},
|
||||
{"pink", "Pink", "#ff65b570",1},
|
||||
{"red", "Red", "#ff000070",1},
|
||||
{"violet", "Violet", "#2000c970",1},
|
||||
{"white", "White", "#abababc0",1},
|
||||
{"yellow", "Yellow", "#e3ff0070",1},
|
||||
{"clear", "Clear", "#000000:0",1},
|
||||
}
|
||||
|
||||
local paintables = {
|
||||
"default:sand","default:desert_sand","default:sandstone","default:sandstonebrick"
|
||||
}
|
||||
|
||||
for _, entry in ipairs(mypaint_sand_colors) do
|
||||
local color = entry[1]
|
||||
local desc = entry[2]
|
||||
local paint = "^[colorize:"..entry[3]
|
||||
local nici = entry[4]
|
||||
|
||||
|
||||
-- Sand
|
||||
minetest.register_alias("default:sand", "default:sand_clear")
|
||||
minetest.register_node(":default:sand_" .. color, {
|
||||
description = desc .. " Sand",
|
||||
tiles = {"default_sand.png".. paint},
|
||||
groups = {crumbly = 3, falling_node = 1, sand = 1,cracky = 2, not_in_creative_inventory = nici},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
|
||||
-- Desert Sand
|
||||
minetest.register_alias("default:desert_sand", "default:desert_sand_clear")
|
||||
minetest.register_node(":default:desert_sand_" .. color, {
|
||||
description = desc .. " Desert Sand",
|
||||
tiles = {"default_desert_sand.png".. paint},
|
||||
groups = {crumbly = 3, falling_node = 1, sand = 1, not_in_creative_inventory = nici},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
|
||||
-- Sandstone
|
||||
minetest.register_alias("default:sandstone", "default:sandstone_clear")
|
||||
minetest.register_node(":default:sandstone_" .. color, {
|
||||
description = desc .. " Sandstone",
|
||||
tiles = {"default_sandstone.png".. paint},
|
||||
groups = {crumbly = 2, cracky = 3, not_in_creative_inventory = nici},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
|
||||
-- Sandstone Brick
|
||||
minetest.register_alias("default:sandstonebrick", "default:sandstonebrick_clear")
|
||||
minetest.register_node(":default:sandstonebrick_" .. color, {
|
||||
description = desc .. " Sandstone Brick",
|
||||
tiles = {"default_sandstone_brick.png".. paint},
|
||||
groups = {crumbly = 2, cracky = 3, not_in_creative_inventory = nici},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
|
||||
|
||||
|
||||
end
|
||||
|
||||
local colors = {}
|
||||
for _, entry in ipairs(mypaint_sand_colors) do
|
||||
table.insert(colors, entry[1])
|
||||
end
|
||||
mypaint.register(paintables, colors)
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
DO WHAT YOU WANT TO PUBLIC LICENSE
|
||||
or abbreviated DWYWPL
|
||||
|
||||
December 2nd 2015
|
||||
License Copyright (C) 2015 Michael Tomaino (PlatinumArts@gmail.com)
|
||||
www.sandboxgamemaker.com/DWYWPL/
|
||||
|
||||
DO WHAT YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
1. You are allowed to do whatever you want to with what content is using this license.
|
||||
2. This content is provided 'as-is', without any express or implied warranty. In no event
|
||||
will the authors be held liable for any damages arising from the use of this content.
|
|
@ -0,0 +1 @@
|
|||
name = mypaint_sand
|
|
@ -0,0 +1,7 @@
|
|||
# mypaint_stone
|
||||
|
||||
Paint all the default stone nodes.
|
||||
|
||||
Requires mypaint.
|
||||
|
||||
Licence - DWYWPL
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
mypaint
|
|
@ -0,0 +1 @@
|
|||
Allows you to paint default stone nodes.
|
|
@ -0,0 +1,104 @@
|
|||
|
||||
local mypaint_stone_colors = {
|
||||
{"black", "Black", "#000000b0",1},
|
||||
{"blue", "Blue", "#015dbb70",1},
|
||||
{"brown", "Brown", "#a78c4570",1},
|
||||
{"cyan", "Cyan", "#01ffd870",1},
|
||||
{"darkgreen", "Dark Green", "#005b0770",1},
|
||||
{"darkgrey", "Dark Grey", "#303030b0",1},
|
||||
{"green", "Green", "#61ff0170",1},
|
||||
{"grey", "Grey", "#5b5b5bb0",1},
|
||||
{"magenta", "Magenta", "#ff05bb70",1},
|
||||
{"orange", "Orange", "#ff840170",1},
|
||||
{"pink", "Pink", "#ff65b570",1},
|
||||
{"red", "Red", "#ff000070",1},
|
||||
{"violet", "Violet", "#2000c970",1},
|
||||
{"white", "White", "#abababc0",1},
|
||||
{"yellow", "Yellow", "#e3ff0070",1},
|
||||
{"clear", "Clear", "#000000:0",1},
|
||||
}
|
||||
|
||||
local paintables = {
|
||||
"default:cobble","default:desert_cobble","default:mossycobble",
|
||||
"default:stone","default:desert_stone",
|
||||
"default:stonebrick","default:desert_stonebrick"
|
||||
}
|
||||
|
||||
for _, entry in ipairs(mypaint_stone_colors) do
|
||||
local color = entry[1]
|
||||
local desc = entry[2]
|
||||
local paint = "^[colorize:"..entry[3]
|
||||
local nici = entry[4]
|
||||
|
||||
-- Cobble
|
||||
minetest.register_alias("default:cobble", "default:cobble_clear")
|
||||
minetest.register_node(":default:cobble_" .. color, {
|
||||
description = desc .. " Cobble",
|
||||
tiles = {"default_cobble.png".. paint},
|
||||
groups = {cracky = 3, stone = 2, not_in_creative_inventory = nici},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
-- Desert Cobble
|
||||
minetest.register_alias("default:desert_cobble", "default:desert_cobble_clear")
|
||||
minetest.register_node(":default:desert_cobble_" .. color, {
|
||||
description = desc .. " Desert Cobble",
|
||||
tiles = {"default_desert_cobble.png".. paint},
|
||||
groups = {cracky = 3, stone = 2, not_in_creative_inventory = nici},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
-- Mossy Cobble
|
||||
minetest.register_alias("default:mossycobble", "default:mossycobble_clear")
|
||||
minetest.register_node(":default:mossycobble_" .. color, {
|
||||
description = desc .. "Mossy Cobble",
|
||||
tiles = {"default_mossycobble.png".. paint},
|
||||
groups = {cracky = 3, stone = 1, not_in_creative_inventory = nici},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
-- Stone
|
||||
minetest.register_alias("default:stone", "default:stone_clear")
|
||||
minetest.register_node(":default:stone_" .. color, {
|
||||
description = desc .. " Stone",
|
||||
tiles = {"default_stone.png".. paint},
|
||||
groups = {cracky = 3, stone = 1, not_in_creative_inventory = nici},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
|
||||
-- Desert Stone
|
||||
minetest.register_alias("default:desert_stone", "default:desert_stone_clear")
|
||||
minetest.register_node(":default:desert_stone_" .. color, {
|
||||
description = desc .. " Desert Stone",
|
||||
tiles = {"default_desert_stone.png".. paint},
|
||||
groups = {cracky = 3, stone = 1, not_in_creative_inventory = nici},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
|
||||
-- Stone Brick
|
||||
minetest.register_alias("default:stonebrick", "default:stonebrick_clear")
|
||||
minetest.register_node(":default:stonebrick_" .. color, {
|
||||
description = desc .. " Stone Brick",
|
||||
tiles = {"default_stone_brick.png".. paint},
|
||||
groups = {cracky = 2, stone = 1, not_in_creative_inventory = nici},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
|
||||
-- Desert Stone Brick
|
||||
minetest.register_alias("default:desert_stonebrick", "default:desert_stonebrick_clear")
|
||||
minetest.register_node(":default:desert_stonebrick_" .. color, {
|
||||
description = desc .. " Desert Stone Brick",
|
||||
tiles = {"default_desert_stone_brick.png".. paint},
|
||||
groups = {cracky = 2, stone = 1, not_in_creative_inventory = nici},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
|
||||
|
||||
end
|
||||
|
||||
local colors = {}
|
||||
for _, entry in ipairs(mypaint_stone_colors) do
|
||||
table.insert(colors, entry[1])
|
||||
end
|
||||
mypaint.register(paintables, colors)
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
DO WHAT YOU WANT TO PUBLIC LICENSE
|
||||
or abbreviated DWYWPL
|
||||
|
||||
December 2nd 2015
|
||||
License Copyright (C) 2015 Michael Tomaino (PlatinumArts@gmail.com)
|
||||
www.sandboxgamemaker.com/DWYWPL/
|
||||
|
||||
DO WHAT YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
1. You are allowed to do whatever you want to with what content is using this license.
|
||||
2. This content is provided 'as-is', without any express or implied warranty. In no event
|
||||
will the authors be held liable for any damages arising from the use of this content.
|
|
@ -0,0 +1 @@
|
|||
name = mypaint_stone
|
Loading…
Reference in New Issue