First round of tweaks and bugfixes
This commit is contained in:
parent
f2ee38d3e1
commit
e6b77c538b
26
infused.lua
26
infused.lua
@ -13,7 +13,7 @@ local function tooltip(name, group)
|
||||
minetest.register_tool(tool, {
|
||||
description = "Infused Adamant-Tipped " .. name,
|
||||
inventory_image = "nc_woodwork_tool_" .. name:lower() .. ".png^"
|
||||
.. modname .. "_tip_" .. name:lower() .. ".png^(nc_lux_gravel.png^[opacity:100)",
|
||||
.. modname .. "_tip_" .. name:lower() .. ".png^(nc_lux_gravel.png^[opacity:75)",
|
||||
tool_wears_to = wood,
|
||||
groups = {
|
||||
flammable = 2,
|
||||
@ -22,8 +22,8 @@ local function tooltip(name, group)
|
||||
lux_tool = 1
|
||||
},
|
||||
tool_capabilities = nodecore.toolcaps({
|
||||
uses = 0.05,
|
||||
[group] = 7
|
||||
uses = 0.01,
|
||||
[group] = 8
|
||||
}),
|
||||
on_ignite = modname .. ":shard",
|
||||
light_source = 1,
|
||||
@ -50,16 +50,15 @@ tooltip("Pick", "cracky")
|
||||
local adzedef
|
||||
adzedef = {
|
||||
description = "Infused Adamant-Tipped Adze",
|
||||
inventory_image = "nc_woodwork_adze.png^" .. modname .. "_tip_adze.png^(nc_lux_gravel.png^[opacity:100)",
|
||||
inventory_image = "nc_woodwork_adze.png^" .. modname .. "_tip_adze.png^(nc_lux_gravel.png^[opacity:75)",
|
||||
groups = {
|
||||
firestick = 2,
|
||||
flammable = 2,
|
||||
metallic = 1,
|
||||
lux_emit = 1,
|
||||
lux_tool = 1
|
||||
},
|
||||
tool_capabilities = nodecore.toolcaps({
|
||||
uses = 0.05,
|
||||
uses = 0.01,
|
||||
choppy = 6,
|
||||
crumbly = 7,
|
||||
cracky = 5,
|
||||
@ -93,3 +92,18 @@ nodecore.register_craft({
|
||||
|
||||
-- ================================================================== --
|
||||
|
||||
nodecore.register_soaking_abm({
|
||||
label = "adamant infusion",
|
||||
fieldname = "adalux",
|
||||
interval = 10,
|
||||
nodenames = {"group:adamant_crystal"},
|
||||
arealoaded = 14,
|
||||
soakrate = nodecore.lux_soak_rate,
|
||||
soakcheck = function(data, pos)
|
||||
if data.total < 5000 then return end
|
||||
nodecore.set_loud(pos, {name = modname .. ":block_infused"})
|
||||
end
|
||||
})
|
||||
|
||||
-- ================================================================== --
|
||||
|
||||
|
4
init.lua
4
init.lua
@ -7,8 +7,8 @@ local modname = minetest.get_current_modname()
|
||||
-- ================================================================== --
|
||||
|
||||
include("shard")
|
||||
include("nodes")
|
||||
include("smelt")
|
||||
include("tools")
|
||||
include("infused")
|
||||
include("smelt")
|
||||
|
||||
|
||||
|
59
nodes.lua
Normal file
59
nodes.lua
Normal file
@ -0,0 +1,59 @@
|
||||
-- LUALOCALS < ---------------------------------------------------------
|
||||
local ItemStack, error, minetest, nodecore, pairs, type
|
||||
= ItemStack, error, minetest, nodecore, pairs, type
|
||||
-- LUALOCALS > ---------------------------------------------------------
|
||||
local modname = minetest.get_current_modname()
|
||||
|
||||
-- ================================================================== --
|
||||
|
||||
minetest.register_node(modname .. ":cobble", {
|
||||
description = "Shiny Cobble",
|
||||
tiles = {modname .. ".png^nc_terrain_cobble.png"},
|
||||
color = "turquoise",
|
||||
groups = {
|
||||
cracky = 3,
|
||||
lux_absorb = 12,
|
||||
metallic = 1,
|
||||
adamant_cobble = 1
|
||||
},
|
||||
sounds = nodecore.sounds("nc_terrain_stony"),
|
||||
alternate_loose = {
|
||||
repack_level = 2,
|
||||
groups = {
|
||||
cracky = 0,
|
||||
crumbly = 2,
|
||||
falling_repose = 3,
|
||||
metallic = 1,
|
||||
adamant_cobble = 1
|
||||
},
|
||||
sounds = nodecore.sounds("nc_terrain_chompy")
|
||||
}
|
||||
})
|
||||
|
||||
-- ================================================================== --
|
||||
|
||||
minetest.register_node(modname .. ":block", {
|
||||
description = "Adamant Crystal",
|
||||
tiles = {modname .. ".png"},
|
||||
groups = {
|
||||
cracky = 4,
|
||||
lux_absorb = 12,
|
||||
metallic = 1,
|
||||
adamant_crystal = 1
|
||||
},
|
||||
sounds = nodecore.sounds("nc_optics_glassy")
|
||||
})
|
||||
|
||||
minetest.register_node(modname .. ":block_infused", {
|
||||
description = "Lambent Adamant Crystal",
|
||||
tiles = {modname .. ".png^(nc_lux_gravel.png^[opacity:25)"},
|
||||
groups = {
|
||||
cracky = 4,
|
||||
metallic = 1,
|
||||
lux_emit = 1
|
||||
},
|
||||
light_source = 1,
|
||||
sounds = nodecore.sounds("nc_optics_glassy")
|
||||
})
|
||||
|
||||
-- ================================================================== --
|
@ -16,7 +16,8 @@ minetest.register_craftitem(modname..":ore", {
|
||||
groups = {
|
||||
cracky = 1,
|
||||
adamanty = 1,
|
||||
metallic = 1
|
||||
metallic = 1,
|
||||
shiny_rock = 1
|
||||
}
|
||||
})
|
||||
|
||||
@ -28,7 +29,8 @@ minetest.register_craftitem(modname..":shard", {
|
||||
sounds = nodecore.sounds("nc_optics_glassy"),
|
||||
groups = {
|
||||
cracky = 1,
|
||||
metallic = 1
|
||||
metallic = 1,
|
||||
shiny_rock = 1
|
||||
}
|
||||
})
|
||||
|
||||
@ -46,7 +48,8 @@ minetest.register_craftitem(modname..":shard_infused", {
|
||||
cracky = 1,
|
||||
adamanty = 1,
|
||||
metallic = 1,
|
||||
lux_emit = 1
|
||||
lux_emit = 1,
|
||||
shiny_rock = 1
|
||||
},
|
||||
light_source = 1
|
||||
})
|
||||
|
52
smelt.lua
52
smelt.lua
@ -6,43 +6,6 @@ local modname = minetest.get_current_modname()
|
||||
|
||||
-- ================================================================== --
|
||||
|
||||
minetest.register_node(modname .. ":cobble", {
|
||||
description = "Shiny Cobble",
|
||||
tiles = {modname .. ".png^nc_terrain_cobble.png"},
|
||||
color = "turquoise",
|
||||
groups = {
|
||||
cracky = 3,
|
||||
lux_absorb = 12,
|
||||
metallic = 1,
|
||||
adamant_cobble = 1
|
||||
},
|
||||
sounds = nodecore.sounds("nc_terrain_stony"),
|
||||
alternate_loose = {
|
||||
repack_level = 2,
|
||||
groups = {
|
||||
cracky = 0,
|
||||
crumbly = 2,
|
||||
falling_repose = 3,
|
||||
metallic = 1,
|
||||
adamant_cobble = 1
|
||||
},
|
||||
sounds = nodecore.sounds("nc_terrain_chompy")
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node(modname .. ":block", {
|
||||
description = "Adamant Crystal",
|
||||
tiles = {modname .. ".png"},
|
||||
groups = {
|
||||
cracky = 4,
|
||||
lux_absorb = 12,
|
||||
metallic = 1
|
||||
},
|
||||
sounds = nodecore.sounds("nc_optics_glassy")
|
||||
})
|
||||
|
||||
-- ================================================================== --
|
||||
|
||||
nodecore.register_craft({
|
||||
label = "heat adamant cobble",
|
||||
action = "cook",
|
||||
@ -98,9 +61,22 @@ nodecore.register_craft({
|
||||
items = {
|
||||
{name = modname .. ":shard", count = 4, scatter = 5}
|
||||
},
|
||||
toolgroups = {cracky = 4},
|
||||
toolgroups = {cracky = 4, thumpy = 5},
|
||||
itemscatter = 5
|
||||
})
|
||||
nodecore.register_craft({
|
||||
label = "crack infused crystal to shards",
|
||||
action = "pummel",
|
||||
indexkeys = {modname .. ":block_infused"},
|
||||
nodes = {
|
||||
{match = modname .. ":block_infused", replace = "air"}
|
||||
},
|
||||
items = {
|
||||
{name = modname .. ":shard_infused", count = 4, scatter = 9}
|
||||
},
|
||||
toolgroups = {cracky = 3, thumpy = 4},
|
||||
itemscatter = 9
|
||||
})
|
||||
|
||||
-- ================================================================== --
|
||||
|
||||
|
@ -20,7 +20,7 @@ local function tooltip(name, group)
|
||||
metallic = 1
|
||||
},
|
||||
tool_capabilities = nodecore.toolcaps({
|
||||
uses = 0.05,
|
||||
uses = 0.01,
|
||||
[group] = 7
|
||||
}),
|
||||
on_ignite = modname .. ":shard",
|
||||
@ -49,15 +49,15 @@ adzedef = {
|
||||
description = "Adamant-Tipped Adze",
|
||||
inventory_image = "nc_woodwork_adze.png^" .. modname .. "_tip_adze.png",
|
||||
groups = {
|
||||
firestick = 2,
|
||||
flammable = 2
|
||||
},
|
||||
tool_capabilities = nodecore.toolcaps({
|
||||
uses = 0.05,
|
||||
uses = 0.01,
|
||||
choppy = 5,
|
||||
crumbly = 6,
|
||||
cracky = 4,
|
||||
}),
|
||||
on_ignite = modname .. ":shard",
|
||||
sounds = nodecore.sounds("nc_optics_glassy"),
|
||||
tool_wears_to = "nc_woodwork:adze"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user