Compare commits

...

10 Commits

Author SHA1 Message Date
tenplus1
edeec7d1e8 tidy building registration 2024-08-22 07:12:23 +01:00
tenplus1
d6df05a3b1 add 5.0 min version 2024-08-20 17:40:17 +01:00
tenplus1
171215cfbe tweak abms 2024-08-20 17:39:05 +01:00
tenplus1
37b724ce2b tweak abms 2024-08-20 15:53:42 +01:00
tenplus1
a601c945eb 5.x only 2023-08-08 15:55:11 +01:00
tenplus1
d48ce26ab7 fix jungle buildings, added jungle dirt check 2023-08-02 12:13:41 +01:00
tenplus1
6bfb1005c6 mapgen performance tweaks 2023-08-02 11:33:26 +01:00
tenplus1
2f1b9b32c0 abm tweaks 2023-08-01 14:31:30 +01:00
tenplus1
6d96c4b80c abm tweaks 2023-08-01 14:31:10 +01:00
tenplus1
d405bbd848 performance tweaks 2023-08-01 10:27:43 +01:00
5 changed files with 362 additions and 553 deletions

View File

@ -1,3 +0,0 @@
nssm
default
tnt

View File

@ -6,4 +6,4 @@ dofile(path .. "/nodes.lua")
dofile(path .. "/mapgen.lua")
dofile(path .. "/spawn.lua")
print("[MOD] nssb loaded")
print("[MOD] Not So Simple Buildings loaded")

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +1,3 @@
name = nssb
depends = default, nssm, tnt
min_minetest_version = 5.0

View File

@ -1,3 +1,4 @@
-- Materials
minetest.register_node("nssb:memoryone", {
@ -279,6 +280,7 @@ function nssb_register_eggs (
neighbors = {neigh},
interval = int,
chance = 1,
catch_up = false,
action = function(pos, node, active_object_count, active_object_count_wider)
@ -355,6 +357,7 @@ function nssb_register_eggboss (
neighbors = {neigh},
interval = int,
chance = 1,
catch_up = false,
action = function(pos, node, active_object_count, active_object_count_wider)
@ -408,17 +411,16 @@ minetest.register_node("nssb:giant_sandworm_eggs", {
minetest.register_abm({
nodenames = {"nssb:giant_sandworm_eggs"},
neighbors = {"default:desert_stone"},
interval = 1,
interval = 5,
chance = 1,
catch_up = false,
action = function(pos, node)
local pos1 = {x = pos.x, y = pos.y + 1, z = pos.z}
local n = minetest.get_node(pos1).name
if n ~= "air" then
return
end
if n ~= "air" then return end
minetest.add_entity(pos1, "nssm:giant_sandworm")
minetest.remove_node(pos)
@ -748,14 +750,12 @@ minetest.register_node("nssb:dis_morvalar_block", {
minetest.register_abm({
nodenames = {"nssb:morvalar_block"},
neighbors = {"nssb:indistructible_morentir"},
interval = 1,
interval = 5,
chance = 1,
catch_up = false,
action = function(pos, node)
minetest.remove_node(pos)
minetest.add_entity(pos, "nssm:morvalar")
minetest.after(5, function()
minetest.set_node(pos, {name = "nssb:dis_morvalar_block"})
end)
minetest.set_node(pos, {name = "nssb:dis_morvalar_block"})
end
})