This commit is contained in:
duckgo 2023-03-05 01:16:53 -03:00
parent 41420fd041
commit 53b8bb273e
14 changed files with 181 additions and 10 deletions

View File

@ -1,3 +1,5 @@
local climb_node = { "default:ladder_wood" ,"default:ladder_steel"}
local zombienods = {
"default:dirt",
"default:dirt_with_rainforest",
@ -17,6 +19,7 @@ local zombienods = {
"nodex:road",
"nodex:road2",
"nodex:road3",
"nodex:whiteblock",
}
---- SKULL SWORD ------------------------------------------------------------------------------------------------------
@ -81,6 +84,26 @@ mobs:register_mob("doctorzombie:doctorzombie", {
die_start = 280,
die_end = 300,
},
do_custom = function(self, dtime)
local pos = self.object:get_pos() -- consegue sua propia posição
local vel = {x=0, y=0.2, z=0} -- deveria ser velocidade hehe
local face = minetest.get_node({x=pos.x, y=pos.y, z=pos.z+1}) -- bloco que estar em sua frente
for i,v in ipairs (climb_node) do
if face.name == v then -- se o bloco em sua frente é escadas
self.object:set_pos({x=pos.x, y=pos.y+1, z=pos.z}) -- enquanto o bloco for escadas y+1
self.object:set_velocity(vel) -- velocidade, não eficiente :/
end
end
end
})

View File

@ -44,18 +44,47 @@ minetest.register_craft({ ------ CRaFT
]]
---- white block :
---- HOSPITAL BLOCK :
minetest.register_node("nodex:whiteblock", {
description = "White Block",
tiles = {"white_block.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
drop = "nodex:road",
drop = "nodex:whiteblock",
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("nodex:greenblock", {
description = "Green Block",
tiles = {"green_node.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
drop = "nodex:green_node",
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("nodex:redblock", {
description = "Red Block",
tiles = {"red_node.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
drop = "nodex:redblock",
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("nodex:grayblock", {
description = "Gray Block",
tiles = {"gray_node.png"},
paramtype2 = "facedir",
groups = {cracky = 3},
drop = "nodex:grayblock",
sounds = default.node_sound_stone_defaults()
})
---- COAL STAIR :

Binary file not shown.

After

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 758 B

BIN
nodex/textures/red_node.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

View File

@ -1,3 +1,5 @@
local climb_node = { "default:ladder_wood" ,"default:ladder_steel"}
local zombienods = {
"default:dirt",
"default:dirt_with_rainforest",
@ -80,6 +82,26 @@ mobs:register_mob("runner:runner", {
die_start = 280,
die_end = 300,
},
do_custom = function(self, dtime)
local pos = self.object:get_pos() -- consegue sua propia posição
local vel = {x=0, y=0.2, z=0} -- deveria ser velocidade hehe
local face = minetest.get_node({x=pos.x, y=pos.y, z=pos.z+1}) -- bloco que estar em sua frente
for i,v in ipairs (climb_node) do
if face.name == v then -- se o bloco em sua frente é escadas
self.object:set_pos({x=pos.x, y=pos.y+1, z=pos.z}) -- enquanto o bloco for escadas y+1
self.object:set_velocity(vel) -- velocidade, não eficiente :/
end
end
end
})

View File

@ -8,13 +8,70 @@ minetest.register_decoration({
"default:dirt_with_coniferous_litter",
"default:dirt_with_grass",
"default:dirt_with_snow"
},
sidelen = 80, -- 16
fill_ratio = 0.00008,
flags = "place_center_x,place_center_z,force_placement,all_floors",
y_max = 25,
y_min = 20,
schematic = minetest.get_modpath("structures").."/schematics/home1.mts",
rotation = "random",
})
-- CABIM :
minetest.register_decoration({
deco_type = "schematic",
place_on = {
"default:dirt_with_coniferous",
"default:dirt_with_coniferous_litter",
--- "default:dirt_with_grass",
--- "default:dirt_with_snow"
},
sidelen = 80, -- 16
fill_ratio = 0.00008,
flags = "place_center_x,place_center_z,force_placement,all_floors",
y_max = 10,
y_min = 0,
schematic = minetest.get_modpath("structures").."/schematics/home1.mts",
schematic = minetest.get_modpath("structures").."/schematics/cabin.mts",
rotation = "random",
})
-- HOTEL :
minetest.register_decoration({
deco_type = "schematic",
place_on = {
-- "default:dirt_with_coniferous",
-- "default:dirt_with_coniferous_litter",
"default:dirt_with_grass",
"default:dirt_with_snow"
},
sidelen = 80, -- 16
fill_ratio = 0.00008,
flags = "place_center_x,place_center_z,force_placement,all_floors",
y_max = 15,
y_min = 10,
schematic = minetest.get_modpath("structures").."/schematics/hotel.mts",
rotation = "random",
})
-- HOSPITAL :
minetest.register_decoration({
deco_type = "schematic",
place_on = {
-- "default:dirt_with_coniferous",
-- "default:dirt_with_coniferous_litter",
"default:dirt_with_grass",
"default:dirt_with_snow"
},
sidelen = 80, -- 16
fill_ratio = 0.00008,
flags = "place_center_x,place_center_z,force_placement,all_floors",
y_max = 7,
y_min = 0,
schematic = minetest.get_modpath("structures").."/schematics/hospital.mts",
rotation = "random",
})
@ -28,9 +85,3 @@ minetest.register_decoration({

View File

@ -1,2 +1,2 @@
name = structures
depends = default , deco
depends = default , deco ,simple_loots

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,3 +1,7 @@
local climb_node = { "default:ladder_wood" ,"default:ladder_steel"}
local zombienods = {
"default:dirt",
"default:dirt_with_rainforest",
@ -82,6 +86,26 @@ mobs:register_mob("survivorzombie:survivorzombie", {
die_start = 280,
die_end = 300,
},
do_custom = function(self, dtime)
local pos = self.object:get_pos() -- consegue sua propia posição
local vel = {x=0, y=0.2, z=0} -- deveria ser velocidade hehe
local face = minetest.get_node({x=pos.x, y=pos.y, z=pos.z+1}) -- bloco que estar em sua frente
for i,v in ipairs (climb_node) do
if face.name == v then -- se o bloco em sua frente é escadas
self.object:set_pos({x=pos.x, y=pos.y+1, z=pos.z}) -- enquanto o bloco for escadas y+1
self.object:set_velocity(vel) -- velocidade, não eficiente :/
end
end
end
})

View File

@ -1,3 +1,5 @@
local climb_node = { "default:ladder_wood" ,"default:ladder_steel"}
local zombienods = {
"default:dirt",
"default:dirt_with_rainforest",
@ -80,6 +82,26 @@ mobs:register_mob("walkingzombie:walkingzombie", {
die_start = 280,
die_end = 300,
},
do_custom = function(self, dtime)
local pos = self.object:get_pos() -- consegue sua propia posição
local vel = {x=0, y=0.2, z=0} -- deveria ser velocidade hehe
local face = minetest.get_node({x=pos.x, y=pos.y, z=pos.z+1}) -- bloco que estar em sua frente
for i,v in ipairs (climb_node) do
if face.name == v then -- se o bloco em sua frente é escadas
self.object:set_pos({x=pos.x, y=pos.y+1, z=pos.z}) -- enquanto o bloco for escadas y+1
self.object:set_velocity(vel) -- velocidade, não eficiente :/
end
end
end
})