Bugfix Marathon, Didnt Denote
This commit is contained in:
parent
889cc44174
commit
7d200e4d63
@ -22,14 +22,5 @@ minetest.override_item(modname.. ":adamant_crystal",{
|
||||
},
|
||||
light_source = 1, glow = 1
|
||||
})
|
||||
------------------------------------------------------------------------
|
||||
minetest.override_item(modname.. ":adamant_lattice",{
|
||||
groups = {
|
||||
cracky = 5,
|
||||
crystal = 1,
|
||||
lux_absorb = 10
|
||||
},
|
||||
light_source = 1, glow = 1
|
||||
})
|
||||
-- ================================================================== --
|
||||
|
||||
|
44
crystals.lua
44
crystals.lua
@ -53,29 +53,6 @@ local function register_crystal(id, desc, mohs, color)
|
||||
},
|
||||
-- drop_in_place = "air",
|
||||
})
|
||||
------------------------------------------------------------------------
|
||||
minetest.register_node(modname.. ":" ..id.. "_lattice", {
|
||||
description = desc.. " Lattice",
|
||||
tiles = {mineral},
|
||||
drawtype = "nodebox",
|
||||
node_box = nodecore.fixedbox(
|
||||
{-lt, -ll, -lt, lt, ll, lt},
|
||||
{-ll, -lt, -lt, ll, lt, lt},
|
||||
{-lt, -lt, -ll, lt, lt, ll}
|
||||
),
|
||||
selection_box = nodecore.fixedbox(
|
||||
{-lf, -ll, -lf, lf, ll, lf},
|
||||
{-ll, -lf, -lf, ll, lf, lf},
|
||||
{-lf, -lf, -ll, lf, lf, ll}
|
||||
),
|
||||
paramtype = "light",
|
||||
use_texture_alpha = "blend",
|
||||
climbable = true,
|
||||
sunlight_propagates = true,
|
||||
groups = {cracky = mohs, crystal = 1, lattice = 1},
|
||||
sounds = nodecore.sounds("nc_optics_glassy"),
|
||||
-- light_source = 10 --for testing purposes
|
||||
})
|
||||
------------------------------------------------------------------------
|
||||
nodecore.register_craft({
|
||||
label = "break crystal to shards",
|
||||
@ -122,19 +99,15 @@ end
|
||||
register_crystal("lodite", "Lodite", 3, "#592720:180") --CAPUT MORTUUM
|
||||
register_crystal("luxite", "Luxite", 3, "#fcf75e:160") --ICTERINE
|
||||
------------------------------------------------------------------------
|
||||
if minetest.get_modpath("wc_adamant") then
|
||||
register_crystal("adamant", "Pure Adamantine", 8, "#40e0d0:120") --TURQUOISE
|
||||
end
|
||||
------------------------------------------------------------------------
|
||||
if minetest.settings:get_bool(modname .. ".real_crystals", true) then
|
||||
register_crystal("quartz", "Quartz", 4, "#f4f0ec:180") --ISABELLINE
|
||||
register_crystal("amethyst", "Amethyst", 4, "#4b0082:180") --INDIGO
|
||||
register_crystal("selenite", "Selenite", 2, "#ffffff:64") --WHITE
|
||||
register_crystal("amethyst", "Amethyst", 4, "#4b0082:180") --INDIGO
|
||||
register_crystal("selenite", "Selenite", 2, "#ffffff:64") --WHITE
|
||||
register_crystal("celestine", "Celestine", 2, "#00bfff:120") --DEEP SKY BLUE
|
||||
register_crystal("jasper", "Jasper", 4, "#9b111e:140") --RUBY RED
|
||||
register_crystal("chrysoprase", "Chrysoprase", 4, "#3cb371:140") --SEA GREEN
|
||||
register_crystal("onyx", "Onyx", 4, "#353839:180") --ONYX
|
||||
register_crystal("citrine", "Citrine", 4, "#dfff00:140") --CHARTREUSE
|
||||
register_crystal("onyx", "Onyx", 4, "#353839:180") --ONYX
|
||||
register_crystal("citrine", "Citrine", 4, "#dfff00:140") --CHARTREUSE
|
||||
register_crystal("aragonite", "Aragonite", 3, "#e48400:140") --FULVOUS
|
||||
register_crystal("rhodochrosite", "Rhodochrosite", 3, "#fba0e3:160") --LAVENDER ROSE
|
||||
register_crystal("pyrite", "Pyrite", 3, "#b5a642:180") --BRASS
|
||||
@ -153,6 +126,15 @@ if minetest.settings:get_bool(modname .. ".birthstones", true) then
|
||||
register_crystal("diamond", "Diamond", 6, "#ffffff:0") --WHITE
|
||||
end
|
||||
------------------------------------------------------------------------
|
||||
if minetest.settings:get_bool(modname .. ".jestones", true) then
|
||||
register_crystal("amnotethyst", "Amnotethyst", 4, "#4b0082:100") --INDIGO
|
||||
register_crystal("yourethyst", "Yourethyst", 4, "#4b0082:120") --INDIGO
|
||||
end
|
||||
------------------------------------------------------------------------
|
||||
if minetest.get_modpath("wc_adamant") then
|
||||
register_crystal("adamant", "Pure Adamantine", 7, "#40e0d0:120") --TURQUOISE
|
||||
end
|
||||
------------------------------------------------------------------------
|
||||
if minetest.get_modpath("wc_gloom") then
|
||||
register_crystal("shroomite", "Shroomite", 7, "#00a86b:180") --JADE
|
||||
end
|
||||
|
95
geode.lua
Normal file
95
geode.lua
Normal file
@ -0,0 +1,95 @@
|
||||
-- LUALOCALS < ---------------------------------------------------------
|
||||
local minetest, nodecore, math, pairs
|
||||
= minetest, nodecore, math, pairs
|
||||
-- LUALOCALS > ---------------------------------------------------------
|
||||
local modname = minetest.get_current_modname()
|
||||
-----<>----------------------------------------------------------<>-----
|
||||
--<>=====<>=====<>=====<>=====<>=====<>=====<>=====<>=====<>=====<>--
|
||||
-----<>----------------------------------------------------------<>-----
|
||||
minetest.register_craftitem(modname .. ":geode", {
|
||||
description = "Geode",
|
||||
inventory_image = modname.. "_geode.png",
|
||||
groups = {geode = 1},
|
||||
sounds = nodecore.sounds("nc_optics_glassy")
|
||||
})
|
||||
-----<>----------------------------------------------------------<>-----
|
||||
--<>=====<>=====<>=====<>=====<>=====<>=====<>=====<>=====<>=====<>--
|
||||
--local real_crystals = {...}
|
||||
--local birthstones = {...}
|
||||
--local categories = {real_crystals, birthstones}
|
||||
--<>=====<>=====<>=====<>=====<>=====<>=====<>=====<>=====<>=====<>--
|
||||
local crystals = {
|
||||
"wc_crystals:lodite_crystal",
|
||||
"wc_crystals:luxite_crystal",
|
||||
}
|
||||
local categories = {} -- List of lists
|
||||
categories.real_crystals = {
|
||||
"wc_crystals:quartz_crystal",
|
||||
"wc_crystals:amethyst_crystal",
|
||||
"wc_crystals:selenite_crystal",
|
||||
"wc_crystals:celestine_crystal",
|
||||
"wc_crystals:jasper_crystal",
|
||||
"wc_crystals:chrysoprase_crystal",
|
||||
"wc_crystals:onyx_crystal",
|
||||
"wc_crystals:citrine_crystal",
|
||||
"wc_crystals:aragonite_crystal",
|
||||
"wc_crystals:rhodochrosite_crystal",
|
||||
"wc_crystals:pyrite_crystal"
|
||||
}
|
||||
categories.birthstones = {
|
||||
"wc_crystals:ruby_crystal",
|
||||
"wc_crystals:sapphire_crystal",
|
||||
"wc_crystals:emerald_crystal",
|
||||
"wc_crystals:topaz_crystal",
|
||||
"wc_crystals:garnet_crystal",
|
||||
"wc_crystals:aquamarine_crystal",
|
||||
"wc_crystals:peridot_crystal",
|
||||
"wc_crystals:tourmaline_crystal",
|
||||
"wc_crystals:alexandrite_crystal",
|
||||
"wc_crystals:diamond_crystal"
|
||||
}
|
||||
for category, set in pairs(categories) do -- For each (keyname, list) aka category name and set
|
||||
print("CATEGORY", category)
|
||||
if minetest.settings:get_bool(modname .. "." .. category, true) then -- Check if it is enabled
|
||||
print("ENABLED")
|
||||
for _, value in pairs(set) do -- Loop through each value in the set, ignoring the key
|
||||
print("ADDING", value)
|
||||
crystals[#crystals + 1] = value -- or table.insert(crystals, value)
|
||||
end
|
||||
end
|
||||
end
|
||||
-----<>----------------------------------------------------------<>-----
|
||||
nodecore.register_craft({
|
||||
label = "crack open geode",
|
||||
action = "pummel",
|
||||
toolgroups = {thumpy = 3, cracky = 3},
|
||||
indexkeys = {modname .. ":geode"},
|
||||
nodes = {
|
||||
{match = modname .. ":geode", replace = "air"}
|
||||
},
|
||||
after=function(pos)
|
||||
local yield = math.random(1,4)
|
||||
nodecore.item_eject(pos, {name = "nc_stonework:chip"}, 2, yield)
|
||||
nodecore.item_eject(pos, nodecore.pickrand(crystals), 2, 1)
|
||||
|
||||
end
|
||||
})
|
||||
--<>=====<>=====<>=====<>=====<>=====<>=====<>=====<>=====<>=====<>--
|
||||
-----<>----------------------------------------------------------<>-----
|
||||
--local t1 = {} -- table literal
|
||||
--t1.key = "value" -- setting value by key name with syntactic sugar
|
||||
--t1["key2"] = "value2" -- setting value by key name explicitly
|
||||
--t1[1] = "value3" -- setting value by index (can only be explicit)
|
||||
|
||||
--local t2 = {
|
||||
-- key = "value", -- syntactic sugar keyname in literal
|
||||
-- ["key2"] = "value2", -- explicit keyname in literal
|
||||
-- [1] = "value3", -- explicit index in literal
|
||||
--}
|
||||
|
||||
--local t3 = {t1, t2} -- table literal with implicit indexes, equivalent to {[1] = t1, [2] = t2}
|
||||
|
||||
--for key, value in ipairs(t) do print(key, value) end -- prints keys and values for CONTIGUOUS NUMERIC indexes (1,2,3...) in order
|
||||
--for key, value in pairs(t) do print(key, value) end -- prints EVERY key and value in an INDETERMINATE order
|
||||
-----<>----------------------------------------------------------<>-----
|
||||
--<>=====<>=====<>=====<>=====<>=====<>=====<>=====<>=====<>=====<>--
|
4
init.lua
4
init.lua
@ -26,4 +26,6 @@ end
|
||||
|
||||
if minetest.get_modpath("wc_gloom") then
|
||||
include("shroomite")
|
||||
end
|
||||
end
|
||||
|
||||
include("geode")
|
11
luxite.lua
11
luxite.lua
@ -24,19 +24,10 @@ minetest.override_item(modname.. ":luxite_crystal",{
|
||||
},
|
||||
light_source = 3, glow = 1
|
||||
})
|
||||
------------------------------------------------------------------------
|
||||
minetest.override_item(modname.. ":luxite_lattice",{
|
||||
groups = {
|
||||
cracky = 3,
|
||||
crystal = 1,
|
||||
lux_emit = 1
|
||||
},
|
||||
light_source = 3, glow = 1
|
||||
})
|
||||
-- ================================================================== --
|
||||
local function luxite_tools(item)
|
||||
minetest.override_item(item,{
|
||||
groups = {lux_emit = 1},
|
||||
groups = {lux_emit = 1, flammable = 2, crystalline = 1},
|
||||
light_source = 6, glow = 1
|
||||
})
|
||||
end
|
||||
|
@ -4,8 +4,10 @@ wc_crystals.real_crystals (Real Crystals) bool true
|
||||
|
||||
# If enabled, adds all of the birthstones that aren't included within Real Crystals.
|
||||
# Ruby, Sapphire, Emerald, Topaz, Garnet, Aquamarine, Peridot, Tourmaline, Alexandrite, Diamond
|
||||
# Disabled by default.
|
||||
wc_crystals.birthstones (Birthstones) bool false
|
||||
wc_crystals.birthstones (Birthstones) bool true
|
||||
|
||||
# If enabled, adds a small number of joke crystals.
|
||||
wc_crystals.jestones (Joke Crystals) bool false
|
||||
|
||||
# If enabled, adds crystal-tipped tools.
|
||||
wc_crystals.crystal_tools (Crystal Tools) bool true
|
||||
|
@ -20,15 +20,11 @@ minetest.override_item(modname.. ":shroomite_crystal",{
|
||||
light_source = 12, glow = 1
|
||||
})
|
||||
------------------------------------------------------------------------
|
||||
minetest.override_item(modname.. ":shroomite_lattice",{
|
||||
tiles = {mineral},
|
||||
light_source = 12, glow = 1
|
||||
})
|
||||
|
||||
-- ================================================================== --
|
||||
|
||||
local function shroomite_tools(item)
|
||||
minetest.override_item(item,{
|
||||
groups = {lux_emit = 1},
|
||||
light_source = 6, glow = 1
|
||||
})
|
||||
end
|
||||
|
BIN
textures/wc_crystals_geode.png
Normal file
BIN
textures/wc_crystals_geode.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 598 B |
50
tools.lua
50
tools.lua
@ -163,40 +163,40 @@ local crystal = modname.. ".png^[colorize:" ..color
|
||||
end
|
||||
-- ================================================================== --
|
||||
|
||||
tool_crystal("lodite", "Lodite", 4, "#592720:180") --CAPUT MORTUUM
|
||||
tool_crystal("luxite", "Luxite", 4, "#fcf75e:160") --ICTERINE
|
||||
tool_crystal("lodite", "Lodite", 5, "#592720:180") --CAPUT MORTUUM
|
||||
tool_crystal("luxite", "Luxite", 4, "#fcf75e:160") --ICTERINE
|
||||
------------------------------------------------------------------------
|
||||
if minetest.get_modpath("wc_adamant") then
|
||||
tool_crystal("adamant", "Pure Adamantine", 9, "#40e0d0:120") --TURQUOISE
|
||||
tool_crystal("adamant", "Pure Adamantine", 9, "#40e0d0:120") --TURQUOISE
|
||||
end
|
||||
------------------------------------------------------------------------
|
||||
if minetest.get_modpath("wc_gloom") then
|
||||
tool_crystal("shroomite", "Shroomite", 7, "#00a86b:180") --JADE
|
||||
tool_crystal("shroomite", "Shroomite", 8, "#00a86b:180") --JADE
|
||||
end
|
||||
------------------------------------------------------------------------
|
||||
if minetest.settings:get_bool(modname .. ".real_crystals", true) then
|
||||
tool_crystal("quartz", "Quartz", 4, "#f4f0ec:180") --ISABELLINE
|
||||
tool_crystal("amethyst", "Amethyst", 4, "#4b0082:180") --INDIGO
|
||||
tool_crystal("selenite", "Selenite", 2, "#ffffff:64") --WHITE
|
||||
tool_crystal("celestine", "Celestine", 2, "#00bfff:120") --DEEP SKY BLUE
|
||||
tool_crystal("jasper", "Jasper", 4, "#9b111e:140") --RUBY RED
|
||||
tool_crystal("chrysoprase", "Chrysoprase", 4, "#3cb371:140") --SEA GREEN
|
||||
tool_crystal("onyx", "Onyx", 4, "#353839:180") --ONYX
|
||||
tool_crystal("citrine", "Citrine", 4, "#dfff00:140") --CHARTREUSE
|
||||
tool_crystal("aragonite", "Aragonite", 3, "#e48400:140") --FULVOUS
|
||||
tool_crystal("rhodochrosite", "Rhodochrosite", 3, "#fba0e3:160") --LAVENDER ROSE
|
||||
tool_crystal("pyrite", "Pyrite", 3, "#b5a642:180") --BRASS
|
||||
tool_crystal("quartz", "Quartz", 4, "#f4f0ec:180") --ISABELLINE
|
||||
tool_crystal("amethyst", "Amethyst", 4, "#4b0082:180") --INDIGO
|
||||
tool_crystal("selenite", "Selenite", 4, "#ffffff:64") --WHITE
|
||||
tool_crystal("celestine", "Celestine", 4, "#00bfff:120") --DEEP SKY BLUE
|
||||
tool_crystal("jasper", "Jasper", 4, "#9b111e:140") --RUBY RED
|
||||
tool_crystal("chrysoprase", "Chrysoprase", 4, "#3cb371:140") --SEA GREEN
|
||||
tool_crystal("onyx", "Onyx", 4, "#353839:180") --ONYX
|
||||
tool_crystal("citrine", "Citrine", 4, "#dfff00:140") --CHARTREUSE
|
||||
tool_crystal("aragonite", "Aragonite", 4, "#e48400:140") --FULVOUS
|
||||
tool_crystal("rhodochrosite", "Rhodochrosite", 4, "#fba0e3:160") --LAVENDER ROSE
|
||||
tool_crystal("pyrite", "Pyrite", 4, "#b5a642:180") --BRASS
|
||||
end
|
||||
------------------------------------------------------------------------
|
||||
if minetest.settings:get_bool(modname .. ".birthstones", true) then
|
||||
tool_crystal("ruby", "Ruby", 5, "#9b111e:160") --RUBY RED
|
||||
tool_crystal("sapphire", "Sapphire", 5, "#0f52ba:160") --SAPPHIRE
|
||||
tool_crystal("emerald", "Emerald", 4, "#007f66:160") --VIRIDIAN
|
||||
tool_crystal("topaz", "Topaz", 4, "#e48400:160") --FULVOUS
|
||||
tool_crystal("garnet", "Garnet", 4, "#960018:160") --CARMINE
|
||||
tool_crystal("aquamarine", "Aquamarine", 4, "#7fffd4:160") --AQUAMARINE
|
||||
tool_crystal("peridot", "Peridot", 4, "#40e0d0:160") --TURQUOISE
|
||||
tool_crystal("tourmaline", "Tourmaline", 4, "#bd33a4:160") --BYZANTINE
|
||||
tool_crystal("alexandrite", "Alexandrite", 5, "#120a8f:160") --ULTRAMARINE
|
||||
tool_crystal("diamond", "Diamond", 6, "#ffffff:0") --WHITE
|
||||
tool_crystal("ruby", "Ruby", 5, "#9b111e:160") --RUBY RED
|
||||
tool_crystal("sapphire", "Sapphire", 5, "#0f52ba:160") --SAPPHIRE
|
||||
tool_crystal("emerald", "Emerald", 5, "#007f66:160") --VIRIDIAN
|
||||
tool_crystal("topaz", "Topaz", 5, "#e48400:160") --FULVOUS
|
||||
tool_crystal("garnet", "Garnet", 5, "#960018:160") --CARMINE
|
||||
tool_crystal("aquamarine", "Aquamarine", 5, "#7fffd4:160") --AQUAMARINE
|
||||
tool_crystal("peridot", "Peridot", 5, "#40e0d0:160") --TURQUOISE
|
||||
tool_crystal("tourmaline", "Tourmaline", 5, "#bd33a4:160") --BYZANTINE
|
||||
tool_crystal("alexandrite", "Alexandrite", 5, "#120a8f:160") --ULTRAMARINE
|
||||
tool_crystal("diamond", "Diamond", 5, "#ffffff:0") --WHITE
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user