indentations fixed and added cheapie's smoker fix

This commit is contained in:
bas080 2014-07-10 12:41:21 +02:00
parent a790135274
commit 17bc553538
2 changed files with 180 additions and 189 deletions

View File

@ -461,7 +461,7 @@
})
minetest.register_abm({ --spawning bees around bee hive
nodenames = {'bees:hive_wild', 'bees:hive_artificial'},
nodenames = {'bees:hive_wild', 'bees:hive_artificial', 'bees:hive_industrial'},
neighbors = {'group:flowers', 'group:leaves'},
interval = 30,
chance = 4,
@ -577,7 +577,9 @@
damage_groups = {fleshy=2},
},
on_use = function(tool, user, node)
if node then
local pos = node.under
if pos then
for i=1,6 do
minetest.add_particle({
pos = {x=pos.x+math.random()-0.5, y=pos.y, z=pos.z+math.random()-0.5},
@ -593,6 +595,8 @@
local meta = minetest.get_meta(pos)
meta:set_int('agressive', 0)
return nil
end
end
end,
})
@ -637,23 +641,10 @@
if minetest.get_modpath("pipeworks") then
minetest.register_node('bees:hive_industrial', {
description = 'industrial bee hive',
tiles = {'default_wood.png','default_wood.png','default_wood.png', 'default_wood.png','default_wood.png','bees_hive_industrial.png'},
drawtype = 'nodebox',
paramtype = 'light',
tiles = { 'bees_hive_industrial.png'},
paramtype2 = 'facedir',
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1,tubedevice=1,tubedevice_receiver=1},
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,tubedevice=1,tubedevice_receiver=1},
sounds = default.node_sound_wood_defaults(),
node_box = {
type = 'fixed',
fixed = {
{-4/8, 2/8, -4/8, 4/8, 3/8, 4/8},
{-3/8, -4/8, -2/8, 3/8, 2/8, 3/8},
{-3/8, 0/8, -3/8, 3/8, 2/8, -2/8},
{-3/8, -4/8, -3/8, 3/8, -1/8, -2/8},
{-3/8, -1/8, -3/8, -1/8, 0/8, -2/8},
{1/8, -1/8, -3/8, 3/8, 0/8, -2/8},
}
},
tube = {
insert_object = function(pos, node, stack, direction)
local meta = minetest.get_meta(pos)

View File

@ -1,12 +1,12 @@
BEES MOD V2.2
-------------
DEPENDS
-------
https://github.com/VanessaE/minetest-steel
FEATURES
--------
3.0
- Pipeworks compatibility (Industrial beehive)
- Get honey comb from full frame
2.2.1
- removed steel dependency temporarily
- fixed the craft for the extractor (and added alias for)
@ -35,13 +35,13 @@ FEATURES
FUTURE
------
- more realistic spawning of wild bee hives
- pipeworks compatibility (Industrial beehive)
CONTRIBUTORS
------------
- bas080
- VanessaE (wild bee hive nodebox)
- Neuromancer (textures for wild bee hive and inspiration for other textures)
- Novatux (enabled pipeworks compatibility)
FORUM
-----