Updated: flowers and code tidy

This commit is contained in:
tenplus1 2014-11-21 20:26:04 +00:00
parent c4d4e229f7
commit c20f259f4b
6 changed files with 13 additions and 18 deletions

View File

@ -37,7 +37,7 @@ minetest.register_node("ethereal:crystal_block", {
description = "Crystal Block", description = "Crystal Block",
tiles = {"crystal_block.png"}, tiles = {"crystal_block.png"},
light_source = LIGHT_MAX - 5, light_source = LIGHT_MAX - 5,
groups = {cracky=1,level=2,puts_out_fire}, groups = {cracky=1,level=2,puts_out_fire=1},
sounds = default.node_sound_glass_defaults(), sounds = default.node_sound_glass_defaults(),
}) })

View File

@ -287,9 +287,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
for key, pos in pairs(coal_nodes) do for key, pos in pairs(coal_nodes) do
local bpos = { x=pos.x, y=pos.y + 1, z=pos.z } local bpos = { x=pos.x, y=pos.y + 1, z=pos.z }
nod = minetest.get_node(bpos).name
if nod == "air" then if minetest.get_node(bpos).name == "air" then
if bpos.y > -3000 and bpos.y < -2000 then if bpos.y > -3000 and bpos.y < -2000 then
minetest.add_node(bpos, {name = "ethereal:illumishroom3"}) minetest.add_node(bpos, {name = "ethereal:illumishroom3"})
elseif bpos.y > -2000 and bpos.y < -1000 then elseif bpos.y > -2000 and bpos.y < -1000 then

View File

@ -5,20 +5,22 @@ minetest.register_abm({
interval = 40, interval = 40,
chance = 20, chance = 20,
action = function(pos, node) action = function(pos, node)
local light = minetest.get_node_light(pos) local light = minetest.get_node_light(pos)
if not light or light < 13 then if not light or light < 13 then
return return
end end
local pos0 = {x=pos.x-4,y=pos.y-4,z=pos.z-4} local pos0 = {x=pos.x-4,y=pos.y-2,z=pos.z-4}
local pos1 = {x=pos.x+4,y=pos.y+4,z=pos.z+4} local pos1 = {x=pos.x+4,y=pos.y+2,z=pos.z+4}
local flowers = minetest.find_nodes_in_area(pos0, pos1, "group:flora") if #minetest.find_nodes_in_area(pos0, pos1, "group:flora") > 3 then
if #flowers > 3 then
return return
end end
local seedling = minetest.find_nodes_in_area(pos0, pos1, {"group:soil"}) local seedling = minetest.find_nodes_in_area(pos0, pos1, {"group:soil"})
if #seedling > 0 then if #seedling > 0 then
seedling = seedling[math.random(#seedling)] seedling = seedling[math.random(#seedling)]
seedling.y = seedling.y + 1 seedling.y = seedling.y + 1

View File

@ -1,6 +1,6 @@
--[[ --[[
Minetest Ethereal Mod 1.12 (7th November 2014) Minetest Ethereal Mod 1.12 (21st November 2014)
Created by ChinChow Created by ChinChow

View File

@ -347,11 +347,8 @@ minetest.register_craft({
-- Mushroom Tops give 4x Mushrooms for Planting -- Mushroom Tops give 4x Mushrooms for Planting
minetest.register_craft({ minetest.register_craft({
output = "ethereal:mushroom_craftingitem 4", output = "ethereal:mushroom_craftingitem 4",
type = shapeless,
recipe = { recipe = {
{"ethereal:mushroom", ""}, {"ethereal:mushroom"},
{"", ""},
{"", ""},
} }
}) })
@ -456,7 +453,6 @@ minetest.register_craftitem("ethereal:bucket_cactus", {
minetest.register_craft({ minetest.register_craft({
output = "ethereal:bucket_cactus", output = "ethereal:bucket_cactus",
type = shapeless,
recipe = { recipe = {
{"bucket:bucket_empty","default:cactus"}, {"bucket:bucket_empty","default:cactus"},
} }

View File

@ -16,7 +16,6 @@ minetest.register_node("ethereal:acacia_wood", { -- Acacia Wood
minetest.register_craft({ minetest.register_craft({
output = "ethereal:acacia_wood 4", output = "ethereal:acacia_wood 4",
type = shapeless,
recipe = {{"ethereal:acacia_trunk"}} recipe = {{"ethereal:acacia_trunk"}}
}) })
@ -117,7 +116,6 @@ minetest.register_node("ethereal:palm_wood", { -- Palm Wood
minetest.register_craft({ minetest.register_craft({
output = "ethereal:palm_wood 4", output = "ethereal:palm_wood 4",
type = shapeless,
recipe = {{"ethereal:palm_trunk"}} recipe = {{"ethereal:palm_trunk"}}
}) })