mirror of
https://github.com/minetest-mods/nether.git
synced 2025-06-29 06:50:41 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
b49f4ce73d | |||
6551f5c120 | |||
b8dab52e41 | |||
bf145d4c11 |
39
init.lua
39
init.lua
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
Nether mod for minetest
|
Nether mod for minetest
|
||||||
@ -269,20 +268,20 @@ minetest.register_abm({
|
|||||||
chance = 2,
|
chance = 2,
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
minetest.add_particlespawner({
|
minetest.add_particlespawner({
|
||||||
32, --amount
|
amount = 32,
|
||||||
4, --time
|
time = 4,
|
||||||
{x = pos.x - 0.25, y = pos.y - 0.25, z = pos.z - 0.25}, --minpos
|
minpos = {x = pos.x - 0.25, y = pos.y - 0.25, z = pos.z - 0.25},
|
||||||
{x = pos.x + 0.25, y = pos.y + 0.25, z = pos.z + 0.25}, --maxpos
|
maxpos = {x = pos.x + 0.25, y = pos.y + 0.25, z = pos.z + 0.25},
|
||||||
{x = -0.8, y = -0.8, z = -0.8}, --minvel
|
minvel = {x = -0.8, y = -0.8, z = -0.8},
|
||||||
{x = 0.8, y = 0.8, z = 0.8}, --maxvel
|
maxvel = {x = 0.8, y = 0.8, z = 0.8},
|
||||||
{x = 0, y = 0, z = 0}, --minacc
|
minacc = {x = 0, y = 0, z = 0},
|
||||||
{x = 0, y = 0, z = 0}, --maxacc
|
maxacc = {x = 0, y = 0, z = 0},
|
||||||
0.5, --minexptime
|
minexptime = 0.5,
|
||||||
1, --maxexptime
|
maxexptime = 1,
|
||||||
1, --minsize
|
minsize = 1,
|
||||||
2, --maxsize
|
maxsize = 2,
|
||||||
false, --collisiondetection
|
collisiondetection = false,
|
||||||
"nether_particle.png" --texture
|
texture = "nether_particle.png"
|
||||||
})
|
})
|
||||||
for _, obj in ipairs(minetest.get_objects_inside_radius(pos, 1)) do
|
for _, obj in ipairs(minetest.get_objects_inside_radius(pos, 1)) do
|
||||||
if obj:is_player() then
|
if obj:is_player() then
|
||||||
@ -298,6 +297,9 @@ minetest.register_abm({
|
|||||||
-- teleport the player
|
-- teleport the player
|
||||||
minetest.after(3, function(o, p, t)
|
minetest.after(3, function(o, p, t)
|
||||||
local objpos = o:getpos()
|
local objpos = o:getpos()
|
||||||
|
if not objpos then -- player quit the game while teleporting
|
||||||
|
return
|
||||||
|
end
|
||||||
objpos.y = objpos.y + 0.1 -- Fix some glitches at -8000
|
objpos.y = objpos.y + 0.1 -- Fix some glitches at -8000
|
||||||
if minetest.get_node(objpos).name ~= "nether:portal" then
|
if minetest.get_node(objpos).name ~= "nether:portal" then
|
||||||
return
|
return
|
||||||
@ -520,13 +522,6 @@ if minetest.get_modpath("moreblocks") then
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
stairs.register_stair_and_slab("brick", "nether:brick",
|
|
||||||
{cracky=3, oddly_breakable_by_hand=1},
|
|
||||||
{"nether_brick.png"},
|
|
||||||
"nether stair",
|
|
||||||
"nether slab",
|
|
||||||
default.node_sound_stone_defaults())
|
|
||||||
|
|
||||||
|
|
||||||
-- Craftitems
|
-- Craftitems
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user