Make changes to get mods compatible with updated unifieddyes
- remove obsolete colormachine mod - update unifieddyes as submodule - update bobblocks as submodule - update coloredwood as submodule - remove cotton mod - add unifiedwool as submodule - update homedecor_modpack as submodule - update sea modpack as submodule - update stained_glass as submodule - add unifiedbricks as submodule
24
.gitmodules
vendored
@ -150,3 +150,27 @@
|
|||||||
[submodule "mods/farming"]
|
[submodule "mods/farming"]
|
||||||
path = mods/farming
|
path = mods/farming
|
||||||
url = https://github.com/tenplus1/farming.git
|
url = https://github.com/tenplus1/farming.git
|
||||||
|
[submodule "mods/unifieddyes"]
|
||||||
|
path = mods/unifieddyes
|
||||||
|
url = https://github.com/minetest-mods/unifieddyes.git
|
||||||
|
[submodule "mods/unifiedbricks"]
|
||||||
|
path = mods/unifiedbricks
|
||||||
|
url = https://github.com/minetest-mods/unifiedbricks.git
|
||||||
|
[submodule "mods/coloredwood"]
|
||||||
|
path = mods/coloredwood
|
||||||
|
url = https://github.com/minetest-mods/coloredwood.git
|
||||||
|
[submodule "mods/bobblocks"]
|
||||||
|
path = mods/bobblocks
|
||||||
|
url = https://github.com/rabbibob/BobBlocks.git
|
||||||
|
[submodule "mods/homedecor_modpack"]
|
||||||
|
path = mods/homedecor_modpack
|
||||||
|
url = https://github.com/minetest-mods/homedecor_modpack.git
|
||||||
|
[submodule "mods/stained_glass"]
|
||||||
|
path = mods/stained_glass
|
||||||
|
url = https://github.com/VanessaE/stained_glass.git
|
||||||
|
[submodule "mods/unifiedwool"]
|
||||||
|
path = mods/unifiedwool
|
||||||
|
url = https://github.com/MT-Modder/unifiedwool.git
|
||||||
|
[submodule "mods/sea"]
|
||||||
|
path = mods/sea
|
||||||
|
url = https://github.com/H4mlet/sea.git
|
||||||
|
1
mods/bobblocks
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 20221b2618f5f06e87a275de9980e6f781f703f5
|
@ -1,247 +0,0 @@
|
|||||||
-- BobBlocks mod by RabbiBob
|
|
||||||
-- State Changes
|
|
||||||
|
|
||||||
local bobblock_colours = {"red", "orange", "yellow", "green", "blue", "indigo", "violet", "white"}
|
|
||||||
|
|
||||||
local function update_bobblock(pos, node)
|
|
||||||
--Switch Block State
|
|
||||||
minetest.add_node(pos, {name = 'bobblocks:'..node})
|
|
||||||
minetest.sound_play("bobblocks_glassblock", {
|
|
||||||
pos = pos,
|
|
||||||
gain = 1.0,
|
|
||||||
max_hear_distance = 32,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
-- Nodes
|
|
||||||
-- Misc Node
|
|
||||||
|
|
||||||
minetest.register_node("bobblocks:btm", {
|
|
||||||
description = "Bobs TransMorgifier v5",
|
|
||||||
tiles = {"bobblocks_btm_sides.png", "bobblocks_btm_sides.png", "bobblocks_btm_sides.png",
|
|
||||||
"bobblocks_btm_sides.png", "bobblocks_btm_sides.png", "bobblocks_btm.png"},
|
|
||||||
inventory_image = "bobblocks_btm.png",
|
|
||||||
paramtype2 = "facedir",
|
|
||||||
legacy_facedir_simple = true,
|
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for _, colour in ipairs(bobblock_colours) do
|
|
||||||
|
|
||||||
|
|
||||||
--Blocks
|
|
||||||
|
|
||||||
minetest.register_node("bobblocks:"..colour.."block", {
|
|
||||||
description = colour.." Block",
|
|
||||||
drawtype = "glasslike",
|
|
||||||
tiles = {"bobblocks_"..colour.."block.png"},
|
|
||||||
inventory_image = minetest.inventorycube("bobblocks_"..colour.."block.png"),
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
is_ground_content = true,
|
|
||||||
sounds = default.node_sound_glass_defaults(),
|
|
||||||
light_source = default.LIGHT_MAX-0,
|
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
|
||||||
on_punch = function(pos)
|
|
||||||
update_bobblock(pos, colour.."block_off")
|
|
||||||
end,
|
|
||||||
mesecons = {
|
|
||||||
conductor={
|
|
||||||
state = mesecon.state.on,
|
|
||||||
offstate = "bobblocks:"..colour.."block_off"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("bobblocks:"..colour.."block_off", {
|
|
||||||
description = colour.." Block",
|
|
||||||
tiles = {"bobblocks_"..colour.."block.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
alpha = 160,
|
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
|
||||||
drop = 'bobblocks:'..colour..'block',
|
|
||||||
on_punch = function(pos)
|
|
||||||
update_bobblock(pos, colour.."block")
|
|
||||||
end,
|
|
||||||
mesecons = {
|
|
||||||
conductor={
|
|
||||||
state = mesecon.state.off,
|
|
||||||
onstate = "bobblocks:"..colour.."block"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
--Poles
|
|
||||||
|
|
||||||
minetest.register_node("bobblocks:"..colour.."pole", {
|
|
||||||
description = colour.." Pole",
|
|
||||||
drawtype = "fencelike",
|
|
||||||
tiles = {"bobblocks_"..colour.."block.png"},
|
|
||||||
inventory_image = ("bobblocks_inv"..colour.."pole.png"),
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
is_ground_content = true,
|
|
||||||
sounds = default.node_sound_glass_defaults(),
|
|
||||||
light_source = default.LIGHT_MAX-0,
|
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
|
||||||
on_punch = function(pos)
|
|
||||||
update_bobblock(pos, colour.."pole_off")
|
|
||||||
end,
|
|
||||||
mesecons = {conductor={
|
|
||||||
state = mesecon.state.on,
|
|
||||||
offstate = "bobblocks:"..colour.."pole_off"
|
|
||||||
}}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("bobblocks:"..colour.."pole_off", {
|
|
||||||
description = colour.." Pole",
|
|
||||||
drawtype = "fencelike",
|
|
||||||
tiles = {"bobblocks_"..colour.."block.png"},
|
|
||||||
inventory_image = ("bobblocks_inv"..colour.."pole.png"),
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
is_ground_content = true,
|
|
||||||
sounds = default.node_sound_glass_defaults(),
|
|
||||||
light_source = default.LIGHT_MAX-10,
|
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
|
||||||
drop = 'bobblocks:'..colour..'pole',
|
|
||||||
on_punch = function(pos)
|
|
||||||
update_bobblock(pos, colour.."pole")
|
|
||||||
end,
|
|
||||||
mesecons = {conductor={
|
|
||||||
state = mesecon.state.off,
|
|
||||||
onstate = "bobblocks:"..colour.."pole"
|
|
||||||
}}
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
--Crafts
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "bobblocks:"..colour.."pole",
|
|
||||||
recipe = {
|
|
||||||
{"bobblocks:"..colour.."block", "default:stick"},
|
|
||||||
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_node("bobblocks:greyblock", {
|
|
||||||
description = "Grey Block",
|
|
||||||
drawtype = "glasslike",
|
|
||||||
tiles = {"bobblocks_greyblock.png"},
|
|
||||||
inventory_image = minetest.inventorycube("bobblocks_greyblock.png"),
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
is_ground_content = true,
|
|
||||||
sounds = default.node_sound_glass_defaults(),
|
|
||||||
light_source = default.LIGHT_MAX-0,
|
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
|
||||||
mesecons = {conductor={
|
|
||||||
state = mesecon.state.on,
|
|
||||||
offstate = "bobblocks:greyblock_off"
|
|
||||||
}}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("bobblocks:greyblock_off", {
|
|
||||||
description = "Grey Block",
|
|
||||||
tiles = {"bobblocks_greyblock.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
alpha = 160,
|
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
|
||||||
drop = 'bobblocks:greyblock',
|
|
||||||
mesecons = {conductor={
|
|
||||||
state = mesecon.state.off,
|
|
||||||
onstate = "bobblocks:greyblock"
|
|
||||||
}}
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("bobblocks:greypole", {
|
|
||||||
description = "Grey Pole",
|
|
||||||
drawtype = "fencelike",
|
|
||||||
tiles = {"bobblocks_greyblock.png"},
|
|
||||||
inventory_image = ("bobblocks_invgreypole.png"),
|
|
||||||
paramtype = "light",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
is_ground_content = true,
|
|
||||||
sounds = default.node_sound_glass_defaults(),
|
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
|
||||||
--light_source = default.LIGHT_MAX-0,
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Crafts
|
|
||||||
-- BTM
|
|
||||||
minetest.register_craft({
|
|
||||||
output = 'NodeItem "bobblocks:btm" 1',
|
|
||||||
recipe = {
|
|
||||||
{'node "default:glass" 1', 'node "default:torch" 1', 'node "default:leaves" 1',
|
|
||||||
'node "default:mese" 1','node "default:rat" 1'},
|
|
||||||
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
local bobblocks_crafts_list = {
|
|
||||||
{
|
|
||||||
{"grey", "cobble"},
|
|
||||||
{"red", "brick"},
|
|
||||||
{"yellow", "sand"},
|
|
||||||
{"blue", "gravel"},
|
|
||||||
{"white", "dirt"},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
{"orange", "red", "yellow"},
|
|
||||||
{"violet", "red", "blue"},
|
|
||||||
{"green", "blue", "yellow"},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
for _,items in ipairs(bobblocks_crafts_list[1]) do
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "bobblocks:"..items[1].."block 2",
|
|
||||||
recipe = {
|
|
||||||
{"default:glass", "default:torch", "default:"..items[2]},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
for _,items in ipairs(bobblocks_crafts_list[2]) do
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "bobblocks:"..items[1].."block 2",
|
|
||||||
recipe = {
|
|
||||||
{"bobblocks:"..items[2].."block", "bobblocks:"..items[3].."block"},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "bobblocks:indigoblock 3",
|
|
||||||
recipe = {
|
|
||||||
{"bobblocks:redblock", "bobblocks:blueblock", "bobblocks:whiteblock"},
|
|
||||||
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Poles
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = 'bobblocks:greypole',
|
|
||||||
recipe = {
|
|
||||||
{"bobblocks:greyblock", "default:stick"},
|
|
||||||
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
-- MESECON
|
|
||||||
-- Add jeija to bobblocks\default.txt and paste the below in at the bottom of bobblocks\blocks.lua
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
|||||||
default
|
|
||||||
mesecons
|
|
@ -1,95 +0,0 @@
|
|||||||
local is_healthpack = function(node)
|
|
||||||
if node.name == 'bobblocks:health_off' or node.name == 'health_on' then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
local update_healthpack = function (pos, node)
|
|
||||||
local nodename=""
|
|
||||||
local param2=""
|
|
||||||
--Switch HealthPack State
|
|
||||||
if node.name == 'bobblocks:health_off' then
|
|
||||||
nodename = 'bobblocks:health_on'
|
|
||||||
elseif node.name == 'bobblocks:health_on' then
|
|
||||||
nodename = 'bobblocks:health_off'
|
|
||||||
end
|
|
||||||
minetest.add_node(pos, {name = nodename})
|
|
||||||
end
|
|
||||||
|
|
||||||
local toggle_healthpack = function (pos, node)
|
|
||||||
if not is_healthgate(node) then return end
|
|
||||||
update_healthpack (pos, node, state)
|
|
||||||
end
|
|
||||||
|
|
||||||
local on_healthpack_punched = function (pos, node, puncher)
|
|
||||||
if node.name == 'bobblocks:health_off' or node.name == 'bobblocks:health_on' then
|
|
||||||
update_healthpack(pos, node)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Healing Node
|
|
||||||
|
|
||||||
minetest.register_node("bobblocks:health_off", {
|
|
||||||
description = "Health Pack 1 Off",
|
|
||||||
tiles = {"bobblocks_health_off.png"},
|
|
||||||
inventory_image = "bobblocks_health_off.png",
|
|
||||||
paramtype2 = "facedir",
|
|
||||||
legacy_facedir_simple = true,
|
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
|
||||||
is_ground_content = true,
|
|
||||||
walkable = false,
|
|
||||||
climbable = false,
|
|
||||||
mesecons = {conductor={
|
|
||||||
state = mesecon.state.off,
|
|
||||||
onstate = "bobblocks:health_on"
|
|
||||||
}}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("bobblocks:health_on", {
|
|
||||||
description = "Health Pack 1 On",
|
|
||||||
tiles = {"bobblocks_health_on.png"},
|
|
||||||
paramtype2 = "facedir",
|
|
||||||
legacy_facedir_simple = true,
|
|
||||||
light_source = default.LIGHT_MAX-1,
|
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
|
||||||
is_ground_content = true,
|
|
||||||
walkable = false,
|
|
||||||
climbable = false,
|
|
||||||
drop = "bobblocks:health_off",
|
|
||||||
mesecons = {conductor={
|
|
||||||
state = mesecon.state.on,
|
|
||||||
offstate = "bobblocks:health_off"
|
|
||||||
}}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_abm(
|
|
||||||
{nodenames = {"bobblocks:health_on"},
|
|
||||||
interval = 1.0,
|
|
||||||
chance = 1,
|
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
||||||
local objs = minetest.get_objects_inside_radius(pos, 1)
|
|
||||||
for k, obj in pairs(objs) do
|
|
||||||
minetest.sound_play("bobblocks_health",
|
|
||||||
{pos = pos, gain = 1.0, max_hear_distance = 32,})
|
|
||||||
obj:set_hp(obj:get_hp()+5) -- give 2.5HP
|
|
||||||
minetest.remove_node(pos) -- remove the node after use
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
--- Health
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "bobblocks:health_off",
|
|
||||||
type = "shapeless",
|
|
||||||
recipe = {
|
|
||||||
"default:dirt", "default:paper", "default:apple", "default:apple"
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_on_punchnode(on_healthpack_punched)
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
|||||||
minetest.log("action", "[BobBlocks By minetest@rabbibob.com] Version 0.0.8 loading....")
|
|
||||||
dofile(minetest.get_modpath("bobblocks") .. "/blocks.lua")
|
|
||||||
minetest.log("action", "[BobBlocks] loaded Blocks")
|
|
||||||
dofile(minetest.get_modpath("bobblocks") .. "/health.lua")
|
|
||||||
minetest.log("action", "[BobBlocks] loaded Health")
|
|
||||||
dofile(minetest.get_modpath("bobblocks") .. "/trap.lua")
|
|
||||||
minetest.log("action", "[BobBlocks] loaded Traps")
|
|
||||||
minetest.log("action", "[BobBlocks By minetest@rabbibob.com] Version 0.0.8 loaded!")
|
|
@ -1,53 +0,0 @@
|
|||||||
-- BobBlocks v0.0.8
|
|
||||||
-- (Minetest 0.4.5 compatible 20130315)
|
|
||||||
-- http://forum.minetest.net/viewtopic.php?id=1274
|
|
||||||
--------------------------------------------------------------------------
|
|
||||||
--------------------------------------------------------------------------
|
|
||||||
-- Requirements: Mesecons --
|
|
||||||
-- http://forum.minetest.net/viewtopic.php?id=628 --
|
|
||||||
-- --
|
|
||||||
-- Does not support jeija or older version of Mesecons --
|
|
||||||
-- before 1/20/2013 --
|
|
||||||
-- http://forum.minetest.net/viewtopic.php?pid=64976#p64976 --
|
|
||||||
--------------------------------------------------------------------------
|
|
||||||
--------------------------------------------------------------------------
|
|
||||||
-- Colored Lit Blocks
|
|
||||||
---- Default state = Solid lit block
|
|
||||||
---- Secondary state (punch) = transparent unlit block
|
|
||||||
---- Mesecons activation [CONDUCTOR]
|
|
||||||
-- Colored Lit Poles
|
|
||||||
---- Default state = Solid lit block
|
|
||||||
---- Secondary state (punch) = unlit block
|
|
||||||
---- Mesecons activation [CONDUCTOR]
|
|
||||||
-- Health Kit
|
|
||||||
---- Default state = health kit inactive
|
|
||||||
---- Secondary state (punch) = health kit active +10HP when walked through
|
|
||||||
---- Mesecons activation [CONDUCTOR]
|
|
||||||
-- Trap
|
|
||||||
---- Default Grass (walkable off)
|
|
||||||
---- Spike Minor (1HP per hit)
|
|
||||||
------ Spikes can be 'set' and activated when walked over
|
|
||||||
---- Spike Major (100HP per hit)
|
|
||||||
------ Spikes can be 'set' and activated when walked over
|
|
||||||
|
|
||||||
# [ATTRIBUTION]
|
|
||||||
# Unless otherwise noted, all graphics & sounds
|
|
||||||
# created by Rabbi Bob
|
|
||||||
# Licensed under the GPLv2/later
|
|
||||||
|
|
||||||
# [GRAPHICS]
|
|
||||||
# minor & major spikes by Death Dealer
|
|
||||||
# License: WTFPL
|
|
||||||
# http://minetest.net/forum/viewtopic.php?id=1582
|
|
||||||
|
|
||||||
# [SOUNDS]
|
|
||||||
# bobblocks_glass
|
|
||||||
# Author: Ch0cchi
|
|
||||||
# http://www.freesound.org/people/Ch0cchi/sounds/15285/
|
|
||||||
# Edited by rabbibob
|
|
||||||
# bobblocks_trap_fall & bobblocks_trap_fall_major
|
|
||||||
# Author: Rock Savage
|
|
||||||
# http://www.freesound.org/people/Rock%20Savage/sounds/65924/#
|
|
||||||
# Edited by rabbibob
|
|
||||||
# bobblocks_health
|
|
||||||
# http://hamsterrepublic.com/ohrrpgce/Free_Sound_Effects.html
|
|
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 154 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1018 B |
Before Width: | Height: | Size: 1016 B |
Before Width: | Height: | Size: 853 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1015 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 993 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 667 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 162 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB |
@ -1,200 +0,0 @@
|
|||||||
-- State Changes
|
|
||||||
|
|
||||||
local update_bobtrap = function (pos, node)
|
|
||||||
local nodename=""
|
|
||||||
local param2=""
|
|
||||||
--Switch Trap State
|
|
||||||
if
|
|
||||||
-- Swap Traps
|
|
||||||
node.name == 'bobblocks:trap_spike' then nodename = 'bobblocks:trap_spike_set'
|
|
||||||
elseif node.name == 'bobblocks:trap_spike_set' then nodename = 'bobblocks:trap_spike'
|
|
||||||
elseif node.name == 'bobblocks:trap_spike_major' then nodename = 'bobblocks:trap_spike_major_set'
|
|
||||||
elseif node.name == 'bobblocks:trap_spike_major_set' then nodename = 'bobblocks:trap_spike_major'
|
|
||||||
end
|
|
||||||
minetest.add_node(pos, {name = nodename})
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Punch Traps
|
|
||||||
local on_bobtrap_punched = function (pos, node, puncher)
|
|
||||||
if
|
|
||||||
-- Start Traps
|
|
||||||
node.name == 'bobblocks:trap_spike' or node.name == 'bobblocks:trap_spike_set' or
|
|
||||||
node.name == 'bobblocks:trap_spike_major' or node.name == 'bobblocks:trap_spike_major_set'
|
|
||||||
then
|
|
||||||
update_bobtrap(pos, node)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_on_punchnode(on_bobtrap_punched)
|
|
||||||
|
|
||||||
|
|
||||||
--ABM (Spring The Traps)
|
|
||||||
|
|
||||||
minetest.register_abm(
|
|
||||||
{nodenames = {"bobblocks:trap_spike_set"},
|
|
||||||
interval = 1.0,
|
|
||||||
chance = 1,
|
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
||||||
local objs = minetest.get_objects_inside_radius(pos, 1)
|
|
||||||
for k, obj in pairs(objs) do
|
|
||||||
|
|
||||||
update_bobtrap(pos, node)
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_abm(
|
|
||||||
{nodenames = {"bobblocks:trap_spike_major_set"},
|
|
||||||
interval = 1.0,
|
|
||||||
chance = 1,
|
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
||||||
local objs = minetest.get_objects_inside_radius(pos, 1)
|
|
||||||
for k, obj in pairs(objs) do
|
|
||||||
|
|
||||||
update_bobtrap(pos, node)
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Nodes
|
|
||||||
minetest.register_node("bobblocks:trap_grass", {
|
|
||||||
description = "Trap Grass",
|
|
||||||
tiles = {"default_grass.png"},
|
|
||||||
paramtype2 = "facedir",
|
|
||||||
legacy_facedir_simple = true,
|
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
|
||||||
is_ground_content = false,
|
|
||||||
walkable = false,
|
|
||||||
climbable = false,
|
|
||||||
})
|
|
||||||
|
|
||||||
local function spikenode(name, desc, texture, drop, groups, drawtype)
|
|
||||||
minetest.register_node("bobblocks:trap_"..name, {
|
|
||||||
description = desc,
|
|
||||||
drawtype = drawtype,
|
|
||||||
tiles = {"bobblocks_"..texture..".png"},
|
|
||||||
inventory_image = ("bobblocks_"..texture..".png"),
|
|
||||||
paramtype = "light",
|
|
||||||
walkable = false,
|
|
||||||
sunlight_propagates = true,
|
|
||||||
groups = groups,
|
|
||||||
drop = drop,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
local function spike1(name, desc, texture)
|
|
||||||
spikenode(name, desc, texture, "bobblocks:trap_"..name, {cracky=3,melty=3}, "plantlike")
|
|
||||||
end
|
|
||||||
|
|
||||||
local function spike2(name, desc, texture, drop)
|
|
||||||
spikenode(name, desc, texture, drop, {cracky=3,melty=3,not_in_creative_inventory=1}, "raillike")
|
|
||||||
end
|
|
||||||
|
|
||||||
spike1("spike", "Trap Spike Minor", "minorspike")
|
|
||||||
spike2("spike_set", "Trap Spike Minor Set", "trap_set", 'bobblocks:trap_spike')
|
|
||||||
spike1("spike_major", "Trap Spike Major", "majorspike")
|
|
||||||
spike2("spike_major_set", "Trap Spike Major Set", "trap_set", 'bobblocks:trap_spike_major')
|
|
||||||
|
|
||||||
minetest.register_node("bobblocks:spike_major_reverse", {
|
|
||||||
description = "Trap Spike Major Reverse",
|
|
||||||
drawtype = "plantlike",
|
|
||||||
visual_scale = 1,
|
|
||||||
tiles = {"bobblocks_majorspike_reverse.png"},
|
|
||||||
inventory_image = ("bobblocks_majorspike_reverse.png"),
|
|
||||||
paramtype = "light",
|
|
||||||
walkable = false,
|
|
||||||
sunlight_propagates = true,
|
|
||||||
groups = {cracky=2,melty=2},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Crafting
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = 'bobblocks:trap_spike 3',
|
|
||||||
recipe = {
|
|
||||||
{'', 'default:obsidian_shard', ''},
|
|
||||||
{'', 'default:steel_ingot', ''},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = 'bobblocks:trap_spike_major',
|
|
||||||
recipe = {
|
|
||||||
{'default:obsidian_shard', 'default:obsidian_shard', 'default:obsidian_shard'},
|
|
||||||
{'', 'default:steel_ingot', ''},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = 'bobblocks:trap_grass',
|
|
||||||
recipe = {
|
|
||||||
{'', '', ''},
|
|
||||||
{'', 'default:dirt', ''},
|
|
||||||
{'', 'default:stick', ''},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = 'bobblocks:spike_major_reverse',
|
|
||||||
recipe = {
|
|
||||||
{'', 'default:steel_ingot', ''},
|
|
||||||
{'default:obsidian_shard', 'default:obsidian_shard', 'default:obsidian_shard'},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- ABM
|
|
||||||
minetest.register_abm(
|
|
||||||
{nodenames = {"bobblocks:trap_spike"},
|
|
||||||
interval = 1.0,
|
|
||||||
chance = 1,
|
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
||||||
local objs = minetest.get_objects_inside_radius(pos, 1)
|
|
||||||
for k, obj in pairs(objs) do
|
|
||||||
if obj:get_hp() > 0 then --MFF (crabman 8/1/2016) dont re-kill dead player
|
|
||||||
obj:set_hp(obj:get_hp()-1)
|
|
||||||
end
|
|
||||||
minetest.sound_play("bobblocks_trap_fall",
|
|
||||||
{pos = pos, gain = 1.0, max_hear_distance = 3,})
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_abm(
|
|
||||||
{nodenames = {"bobblocks:trap_spike_major"},
|
|
||||||
interval = 1.0,
|
|
||||||
chance = 1,
|
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
||||||
local objs = minetest.get_objects_inside_radius(pos, 1)
|
|
||||||
for k, obj in pairs(objs) do
|
|
||||||
if obj:get_hp() > 0 then --MFF (crabman 8/1/2016) dont re-kill dead player
|
|
||||||
obj:set_hp(obj:get_hp()-100)
|
|
||||||
end
|
|
||||||
minetest.sound_play("bobblocks_trap_fall",
|
|
||||||
{pos = pos, gain = 1.0, max_hear_distance = 3,})
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_abm(
|
|
||||||
{nodenames = {"bobblocks:spike_major_reverse"},
|
|
||||||
interval = 1.0,
|
|
||||||
chance = 1,
|
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
||||||
pos.y = pos.y-1.2
|
|
||||||
local objs = minetest.get_objects_inside_radius(pos, 1)
|
|
||||||
for k, obj in pairs(objs) do
|
|
||||||
if obj:get_hp() > 0 then --MFF (crabman 8/1/2016) dont re-kill dead player
|
|
||||||
obj:set_hp(obj:get_hp()-100)
|
|
||||||
end
|
|
||||||
minetest.sound_play("bobblocks_trap_fall",
|
|
||||||
{pos = pos, gain = 1.0, max_hear_distance = 3,})
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
|
|
||||||
})
|
|
1
mods/coloredwood
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit bd490be57191b3f20902ca86f687aeb815fa1f1d
|
1
mods/coloredwood/.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
*~
|
|
@ -1,240 +0,0 @@
|
|||||||
For the code:
|
|
||||||
|
|
||||||
GNU LESSER GENERAL PUBLIC LICENSE
|
|
||||||
Version 3, 29 June 2007
|
|
||||||
|
|
||||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
|
||||||
of this license document, but changing it is not allowed.
|
|
||||||
|
|
||||||
|
|
||||||
This version of the GNU Lesser General Public License incorporates
|
|
||||||
the terms and conditions of version 3 of the GNU General Public
|
|
||||||
License, supplemented by the additional permissions listed below.
|
|
||||||
|
|
||||||
0. Additional Definitions.
|
|
||||||
|
|
||||||
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
||||||
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
||||||
General Public License.
|
|
||||||
|
|
||||||
"The Library" refers to a covered work governed by this License,
|
|
||||||
other than an Application or a Combined Work as defined below.
|
|
||||||
|
|
||||||
An "Application" is any work that makes use of an interface provided
|
|
||||||
by the Library, but which is not otherwise based on the Library.
|
|
||||||
Defining a subclass of a class defined by the Library is deemed a mode
|
|
||||||
of using an interface provided by the Library.
|
|
||||||
|
|
||||||
A "Combined Work" is a work produced by combining or linking an
|
|
||||||
Application with the Library. The particular version of the Library
|
|
||||||
with which the Combined Work was made is also called the "Linked
|
|
||||||
Version".
|
|
||||||
|
|
||||||
The "Minimal Corresponding Source" for a Combined Work means the
|
|
||||||
Corresponding Source for the Combined Work, excluding any source code
|
|
||||||
for portions of the Combined Work that, considered in isolation, are
|
|
||||||
based on the Application, and not on the Linked Version.
|
|
||||||
|
|
||||||
The "Corresponding Application Code" for a Combined Work means the
|
|
||||||
object code and/or source code for the Application, including any data
|
|
||||||
and utility programs needed for reproducing the Combined Work from the
|
|
||||||
Application, but excluding the System Libraries of the Combined Work.
|
|
||||||
|
|
||||||
1. Exception to Section 3 of the GNU GPL.
|
|
||||||
|
|
||||||
You may convey a covered work under sections 3 and 4 of this License
|
|
||||||
without being bound by section 3 of the GNU GPL.
|
|
||||||
|
|
||||||
2. Conveying Modified Versions.
|
|
||||||
|
|
||||||
If you modify a copy of the Library, and, in your modifications, a
|
|
||||||
facility refers to a function or data to be supplied by an Application
|
|
||||||
that uses the facility (other than as an argument passed when the
|
|
||||||
facility is invoked), then you may convey a copy of the modified
|
|
||||||
version:
|
|
||||||
|
|
||||||
a) under this License, provided that you make a good faith effort to
|
|
||||||
ensure that, in the event an Application does not supply the
|
|
||||||
function or data, the facility still operates, and performs
|
|
||||||
whatever part of its purpose remains meaningful, or
|
|
||||||
|
|
||||||
b) under the GNU GPL, with none of the additional permissions of
|
|
||||||
this License applicable to that copy.
|
|
||||||
|
|
||||||
3. Object Code Incorporating Material from Library Header Files.
|
|
||||||
|
|
||||||
The object code form of an Application may incorporate material from
|
|
||||||
a header file that is part of the Library. You may convey such object
|
|
||||||
code under terms of your choice, provided that, if the incorporated
|
|
||||||
material is not limited to numerical parameters, data structure
|
|
||||||
layouts and accessors, or small macros, inline functions and templates
|
|
||||||
(ten or fewer lines in length), you do both of the following:
|
|
||||||
|
|
||||||
a) Give prominent notice with each copy of the object code that the
|
|
||||||
Library is used in it and that the Library and its use are
|
|
||||||
covered by this License.
|
|
||||||
|
|
||||||
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
||||||
document.
|
|
||||||
|
|
||||||
4. Combined Works.
|
|
||||||
|
|
||||||
You may convey a Combined Work under terms of your choice that,
|
|
||||||
taken together, effectively do not restrict modification of the
|
|
||||||
portions of the Library contained in the Combined Work and reverse
|
|
||||||
engineering for debugging such modifications, if you also do each of
|
|
||||||
the following:
|
|
||||||
|
|
||||||
a) Give prominent notice with each copy of the Combined Work that
|
|
||||||
the Library is used in it and that the Library and its use are
|
|
||||||
covered by this License.
|
|
||||||
|
|
||||||
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
||||||
document.
|
|
||||||
|
|
||||||
c) For a Combined Work that displays copyright notices during
|
|
||||||
execution, include the copyright notice for the Library among
|
|
||||||
these notices, as well as a reference directing the user to the
|
|
||||||
copies of the GNU GPL and this license document.
|
|
||||||
|
|
||||||
d) Do one of the following:
|
|
||||||
|
|
||||||
0) Convey the Minimal Corresponding Source under the terms of this
|
|
||||||
License, and the Corresponding Application Code in a form
|
|
||||||
suitable for, and under terms that permit, the user to
|
|
||||||
recombine or relink the Application with a modified version of
|
|
||||||
the Linked Version to produce a modified Combined Work, in the
|
|
||||||
manner specified by section 6 of the GNU GPL for conveying
|
|
||||||
Corresponding Source.
|
|
||||||
|
|
||||||
1) Use a suitable shared library mechanism for linking with the
|
|
||||||
Library. A suitable mechanism is one that (a) uses at run time
|
|
||||||
a copy of the Library already present on the user's computer
|
|
||||||
system, and (b) will operate properly with a modified version
|
|
||||||
of the Library that is interface-compatible with the Linked
|
|
||||||
Version.
|
|
||||||
|
|
||||||
e) Provide Installation Information, but only if you would otherwise
|
|
||||||
be required to provide such information under section 6 of the
|
|
||||||
GNU GPL, and only to the extent that such information is
|
|
||||||
necessary to install and execute a modified version of the
|
|
||||||
Combined Work produced by recombining or relinking the
|
|
||||||
Application with a modified version of the Linked Version. (If
|
|
||||||
you use option 4d0, the Installation Information must accompany
|
|
||||||
the Minimal Corresponding Source and Corresponding Application
|
|
||||||
Code. If you use option 4d1, you must provide the Installation
|
|
||||||
Information in the manner specified by section 6 of the GNU GPL
|
|
||||||
for conveying Corresponding Source.)
|
|
||||||
|
|
||||||
5. Combined Libraries.
|
|
||||||
|
|
||||||
You may place library facilities that are a work based on the
|
|
||||||
Library side by side in a single library together with other library
|
|
||||||
facilities that are not Applications and are not covered by this
|
|
||||||
License, and convey such a combined library under terms of your
|
|
||||||
choice, if you do both of the following:
|
|
||||||
|
|
||||||
a) Accompany the combined library with a copy of the same work based
|
|
||||||
on the Library, uncombined with any other library facilities,
|
|
||||||
conveyed under the terms of this License.
|
|
||||||
|
|
||||||
b) Give prominent notice with the combined library that part of it
|
|
||||||
is a work based on the Library, and explaining where to find the
|
|
||||||
accompanying uncombined form of the same work.
|
|
||||||
|
|
||||||
6. Revised Versions of the GNU Lesser General Public License.
|
|
||||||
|
|
||||||
The Free Software Foundation may publish revised and/or new versions
|
|
||||||
of the GNU Lesser General Public License from time to time. Such new
|
|
||||||
versions will be similar in spirit to the present version, but may
|
|
||||||
differ in detail to address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the
|
|
||||||
Library as you received it specifies that a certain numbered version
|
|
||||||
of the GNU Lesser General Public License "or any later version"
|
|
||||||
applies to it, you have the option of following the terms and
|
|
||||||
conditions either of that published version or of any later version
|
|
||||||
published by the Free Software Foundation. If the Library as you
|
|
||||||
received it does not specify a version number of the GNU Lesser
|
|
||||||
General Public License, you may choose any version of the GNU Lesser
|
|
||||||
General Public License ever published by the Free Software Foundation.
|
|
||||||
|
|
||||||
If the Library as you received it specifies that a proxy can decide
|
|
||||||
whether future versions of the GNU Lesser General Public License shall
|
|
||||||
apply, that proxy's public statement of acceptance of any version is
|
|
||||||
permanent authorization for you to choose that version for the
|
|
||||||
Library.
|
|
||||||
|
|
||||||
----------
|
|
||||||
|
|
||||||
For the textures:
|
|
||||||
|
|
||||||
Creative Commons Legal Code
|
|
||||||
|
|
||||||
Attribution-ShareAlike 2.0
|
|
||||||
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE.
|
|
||||||
|
|
||||||
License
|
|
||||||
|
|
||||||
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
|
|
||||||
|
|
||||||
BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
|
|
||||||
|
|
||||||
1. Definitions
|
|
||||||
|
|
||||||
"Collective Work" means a work, such as a periodical issue, anthology or encyclopedia, in which the Work in its entirety in unmodified form, along with a number of other contributions, constituting separate and independent works in themselves, are assembled into a collective whole. A work that constitutes a Collective Work will not be considered a Derivative Work (as defined below) for the purposes of this License.
|
|
||||||
"Derivative Work" means a work based upon the Work or upon the Work and other pre-existing works, such as a translation, musical arrangement, dramatization, fictionalization, motion picture version, sound recording, art reproduction, abridgment, condensation, or any other form in which the Work may be recast, transformed, or adapted, except that a work that constitutes a Collective Work will not be considered a Derivative Work for the purpose of this License. For the avoidance of doubt, where the Work is a musical composition or sound recording, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered a Derivative Work for the purpose of this License.
|
|
||||||
"Licensor" means the individual or entity that offers the Work under the terms of this License.
|
|
||||||
"Original Author" means the individual or entity who created the Work.
|
|
||||||
"Work" means the copyrightable work of authorship offered under the terms of this License.
|
|
||||||
"You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
|
|
||||||
"License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, ShareAlike.
|
|
||||||
|
|
||||||
2. Fair Use Rights. Nothing in this license is intended to reduce, limit, or restrict any rights arising from fair use, first sale or other limitations on the exclusive rights of the copyright owner under copyright law or other applicable laws.
|
|
||||||
|
|
||||||
3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
|
|
||||||
|
|
||||||
to reproduce the Work, to incorporate the Work into one or more Collective Works, and to reproduce the Work as incorporated in the Collective Works;
|
|
||||||
to create and reproduce Derivative Works;
|
|
||||||
to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission the Work including as incorporated in Collective Works;
|
|
||||||
to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission Derivative Works.
|
|
||||||
|
|
||||||
For the avoidance of doubt, where the work is a musical composition:
|
|
||||||
Performance Royalties Under Blanket Licenses. Licensor waives the exclusive right to collect, whether individually or via a performance rights society (e.g. ASCAP, BMI, SESAC), royalties for the public performance or public digital performance (e.g. webcast) of the Work.
|
|
||||||
Mechanical Rights and Statutory Royalties. Licensor waives the exclusive right to collect, whether individually or via a music rights society or designated agent (e.g. Harry Fox Agency), royalties for any phonorecord You create from the Work ("cover version") and distribute, subject to the compulsory license created by 17 USC Section 115 of the US Copyright Act (or the equivalent in other jurisdictions).
|
|
||||||
Webcasting Rights and Statutory Royalties. For the avoidance of doubt, where the Work is a sound recording, Licensor waives the exclusive right to collect, whether individually or via a performance-rights society (e.g. SoundExchange), royalties for the public digital performance (e.g. webcast) of the Work, subject to the compulsory license created by 17 USC Section 114 of the US Copyright Act (or the equivalent in other jurisdictions).
|
|
||||||
|
|
||||||
The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. All rights not expressly granted by Licensor are hereby reserved.
|
|
||||||
|
|
||||||
4. Restrictions.The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
|
|
||||||
|
|
||||||
You may distribute, publicly display, publicly perform, or publicly digitally perform the Work only under the terms of this License, and You must include a copy of, or the Uniform Resource Identifier for, this License with every copy or phonorecord of the Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Work that alter or restrict the terms of this License or the recipients' exercise of the rights granted hereunder. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties. You may not distribute, publicly display, publicly perform, or publicly digitally perform the Work with any technological measures that control access or use of the Work in a manner inconsistent with the terms of this License Agreement. The above applies to the Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Work itself to be made subject to the terms of this License. If You create a Collective Work, upon notice from any Licensor You must, to the extent practicable, remove from the Collective Work any reference to such Licensor or the Original Author, as requested. If You create a Derivative Work, upon notice from any Licensor You must, to the extent practicable, remove from the Derivative Work any reference to such Licensor or the Original Author, as requested.
|
|
||||||
You may distribute, publicly display, publicly perform, or publicly digitally perform a Derivative Work only under the terms of this License, a later version of this License with the same License Elements as this License, or a Creative Commons iCommons license that contains the same License Elements as this License (e.g. Attribution-ShareAlike 2.0 Japan). You must include a copy of, or the Uniform Resource Identifier for, this License or other license specified in the previous sentence with every copy or phonorecord of each Derivative Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Derivative Works that alter or restrict the terms of this License or the recipients' exercise of the rights granted hereunder, and You must keep intact all notices that refer to this License and to the disclaimer of warranties. You may not distribute, publicly display, publicly perform, or publicly digitally perform the Derivative Work with any technological measures that control access or use of the Work in a manner inconsistent with the terms of this License Agreement. The above applies to the Derivative Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Derivative Work itself to be made subject to the terms of this License.
|
|
||||||
If you distribute, publicly display, publicly perform, or publicly digitally perform the Work or any Derivative Works or Collective Works, You must keep intact all copyright notices for the Work and give the Original Author credit reasonable to the medium or means You are utilizing by conveying the name (or pseudonym if applicable) of the Original Author if supplied; the title of the Work if supplied; to the extent reasonably practicable, the Uniform Resource Identifier, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and in the case of a Derivative Work, a credit identifying the use of the Work in the Derivative Work (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). Such credit may be implemented in any reasonable manner; provided, however, that in the case of a Derivative Work or Collective Work, at a minimum such credit will appear where any other comparable authorship credit appears and in a manner at least as prominent as such other comparable authorship credit.
|
|
||||||
|
|
||||||
5. Representations, Warranties and Disclaimer
|
|
||||||
|
|
||||||
UNLESS OTHERWISE AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE MATERIALS, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
|
|
||||||
|
|
||||||
6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
|
||||||
|
|
||||||
7. Termination
|
|
||||||
|
|
||||||
This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Derivative Works or Collective Works from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
|
|
||||||
Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
|
|
||||||
|
|
||||||
8. Miscellaneous
|
|
||||||
|
|
||||||
Each time You distribute or publicly digitally perform the Work or a Collective Work, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
|
|
||||||
Each time You distribute or publicly digitally perform a Derivative Work, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
|
|
||||||
If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
|
|
||||||
No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
|
|
||||||
This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
|
|
||||||
|
|
||||||
Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor.
|
|
||||||
|
|
||||||
Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, neither party will use the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time.
|
|
||||||
|
|
||||||
Creative Commons may be contacted at http://creativecommons.org/.
|
|
||||||
|
|
@ -1,75 +0,0 @@
|
|||||||
Vanessa's Colored Woods mod
|
|
||||||
===========================
|
|
||||||
|
|
||||||
This mod provides a multitude of colors of wood, sticks, and fences to
|
|
||||||
Minetest, as per the palette outlined by my Unified Dyes mod.
|
|
||||||
|
|
||||||
Requires unifieddyes and flowers if you want to craft the various items. If
|
|
||||||
you don't have (or don't want to use) those two mods, you can also use /giveme
|
|
||||||
to get the items you want.
|
|
||||||
|
|
||||||
Objects and their texture files are named using the same scheme as UnifiedDyes:
|
|
||||||
|
|
||||||
coloredwood:wood_red
|
|
||||||
coloredwood:stick_dark_green
|
|
||||||
coloredwood:fence_medium_blue_s50
|
|
||||||
|
|
||||||
And so on.
|
|
||||||
|
|
||||||
|
|
||||||
Crafting
|
|
||||||
========
|
|
||||||
|
|
||||||
Colored wood blocks
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
Place two regular wood blocks and one portion of the desired dye color
|
|
||||||
into the crafting grid, in any position. Yields two colored wood blocks. Use
|
|
||||||
these directly to build with, or craft them into sticks.
|
|
||||||
|
|
||||||
|
|
||||||
Colored sticks
|
|
||||||
--------------
|
|
||||||
|
|
||||||
Just drop a colored wood block into the crafting grid as you would with an
|
|
||||||
uncolored wood block. Yields 4 sticks of the same color as the wood block.
|
|
||||||
|
|
||||||
While you cannot directly dye uncolored sticks, you can use them to craft
|
|
||||||
colored fences.
|
|
||||||
|
|
||||||
|
|
||||||
Colored fences
|
|
||||||
--------------
|
|
||||||
|
|
||||||
Lay out six of the above colored sticks (must be all the same color) in the
|
|
||||||
usual two-row fence-crafting pattern. Yields two colored fenceposts).
|
|
||||||
|
|
||||||
---- ---- ----
|
|
||||||
CStick CStick CStick
|
|
||||||
CStick CStick CStick
|
|
||||||
|
|
||||||
OR: Lay out six regular sticks in the usual fence-crafting pattern, plus one
|
|
||||||
portion of the desired dye color in the upper left corner of the grid (yields
|
|
||||||
two colored fenceposts):
|
|
||||||
|
|
||||||
Dye --- ---
|
|
||||||
Stick Stick Stick
|
|
||||||
Stick Stick Stick
|
|
||||||
|
|
||||||
OR: Place two regular wooden fenceposts into the crafting grid along with one
|
|
||||||
portion of the desired dye color, in any position. Yields two colored
|
|
||||||
fenceposts.
|
|
||||||
|
|
||||||
|
|
||||||
Ladders
|
|
||||||
-------
|
|
||||||
|
|
||||||
Finally, if you find yourself short on uncolored sticks to make ladders out of,
|
|
||||||
and you have a surplus of one or more colors, you can craft them into regular,
|
|
||||||
uncolored ladders. Place any colored sticks you want, in any combination, into
|
|
||||||
the crafting grid in the standard ladder pattern. Yields two colored ladders
|
|
||||||
(to try to make up for the wasted dye).
|
|
||||||
|
|
||||||
CStick ---- CStick
|
|
||||||
CStick CStick CStick
|
|
||||||
CStick ---- CStick
|
|
@ -1,3 +0,0 @@
|
|||||||
default
|
|
||||||
unifieddyes
|
|
||||||
moreblocks?
|
|
@ -1,301 +0,0 @@
|
|||||||
-- Fences portion of Colored Wood mod by Vanessa Ezekowitz ~~ 2012-07-17
|
|
||||||
-- based on my unified dyes modding template.
|
|
||||||
--
|
|
||||||
-- License: WTFPL
|
|
||||||
|
|
||||||
local colored_block_modname = "coloredwood"
|
|
||||||
local colored_block_description = "Wooden Fence"
|
|
||||||
local neutral_block = "default:fence_wood"
|
|
||||||
local colored_block_sunlight = "false"
|
|
||||||
local colored_block_walkable = "true"
|
|
||||||
local colored_block_groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2}
|
|
||||||
local colored_block_sound = default.node_sound_wood_defaults()
|
|
||||||
|
|
||||||
for shade = 1, 3 do
|
|
||||||
|
|
||||||
local shadename = coloredwood.shades[shade]
|
|
||||||
local shadename2 = coloredwood.shades2[shade]
|
|
||||||
|
|
||||||
for hue = 1, 12 do
|
|
||||||
|
|
||||||
local huename = coloredwood.hues[hue]
|
|
||||||
local huename2 = coloredwood.hues2[hue]
|
|
||||||
|
|
||||||
local colorname = colored_block_modname..":fence_"..shadename..huename
|
|
||||||
local pngnameinv = colored_block_modname.."_fence_"..shadename..huename..".png"
|
|
||||||
local pngname = colored_block_modname.."_wood_"..shadename..huename..".png"
|
|
||||||
local nodedesc = shadename2..huename2..colored_block_description
|
|
||||||
local stickname = colored_block_modname..":stick_"..shadename..huename
|
|
||||||
|
|
||||||
local s50colorname = colored_block_modname..":fence_"..shadename..huename.."_s50"
|
|
||||||
local s50pngname = colored_block_modname.."_wood_"..shadename..huename.."_s50.png"
|
|
||||||
local s50pngnameinv = colored_block_modname.."_fence_"..shadename..huename.."_s50.png"
|
|
||||||
local s50nodedesc = shadename2..huename2..colored_block_description.." (50% Saturation)"
|
|
||||||
local s50stickname = colored_block_modname..":stick_"..shadename..huename.."_s50"
|
|
||||||
|
|
||||||
minetest.register_node(colorname, {
|
|
||||||
drawtype = "fencelike",
|
|
||||||
description = nodedesc,
|
|
||||||
tiles = { pngname },
|
|
||||||
inventory_image = pngnameinv,
|
|
||||||
wield_image = pngnameinv,
|
|
||||||
sunlight_propagates = colored_block_sunlight,
|
|
||||||
paramtype = "light",
|
|
||||||
walkable = colored_block_walkable,
|
|
||||||
groups = colored_block_groups,
|
|
||||||
sounds = colored_block_sound,
|
|
||||||
selection_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node(s50colorname, {
|
|
||||||
drawtype = "fencelike",
|
|
||||||
description = s50nodedesc,
|
|
||||||
tiles = { s50pngname },
|
|
||||||
inventory_image = s50pngnameinv,
|
|
||||||
wield_image = s50pngnameinv,
|
|
||||||
sunlight_propagates = colored_block_sunlight,
|
|
||||||
paramtype = "light",
|
|
||||||
walkable = colored_block_walkable,
|
|
||||||
groups = colored_block_groups,
|
|
||||||
sounds = colored_block_sound,
|
|
||||||
selection_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "fuel",
|
|
||||||
recipe = colorname,
|
|
||||||
burntime = 7,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "fuel",
|
|
||||||
recipe = s50colorname,
|
|
||||||
burntime = 7,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = colorname.." 2" ,
|
|
||||||
recipe = {
|
|
||||||
{stickname, stickname, stickname },
|
|
||||||
{stickname, stickname, stickname }
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = s50colorname.." 2",
|
|
||||||
recipe = {
|
|
||||||
{s50stickname, s50stickname, s50stickname },
|
|
||||||
{s50stickname, s50stickname, s50stickname }
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = colorname.." 2",
|
|
||||||
recipe = {
|
|
||||||
{ "unifieddyes:"..shadename..huename, "", "" },
|
|
||||||
{"group:stick", "group:stick", "group:stick"},
|
|
||||||
{"group:stick", "group:stick", "group:stick"},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = s50colorname.." 2",
|
|
||||||
recipe = {
|
|
||||||
{ "unifieddyes:"..shadename..huename.."_s50", "", "" },
|
|
||||||
{"group:stick", "group:stick", "group:stick"},
|
|
||||||
{"group:stick", "group:stick", "group:stick"},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
type = "shapeless",
|
|
||||||
output = colorname.." 2",
|
|
||||||
recipe = {
|
|
||||||
neutral_block,
|
|
||||||
neutral_block,
|
|
||||||
"unifieddyes:"..shadename..huename
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
type = "shapeless",
|
|
||||||
output = colorname.." 2",
|
|
||||||
recipe = {
|
|
||||||
neutral_block,
|
|
||||||
neutral_block,
|
|
||||||
"unifieddyes:"..shadename..huename.."_s50"
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Generate the "light" shades separately, since they don"t have a low-sat version.
|
|
||||||
|
|
||||||
for hue = 1, 12 do
|
|
||||||
local huename = coloredwood.hues[hue]
|
|
||||||
local huename2 = coloredwood.hues2[hue]
|
|
||||||
local colorname = colored_block_modname..":fence_light_"..huename
|
|
||||||
local pngname = colored_block_modname.."_wood_light_"..huename..".png"
|
|
||||||
local pngnameinv = colored_block_modname.."_fence_light_"..huename..".png"
|
|
||||||
local nodedesc = "Light "..huename2..colored_block_description
|
|
||||||
local stickname = colored_block_modname..":stick_light_"..huename
|
|
||||||
|
|
||||||
minetest.register_node(colorname, {
|
|
||||||
drawtype = "fencelike",
|
|
||||||
description = nodedesc,
|
|
||||||
tiles = { pngname },
|
|
||||||
inventory_image = pngnameinv,
|
|
||||||
wield_image = pngnameinv,
|
|
||||||
sunlight_propagates = colored_block_sunlight,
|
|
||||||
paramtype = "light",
|
|
||||||
walkable = colored_block_walkable,
|
|
||||||
groups = colored_block_groups,
|
|
||||||
sounds = colored_block_sound,
|
|
||||||
selection_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "fuel",
|
|
||||||
recipe = colorname,
|
|
||||||
burntime = 7,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = colorname.." 2",
|
|
||||||
recipe = {
|
|
||||||
{stickname, stickname, stickname },
|
|
||||||
{stickname, stickname, stickname }
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = colorname.." 2",
|
|
||||||
recipe = {
|
|
||||||
{ "unifieddyes:light_"..huename, "", "" },
|
|
||||||
{"group:stick", "group:stick", "group:stick"},
|
|
||||||
{"group:stick", "group:stick", "group:stick"},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
type = "shapeless",
|
|
||||||
output = colorname.." 2",
|
|
||||||
recipe = {
|
|
||||||
neutral_block,
|
|
||||||
neutral_block,
|
|
||||||
"unifieddyes:light_"..huename
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
-- extra recipes for default dye colors.
|
|
||||||
|
|
||||||
for _, color in ipairs(coloredwood.default_hues) do
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "coloredwood:fence_"..color.." 2",
|
|
||||||
recipe = {
|
|
||||||
{ "dye:"..color, "", "" },
|
|
||||||
{"group:stick", "group:stick", "group:stick"},
|
|
||||||
{"group:stick", "group:stick", "group:stick"},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "coloredwood:fence_light_red 2",
|
|
||||||
recipe = {
|
|
||||||
{ "dye:pink", "", "" },
|
|
||||||
{"group:stick", "group:stick", "group:stick"},
|
|
||||||
{"group:stick", "group:stick", "group:stick"},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "coloredwood:fence_dark_orange 2",
|
|
||||||
recipe = {
|
|
||||||
{ "dye:brown", "", "" },
|
|
||||||
{"group:stick", "group:stick", "group:stick"},
|
|
||||||
{"group:stick", "group:stick", "group:stick"},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- ============================================================
|
|
||||||
-- The 5 levels of greyscale.
|
|
||||||
--
|
|
||||||
-- Oficially these are 0, 25, 50, 75, and 100% relative to white,
|
|
||||||
-- but in practice, they"re actually 7.5%, 25%, 50%, 75%, and 95%.
|
|
||||||
-- (otherwise black and white would wash out).
|
|
||||||
|
|
||||||
for grey = 1,5 do
|
|
||||||
|
|
||||||
local greyname = coloredwood.greys[grey]
|
|
||||||
local greyname2 = coloredwood.greys2[grey]
|
|
||||||
local greyname3 = coloredwood.greys3[grey]
|
|
||||||
|
|
||||||
local greyshadename = colored_block_modname..":fence_"..greyname
|
|
||||||
local pngname = colored_block_modname.."_wood_"..greyname..".png"
|
|
||||||
local pngnameinv = colored_block_modname.."_fence_"..greyname..".png"
|
|
||||||
local nodedesc = greyname2..colored_block_description
|
|
||||||
local stickname = colored_block_modname..":stick_"..greyname
|
|
||||||
|
|
||||||
minetest.register_node(greyshadename, {
|
|
||||||
drawtype = "fencelike",
|
|
||||||
description = nodedesc,
|
|
||||||
tiles = { pngname },
|
|
||||||
inventory_image = pngnameinv,
|
|
||||||
wield_image = pngnameinv,
|
|
||||||
sunlight_propagates = colored_block_sunlight,
|
|
||||||
paramtype = "light",
|
|
||||||
walkable = colored_block_walkable,
|
|
||||||
groups = colored_block_groups,
|
|
||||||
sounds = colored_block_sound,
|
|
||||||
selection_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "fuel",
|
|
||||||
recipe = greyshadename,
|
|
||||||
burntime = 7,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = greyshadename.." 2",
|
|
||||||
recipe = {
|
|
||||||
{stickname, stickname, stickname },
|
|
||||||
{stickname, stickname, stickname }
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = greyshadename.." 2",
|
|
||||||
recipe = {
|
|
||||||
{ greyname3, "", "" },
|
|
||||||
{"group:stick", "group:stick", "group:stick"},
|
|
||||||
{"group:stick", "group:stick", "group:stick"},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
type = "shapeless",
|
|
||||||
output = greyshadename.." 2",
|
|
||||||
recipe = {
|
|
||||||
neutral_block,
|
|
||||||
neutral_block,
|
|
||||||
greyname3
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
end
|
|
@ -1,137 +0,0 @@
|
|||||||
-- Colored Wood mod by Vanessa Ezekowitz
|
|
||||||
-- based on my unifieddyes template.
|
|
||||||
--
|
|
||||||
-- License: WTFPL
|
|
||||||
--
|
|
||||||
-- This mod provides 89 colors of wood, fences, and sticks, and enough
|
|
||||||
-- cross-compatible recipes to make everything fit together naturally.
|
|
||||||
--
|
|
||||||
-- Colored wood is crafted by putting two regular wood blocks into the
|
|
||||||
-- grid along with one dye color, in any order and position. The result
|
|
||||||
-- is two colored wood blocks.
|
|
||||||
--
|
|
||||||
-- Colored sticks are crafted from colored wood blocks only - one colored
|
|
||||||
-- wood block in any position yields 4 colored sticks as usual.
|
|
||||||
--
|
|
||||||
-- Uncolored sticks cannot be dyed separately, but they can still be used
|
|
||||||
-- to build colored wooden fences. These are crafted either by placing six
|
|
||||||
-- plain, uncolored sticks into the crafting grid in the usual manner, plus
|
|
||||||
-- one portion of dye in the upper-left corner of the grid
|
|
||||||
-- (D = dye, S = uncolored stick):
|
|
||||||
--
|
|
||||||
-- D - -
|
|
||||||
-- S S S
|
|
||||||
-- S S S
|
|
||||||
--
|
|
||||||
-- You can also craft a colored fence by using colored sticks derived from
|
|
||||||
-- colored wood. Just place six of them in the same manner as with plain
|
|
||||||
-- fences (CS = colored stick):
|
|
||||||
--
|
|
||||||
-- -- -- --
|
|
||||||
-- CS CS CS
|
|
||||||
-- CS CS CS
|
|
||||||
--
|
|
||||||
-- If you find yourself with too many colors of sticks and not enough,
|
|
||||||
-- ladders, you can use any color (as long as they"re all the same) to
|
|
||||||
-- create a ladder, but it"ll always result in a plain, uncolored ladder.
|
|
||||||
-- This practice isn"t recommended of course, since it wastes dye.
|
|
||||||
--
|
|
||||||
-- All materials are flammable and can be used as fuel.
|
|
||||||
|
|
||||||
-- Hues are on a 30 degree spacing starting at red = 0 degrees.
|
|
||||||
-- "s50" in a file/item name means "saturation: 50%".
|
|
||||||
-- Texture brightness levels for the colors are 100%, 66% ("medium"),
|
|
||||||
-- and 33% ("dark").
|
|
||||||
|
|
||||||
coloredwood = {}
|
|
||||||
|
|
||||||
coloredwood.shades = {
|
|
||||||
"dark_",
|
|
||||||
"medium_",
|
|
||||||
"" -- represents "no special shade name", e.g. full.
|
|
||||||
}
|
|
||||||
|
|
||||||
coloredwood.shades2 = {
|
|
||||||
"Dark ",
|
|
||||||
"Medium ",
|
|
||||||
"" -- represents "no special shade name", e.g. full.
|
|
||||||
}
|
|
||||||
|
|
||||||
coloredwood.default_hues = {
|
|
||||||
"white",
|
|
||||||
"grey",
|
|
||||||
"dark_grey",
|
|
||||||
"black",
|
|
||||||
"violet",
|
|
||||||
"blue",
|
|
||||||
"cyan",
|
|
||||||
"dark_green",
|
|
||||||
"green",
|
|
||||||
"yellow",
|
|
||||||
"orange",
|
|
||||||
"red",
|
|
||||||
"magenta"
|
|
||||||
}
|
|
||||||
|
|
||||||
coloredwood.hues = {
|
|
||||||
"red",
|
|
||||||
"orange",
|
|
||||||
"yellow",
|
|
||||||
"lime",
|
|
||||||
"green",
|
|
||||||
"aqua",
|
|
||||||
"cyan",
|
|
||||||
"skyblue",
|
|
||||||
"blue",
|
|
||||||
"violet",
|
|
||||||
"magenta",
|
|
||||||
"redviolet"
|
|
||||||
}
|
|
||||||
|
|
||||||
coloredwood.hues2 = {
|
|
||||||
"Red ",
|
|
||||||
"Orange ",
|
|
||||||
"Yellow ",
|
|
||||||
"Lime ",
|
|
||||||
"Green ",
|
|
||||||
"Aqua ",
|
|
||||||
"Cyan ",
|
|
||||||
"Sky Blue ",
|
|
||||||
"Blue ",
|
|
||||||
"Violet ",
|
|
||||||
"Magenta ",
|
|
||||||
"Red-violet "
|
|
||||||
}
|
|
||||||
|
|
||||||
coloredwood.greys = {
|
|
||||||
"black",
|
|
||||||
"darkgrey",
|
|
||||||
"grey",
|
|
||||||
"lightgrey",
|
|
||||||
"white"
|
|
||||||
}
|
|
||||||
|
|
||||||
coloredwood.greys2 = {
|
|
||||||
"Black ",
|
|
||||||
"Dark Grey ",
|
|
||||||
"Medium Grey ",
|
|
||||||
"Light Grey ",
|
|
||||||
"White "
|
|
||||||
}
|
|
||||||
|
|
||||||
coloredwood.greys3 = {
|
|
||||||
"dye:black",
|
|
||||||
"dye:dark_grey",
|
|
||||||
"dye:grey",
|
|
||||||
"dye:light_grey",
|
|
||||||
"dye:white"
|
|
||||||
}
|
|
||||||
|
|
||||||
-- All of the actual code is contained in separate lua files:
|
|
||||||
|
|
||||||
dofile(minetest.get_modpath("coloredwood").."/wood.lua")
|
|
||||||
dofile(minetest.get_modpath("coloredwood").."/fence.lua")
|
|
||||||
dofile(minetest.get_modpath("coloredwood").."/stick.lua")
|
|
||||||
|
|
||||||
minetest.log("action", "[Colored Wood] Loaded!")
|
|
||||||
|
|
@ -1,152 +0,0 @@
|
|||||||
-- Sticks portion of Colored Wood mod by Vanessa Ezekowitz ~~ 2012-07-17
|
|
||||||
-- based on my unified dyes modding template.
|
|
||||||
--
|
|
||||||
-- License: WTFPL
|
|
||||||
|
|
||||||
local colored_block_modname = "coloredwood"
|
|
||||||
local colored_block_description = "Stick"
|
|
||||||
|
|
||||||
for shade = 1, 3 do
|
|
||||||
|
|
||||||
local shadename = coloredwood.shades[shade]
|
|
||||||
local shadename2 = coloredwood.shades2[shade]
|
|
||||||
|
|
||||||
for hue = 1, 12 do
|
|
||||||
|
|
||||||
local huename = coloredwood.hues[hue]
|
|
||||||
local huename2 = coloredwood.hues2[hue]
|
|
||||||
|
|
||||||
local colorname = colored_block_modname..":stick_"..shadename..huename
|
|
||||||
local pngname = colored_block_modname.."_stick_"..shadename..huename..".png"
|
|
||||||
local itemdesc = shadename2..huename2..colored_block_description
|
|
||||||
local woodname = colored_block_modname..":wood_"..shadename..huename
|
|
||||||
local s50colorname = colored_block_modname..":stick_"..shadename..huename.."_s50"
|
|
||||||
local s50pngname = colored_block_modname.."_stick_"..shadename..huename.."_s50.png"
|
|
||||||
local s50itemdesc = shadename2..huename2..colored_block_description.." (50% Saturation)"
|
|
||||||
local s50woodname = colored_block_modname..":wood_"..shadename..huename.."_s50"
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "fuel",
|
|
||||||
recipe = colorname,
|
|
||||||
burntime = 7,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "fuel",
|
|
||||||
recipe = s50colorname,
|
|
||||||
burntime = 7,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem(colorname, {
|
|
||||||
description = itemdesc,
|
|
||||||
inventory_image = pngname,
|
|
||||||
groups = { coloredsticks=1, stick=1 }
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem(s50colorname, {
|
|
||||||
description = s50itemdesc,
|
|
||||||
inventory_image = s50pngname,
|
|
||||||
groups = { coloredsticks=1, stick=1 }
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
type = "shapeless",
|
|
||||||
output = colorname.." 4",
|
|
||||||
recipe = {
|
|
||||||
woodname
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
type = "shapeless",
|
|
||||||
output = s50colorname.." 4",
|
|
||||||
recipe = {
|
|
||||||
s50woodname
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Generate the "light" shades separately, since they don"t have a low-sat version.
|
|
||||||
|
|
||||||
for hue = 1, 12 do
|
|
||||||
local huename = coloredwood.hues[hue]
|
|
||||||
local huename2 = coloredwood.hues2[hue]
|
|
||||||
local colorname = colored_block_modname..":stick_light_"..huename
|
|
||||||
local pngname = colored_block_modname.."_stick_light_"..huename..".png"
|
|
||||||
local itemdesc = "Light "..huename2..colored_block_description
|
|
||||||
local woodname = colored_block_modname..":wood_light_"..huename
|
|
||||||
|
|
||||||
minetest.register_craftitem(colorname, {
|
|
||||||
description = itemdesc,
|
|
||||||
inventory_image = pngname,
|
|
||||||
groups = { coloredsticks=1, stick=1 }
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "fuel",
|
|
||||||
recipe = colorname,
|
|
||||||
burntime = 7,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
type = "shapeless",
|
|
||||||
output = colorname.." 4",
|
|
||||||
recipe = {
|
|
||||||
woodname
|
|
||||||
}
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
-- ============================================================
|
|
||||||
-- The 5 levels of greyscale.
|
|
||||||
--
|
|
||||||
-- Oficially these are 0, 25, 50, 75, and 100% relative to white,
|
|
||||||
-- but in practice, they"re actually 7.5%, 25%, 50%, 75%, and 95%.
|
|
||||||
-- (otherwise black and white would wash out).
|
|
||||||
|
|
||||||
for grey = 1,5 do
|
|
||||||
|
|
||||||
local greyname = coloredwood.greys[grey]
|
|
||||||
local greyname2 = coloredwood.greys2[grey]
|
|
||||||
|
|
||||||
local greyshadename = colored_block_modname..":stick_"..greyname
|
|
||||||
local pngname = colored_block_modname.."_stick_"..greyname..".png"
|
|
||||||
local itemdesc = greyname2..colored_block_description
|
|
||||||
local greywoodname = colored_block_modname..":wood_"..greyname
|
|
||||||
|
|
||||||
minetest.register_craftitem(greyshadename, {
|
|
||||||
description = itemdesc,
|
|
||||||
inventory_image = pngname,
|
|
||||||
groups = { coloredsticks=1, stick=1 }
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "fuel",
|
|
||||||
recipe = greyshadename,
|
|
||||||
burntime = 7,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
type = "shapeless",
|
|
||||||
output = greyshadename.." 4",
|
|
||||||
recipe = {
|
|
||||||
greywoodname
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
-- ====================================================================
|
|
||||||
-- This recipe causes all colored sticks to be usable to craft ladders.
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "default:ladder 2" ,
|
|
||||||
recipe = {
|
|
||||||
{"group:coloredsticks", "" , "group:coloredsticks" },
|
|
||||||
{"group:coloredsticks", "group:coloredsticks", "group:coloredsticks" },
|
|
||||||
{"group:coloredsticks", "" , "group:coloredsticks" }
|
|
||||||
}
|
|
||||||
})
|
|
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 205 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 340 B |
Before Width: | Height: | Size: 327 B |
Before Width: | Height: | Size: 345 B |
Before Width: | Height: | Size: 327 B |
Before Width: | Height: | Size: 340 B |
Before Width: | Height: | Size: 327 B |
Before Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 298 B |
Before Width: | Height: | Size: 327 B |
Before Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 340 B |
Before Width: | Height: | Size: 327 B |
Before Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 345 B |
Before Width: | Height: | Size: 327 B |
Before Width: | Height: | Size: 199 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 208 B |
Before Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 217 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 383 B |