#151 Bump ABM intervals to 1 second

This commit is contained in:
kay27 2022-04-04 04:02:10 +03:00
parent be58b54104
commit 9e6f1c78e6
5 changed files with 11 additions and 7 deletions

View File

@ -128,8 +128,9 @@ minetest.register_craft({
minetest.register_abm({
label = "cauldrons",
nodenames = {"group:cauldron_filled"},
interval = 0.5,
interval = 1,
chance = 1,
-- TODO: Move to playerinfo/playerplus/mob api
action = function(pos, node)
for _, obj in pairs(minetest.get_objects_inside_radius(pos, 0.4)) do
if mcl_burning.is_burning(obj) then

View File

@ -257,7 +257,7 @@ minetest.register_abm({
minetest.register_abm({
label = "mcl_mushroom:warped_checknode",
nodenames = {"mcl_mushroom:warped_checknode"},
interval = 0.1,
interval = 1,
chance = 1,
action = function(pos)
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({
label = "mcl_mushroom:crimson_checknode",
nodenames = {"mcl_mushroom:crimson_checknode"},
interval = 0.1,
interval = 1,
chance = 1,
action = function(pos)
local nodepos = minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z})

View File

@ -244,8 +244,9 @@ end
minetest.register_abm({
label = "End portal teleportation",
nodenames = {"mcl_portals:portal_end"},
interval = 0.1,
interval = 1,
chance = 1,
-- TODO: Move to playerinfo/playerplus/mob api
action = mcl_portals.end_portal_teleport,
})

View File

@ -106,9 +106,10 @@ local function teleport(pos, obj)
end
minetest.register_abm({
-- TODO: Move to playerinfo/playerplus/mob api
label = "End gateway portal teleportation",
nodenames = {"mcl_portals:portal_gateway"},
interval = 0.1,
interval = 1,
chance = 1,
action = function(pos)
if preparing[minetest.pos_to_string(pos)] then return end

View File

@ -729,8 +729,8 @@ mcl_structures.register_structure({name = "nether_portal", place_function = mcl_
minetest.register_abm({
label = "Nether portal teleportation and particles",
nodenames = {PORTAL},
interval = 0.8,
chance = 3,
interval = 1,
chance = 2,
action = function(pos, node)
-- Don't use call stack!
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
-- 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
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