forked from MineClone5/MineClone5
Update Fork #9
|
@ -128,8 +128,9 @@ minetest.register_craft({
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
label = "cauldrons",
|
label = "cauldrons",
|
||||||
nodenames = {"group:cauldron_filled"},
|
nodenames = {"group:cauldron_filled"},
|
||||||
interval = 0.5,
|
interval = 1,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
|
-- TODO: Move to playerinfo/playerplus/mob api
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
for _, obj in pairs(minetest.get_objects_inside_radius(pos, 0.4)) do
|
for _, obj in pairs(minetest.get_objects_inside_radius(pos, 0.4)) do
|
||||||
if mcl_burning.is_burning(obj) then
|
if mcl_burning.is_burning(obj) then
|
||||||
|
|
|
@ -257,7 +257,7 @@ minetest.register_abm({
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
label = "mcl_mushroom:warped_checknode",
|
label = "mcl_mushroom:warped_checknode",
|
||||||
nodenames = {"mcl_mushroom:warped_checknode"},
|
nodenames = {"mcl_mushroom:warped_checknode"},
|
||||||
interval = 0.1,
|
interval = 1,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
action = function(pos)
|
action = function(pos)
|
||||||
local nodepos = minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z})
|
local nodepos = minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z})
|
||||||
|
@ -448,7 +448,7 @@ minetest.register_abm({
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
label = "mcl_mushroom:crimson_checknode",
|
label = "mcl_mushroom:crimson_checknode",
|
||||||
nodenames = {"mcl_mushroom:crimson_checknode"},
|
nodenames = {"mcl_mushroom:crimson_checknode"},
|
||||||
interval = 0.1,
|
interval = 1,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
action = function(pos)
|
action = function(pos)
|
||||||
local nodepos = minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z})
|
local nodepos = minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z})
|
||||||
|
|
|
@ -244,8 +244,9 @@ end
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
label = "End portal teleportation",
|
label = "End portal teleportation",
|
||||||
nodenames = {"mcl_portals:portal_end"},
|
nodenames = {"mcl_portals:portal_end"},
|
||||||
interval = 0.1,
|
interval = 1,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
|
-- TODO: Move to playerinfo/playerplus/mob api
|
||||||
action = mcl_portals.end_portal_teleport,
|
action = mcl_portals.end_portal_teleport,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -106,9 +106,10 @@ local function teleport(pos, obj)
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
|
-- TODO: Move to playerinfo/playerplus/mob api
|
||||||
label = "End gateway portal teleportation",
|
label = "End gateway portal teleportation",
|
||||||
nodenames = {"mcl_portals:portal_gateway"},
|
nodenames = {"mcl_portals:portal_gateway"},
|
||||||
interval = 0.1,
|
interval = 1,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
action = function(pos)
|
action = function(pos)
|
||||||
if preparing[minetest.pos_to_string(pos)] then return end
|
if preparing[minetest.pos_to_string(pos)] then return end
|
||||||
|
|
|
@ -729,8 +729,8 @@ mcl_structures.register_structure({name = "nether_portal", place_function = mcl_
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
label = "Nether portal teleportation and particles",
|
label = "Nether portal teleportation and particles",
|
||||||
nodenames = {PORTAL},
|
nodenames = {PORTAL},
|
||||||
interval = 0.8,
|
interval = 1,
|
||||||
chance = 3,
|
chance = 2,
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
-- Don't use call stack!
|
-- Don't use call stack!
|
||||||
local upper_node_name = get_node({x = pos.x, y = pos.y + 1, z = pos.z}).name
|
local upper_node_name = get_node({x = pos.x, y = pos.y + 1, z = pos.z}).name
|
||||||
|
@ -811,6 +811,7 @@ minetest.register_abm({
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
-- TODO: Move to playerinfo/playerplus/mob api
|
||||||
for _, obj in pairs(minetest.get_objects_inside_radius(pos, 1)) do --maikerumine added for objects to travel
|
for _, obj in pairs(minetest.get_objects_inside_radius(pos, 1)) do --maikerumine added for objects to travel
|
||||||
local lua_entity = obj:get_luaentity() --maikerumine added for objects to travel
|
local lua_entity = obj:get_luaentity() --maikerumine added for objects to travel
|
||||||
if (obj:is_player() or lua_entity) and prevent_portal_chatter(obj) then
|
if (obj:is_player() or lua_entity) and prevent_portal_chatter(obj) then
|
||||||
|
|
Loading…
Reference in New Issue