automatic update

master
HybridDog 2014-09-05 18:08:38 +02:00
parent 4441024625
commit 1e67024275
4 changed files with 17 additions and 24 deletions

View File

@ -1,3 +1,4 @@
default
stairs
vector_extras
moss?

View File

@ -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

View File

@ -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")

View File

@ -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