From 3e95c4e508179fdd1f70e0365916538c8c07290e Mon Sep 17 00:00:00 2001 From: DonBatman Date: Fri, 25 Mar 2016 07:52:17 -0700 Subject: [PATCH] First Upload --- modpack.txt | 0 mypaint_dirt/README.md | 7 +++ mypaint_dirt/depends.txt | 2 + mypaint_dirt/description.txt | 1 + mypaint_dirt/init.lua | 81 +++++++++++++++++++++++++ mypaint_dirt/licence.txt | 13 +++++ mypaint_dirt/mod.conf | 1 + mypaint_sample/README.md | 7 +++ mypaint_sample/depends.txt | 2 + mypaint_sample/description.txt | 1 + mypaint_sample/init.lua | 53 +++++++++++++++++ mypaint_sample/licence.txt | 13 +++++ mypaint_sample/mod.conf | 1 + mypaint_sand/README.md | 7 +++ mypaint_sand/depends.txt | 2 + mypaint_sand/description.txt | 1 + mypaint_sand/init.lua | 77 ++++++++++++++++++++++++ mypaint_sand/licence.txt | 13 +++++ mypaint_sand/mod.conf | 1 + mypaint_stone/README.md | 7 +++ mypaint_stone/depends.txt | 2 + mypaint_stone/description.txt | 1 + mypaint_stone/init.lua | 104 +++++++++++++++++++++++++++++++++ mypaint_stone/licence.txt | 13 +++++ mypaint_stone/mod.conf | 1 + 25 files changed, 411 insertions(+) create mode 100644 modpack.txt create mode 100644 mypaint_dirt/README.md create mode 100644 mypaint_dirt/depends.txt create mode 100644 mypaint_dirt/description.txt create mode 100644 mypaint_dirt/init.lua create mode 100644 mypaint_dirt/licence.txt create mode 100644 mypaint_dirt/mod.conf create mode 100644 mypaint_sample/README.md create mode 100644 mypaint_sample/depends.txt create mode 100644 mypaint_sample/description.txt create mode 100644 mypaint_sample/init.lua create mode 100644 mypaint_sample/licence.txt create mode 100644 mypaint_sample/mod.conf create mode 100644 mypaint_sand/README.md create mode 100644 mypaint_sand/depends.txt create mode 100644 mypaint_sand/description.txt create mode 100644 mypaint_sand/init.lua create mode 100644 mypaint_sand/licence.txt create mode 100644 mypaint_sand/mod.conf create mode 100644 mypaint_stone/README.md create mode 100644 mypaint_stone/depends.txt create mode 100644 mypaint_stone/description.txt create mode 100644 mypaint_stone/init.lua create mode 100644 mypaint_stone/licence.txt create mode 100644 mypaint_stone/mod.conf diff --git a/modpack.txt b/modpack.txt new file mode 100644 index 0000000..e69de29 diff --git a/mypaint_dirt/README.md b/mypaint_dirt/README.md new file mode 100644 index 0000000..e4e74b8 --- /dev/null +++ b/mypaint_dirt/README.md @@ -0,0 +1,7 @@ +# mypaint_dirt + +Paint all the default dirt nodes. + +Requires mypaint. + +Licence - DWYWPL diff --git a/mypaint_dirt/depends.txt b/mypaint_dirt/depends.txt new file mode 100644 index 0000000..289de2e --- /dev/null +++ b/mypaint_dirt/depends.txt @@ -0,0 +1,2 @@ +default +mypaint diff --git a/mypaint_dirt/description.txt b/mypaint_dirt/description.txt new file mode 100644 index 0000000..c2962a2 --- /dev/null +++ b/mypaint_dirt/description.txt @@ -0,0 +1 @@ +Allows you to paint dirt. diff --git a/mypaint_dirt/init.lua b/mypaint_dirt/init.lua new file mode 100644 index 0000000..789c81e --- /dev/null +++ b/mypaint_dirt/init.lua @@ -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) + diff --git a/mypaint_dirt/licence.txt b/mypaint_dirt/licence.txt new file mode 100644 index 0000000..f50419b --- /dev/null +++ b/mypaint_dirt/licence.txt @@ -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. diff --git a/mypaint_dirt/mod.conf b/mypaint_dirt/mod.conf new file mode 100644 index 0000000..9b40ed3 --- /dev/null +++ b/mypaint_dirt/mod.conf @@ -0,0 +1 @@ +name = mypaint_dirt diff --git a/mypaint_sample/README.md b/mypaint_sample/README.md new file mode 100644 index 0000000..bbebcb9 --- /dev/null +++ b/mypaint_sample/README.md @@ -0,0 +1,7 @@ +# mypaint + +A sample mod for mypaint. + +Requires mypaint mod. + +Licence - DWYWPL diff --git a/mypaint_sample/depends.txt b/mypaint_sample/depends.txt new file mode 100644 index 0000000..241af2d --- /dev/null +++ b/mypaint_sample/depends.txt @@ -0,0 +1,2 @@ +default +mypaint? diff --git a/mypaint_sample/description.txt b/mypaint_sample/description.txt new file mode 100644 index 0000000..55583e3 --- /dev/null +++ b/mypaint_sample/description.txt @@ -0,0 +1 @@ +A sample mod for mypaint. diff --git a/mypaint_sample/init.lua b/mypaint_sample/init.lua new file mode 100644 index 0000000..638efb7 --- /dev/null +++ b/mypaint_sample/init.lua @@ -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 diff --git a/mypaint_sample/licence.txt b/mypaint_sample/licence.txt new file mode 100644 index 0000000..f50419b --- /dev/null +++ b/mypaint_sample/licence.txt @@ -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. diff --git a/mypaint_sample/mod.conf b/mypaint_sample/mod.conf new file mode 100644 index 0000000..24204b3 --- /dev/null +++ b/mypaint_sample/mod.conf @@ -0,0 +1 @@ +name = mypaint_sample diff --git a/mypaint_sand/README.md b/mypaint_sand/README.md new file mode 100644 index 0000000..3d24ec2 --- /dev/null +++ b/mypaint_sand/README.md @@ -0,0 +1,7 @@ +# mypaint_sand + +Paint all the default sand nodes. + +Requires mypaint. + +Licence - DWYWPL diff --git a/mypaint_sand/depends.txt b/mypaint_sand/depends.txt new file mode 100644 index 0000000..289de2e --- /dev/null +++ b/mypaint_sand/depends.txt @@ -0,0 +1,2 @@ +default +mypaint diff --git a/mypaint_sand/description.txt b/mypaint_sand/description.txt new file mode 100644 index 0000000..ab5da40 --- /dev/null +++ b/mypaint_sand/description.txt @@ -0,0 +1 @@ +Allows you to paint sand. diff --git a/mypaint_sand/init.lua b/mypaint_sand/init.lua new file mode 100644 index 0000000..b28af99 --- /dev/null +++ b/mypaint_sand/init.lua @@ -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) + diff --git a/mypaint_sand/licence.txt b/mypaint_sand/licence.txt new file mode 100644 index 0000000..f50419b --- /dev/null +++ b/mypaint_sand/licence.txt @@ -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. diff --git a/mypaint_sand/mod.conf b/mypaint_sand/mod.conf new file mode 100644 index 0000000..67803ba --- /dev/null +++ b/mypaint_sand/mod.conf @@ -0,0 +1 @@ +name = mypaint_sand diff --git a/mypaint_stone/README.md b/mypaint_stone/README.md new file mode 100644 index 0000000..fd79966 --- /dev/null +++ b/mypaint_stone/README.md @@ -0,0 +1,7 @@ +# mypaint_stone + +Paint all the default stone nodes. + +Requires mypaint. + +Licence - DWYWPL diff --git a/mypaint_stone/depends.txt b/mypaint_stone/depends.txt new file mode 100644 index 0000000..289de2e --- /dev/null +++ b/mypaint_stone/depends.txt @@ -0,0 +1,2 @@ +default +mypaint diff --git a/mypaint_stone/description.txt b/mypaint_stone/description.txt new file mode 100644 index 0000000..2fab214 --- /dev/null +++ b/mypaint_stone/description.txt @@ -0,0 +1 @@ +Allows you to paint default stone nodes. diff --git a/mypaint_stone/init.lua b/mypaint_stone/init.lua new file mode 100644 index 0000000..25f6afb --- /dev/null +++ b/mypaint_stone/init.lua @@ -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) + diff --git a/mypaint_stone/licence.txt b/mypaint_stone/licence.txt new file mode 100644 index 0000000..f50419b --- /dev/null +++ b/mypaint_stone/licence.txt @@ -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. diff --git a/mypaint_stone/mod.conf b/mypaint_stone/mod.conf new file mode 100644 index 0000000..b370f03 --- /dev/null +++ b/mypaint_stone/mod.conf @@ -0,0 +1 @@ +name = mypaint_stone