automatic update
parent
4441024625
commit
1e67024275
|
@ -1,3 +1,4 @@
|
|||
default
|
||||
stairs
|
||||
vector_extras
|
||||
moss?
|
||||
|
|
19
init.lua
19
init.lua
|
@ -398,6 +398,22 @@ minetest.register_craftitem("extrablocks:muffin", {
|
|||
|
||||
|
||||
|
||||
|
||||
if moss then
|
||||
moss.register_moss({
|
||||
node = "default:stonebrick",
|
||||
result = "extrablocks:mossystonebrick"
|
||||
})
|
||||
|
||||
moss.register_moss({
|
||||
node = "extrablocks:wall",
|
||||
result = "extrablocks:mossywall"
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
local function ore(name, scarcity, num_ores, size, min, max)
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
|
@ -450,9 +466,6 @@ minetest.register_ore({
|
|||
local path = minetest.get_modpath("extrablocks")
|
||||
|
||||
dofile(path.."/settings.lua")
|
||||
if extrablocks_enable_moss then
|
||||
dofile(path.."/natur.lua")
|
||||
end
|
||||
if extrablocks_allow_crafting then
|
||||
dofile(path.."/crafting.lua")
|
||||
end
|
||||
|
|
20
natur.lua
20
natur.lua
|
@ -1,20 +0,0 @@
|
|||
local function moss(input, output)
|
||||
minetest.register_abm({
|
||||
nodenames = {input},
|
||||
neighbors = {"group:water"},
|
||||
interval = 50,
|
||||
chance = 20,
|
||||
action = function(pos)
|
||||
if not minetest.env:find_node_near(pos, 3, output) then
|
||||
minetest.env:add_node(pos, {name=output})
|
||||
print("[extrablocks] "..input.." changed to "..output.." at ("..pos.x..", "..pos.y..", "..pos.z..")")
|
||||
end
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
moss("default:cobble", "default:mossycobble")
|
||||
moss("default:stonebrick", "extrablocks:mossystonebrick")
|
||||
moss("extrablocks:wall", "extrablocks:mossywall")
|
||||
moss("nuke:iron_tnt", "nuke:mossy_tnt")
|
||||
moss("nuke:mese_tnt", "nuke:mossy_tnt")
|
|
@ -1,6 +1,5 @@
|
|||
--This file contains configuration options for the extrablocks mod.
|
||||
|
||||
extrablocks_allow_crafting = true
|
||||
extrablocks_enable_moss = true
|
||||
extrablocks_movement_stuff = true
|
||||
extrablocks_tools = true
|
||||
|
|
Loading…
Reference in New Issue