forked from VoxeLibre/VoxeLibre
Make beehives transparent and not launch entities, thanks MysticTempest!
This commit is contained in:
parent
c767c617f8
commit
b17dcf26da
|
@ -364,7 +364,7 @@ function mesecon.mvps_move_objects(pos, dir, nodestack)
|
|||
for _, r in ipairs(mesecon.rules.alldirs) do
|
||||
local adjpos = vector.add(np, r)
|
||||
local adjnode = minetest.get_node(adjpos)
|
||||
if minetest.registered_nodes[adjnode.name] and minetest.registered_nodes[adjnode.name].mvps_sticky then
|
||||
if minetest.registered_nodes[adjnode.name] and minetest.registered_nodes[adjnode.name].mvps_sticky and adjnode.name == "mcl_core:slimeblock" then
|
||||
local np = vector.add(obj:get_pos(), dir)
|
||||
|
||||
-- Reset acceleration of all objects before launching.
|
||||
|
|
|
@ -42,13 +42,21 @@ minetest.register_craftitem("mcl_honey:honey_bottle", {
|
|||
minetest.register_node("mcl_honey:honey_block", {
|
||||
description = S("Honey Block"),
|
||||
_doc_items_longdesc = S("Honey Block. Used as a decoration and in redstone. Is sticky on some sides."),
|
||||
tiles = {
|
||||
"mcl_honey_block_top.png", "mcl_honey_block_bottom.png",
|
||||
"mcl_honey_block_side.png", "mcl_honey_block_side.png",
|
||||
"mcl_honey_block_side.png", "mcl_honey_block_side.png",
|
||||
tiles = {"mcl_honey_block_side.png"},
|
||||
use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "blend" or true,
|
||||
groups = { handy = 1, deco_block = 1, fall_damage_add_percent = -80 },
|
||||
paramtype = "light",
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.4, -0.4, -0.4, 0.4, 0.4, 0.4},
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "regular",
|
||||
},
|
||||
groups = { handy = 1, deco_block = 1 },
|
||||
paramtype2 = "facedir",
|
||||
_mcl_blast_resistance = 0,
|
||||
_mcl_hardness = 0,
|
||||
mvps_sticky = function(pos, node, piston_pos)
|
||||
|
|
Loading…
Reference in New Issue