This commit is contained in:
duckgo 2023-02-01 22:23:37 -03:00
parent d992e29ae0
commit 4c0e62eef6
22 changed files with 224 additions and 230 deletions

View File

@ -1,5 +1,5 @@
MIT License MIT License
Copyright (c) 2022 DuckGo Copyright (c) 2023 DuckGo
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View File

@ -2,14 +2,10 @@ Nada ainda
"Zombies4Test", is a modpack for Minetest, which adds zombies and "Zombies4Test", is a modpack for Minetest, which adds zombies and
some decorations to your world. some decorations to your world.
This project is inspired by the mods, "Zombie Extreme", "True zombie survival" This project is inspired by the mods, "Zombie Extreme", "True survival"
and the modpack "Crafting Dead" . and the modpack "Crafting Dead" .
- BY : DUCKGO - BY : DUCKGO
- LICENSE : MIT - LICENSE : MIT
- TEXTURE : CC-BY-4.0 - TEXTURE : CC-BY-4.0
Sounds :
Zombie death : https://freesound.org/people/tonsil5/sounds/555412/
Zombie Hit : https://freesound.org/people/tonsil5/sounds/555420/
Zombie Angry : https://freesound.org/people/ChuckChuckGoof/sounds/559558/

View File

@ -682,7 +682,11 @@ minetest.register_node("deco:gravestone", {
items = { items = {
-- Bullets : -- Bullets :
{
items = {'default:dirt'},
rarity = 3,
},
{ {
items = {'rangedweapons:45acp 6'}, items = {'rangedweapons:45acp 6'},
rarity = 3, rarity = 3,

View File

@ -1,131 +0,0 @@
local zombienods = {
"default:dirt",
"default:dirt_with_rainforest",
"default:dirt_with_grass",
"default:dirt_with_dry_grass",
"default:dry_dirt_with_dry_grass",
"default:dirt_with_coniferous_litter",
"default:stone",
"default:ice",
"default:snowblock",
"default:dirt_with_snow",
"default:sand",
"default:desert_sand",
"default:desert_stone",
"default:stone",
"default:desert_stone",
--"default:cobble",
"default:ice",
"default:gravel",
}
---- SKULL SWORD ------------------------------------------------------------------------------------------------------
mobs:register_mob("fatzombie:fatzombie", {
--nametag = "Fat Zombie" ,
type = "monster",
passive = false,
attack_type = "dogfight",
--attack_animals = true,
attack_npcs = false,
group_attack = true,
pathfinding = true,
reach = 4,
damage = 5,
hp_min = 50,
hp_max = 50,
armor = 100,
collisionbox = {-0.4, 0, -0.4, 0.4, 1.8, 0.4},
visual = "mesh",
mesh = "fatzombie.b3d",
--rotate = 180,
textures = {
{"fatzombie.png"},
--{""},
},
--glow = 4,
--blood_texture = " ",
makes_footstep_sound = true,
sounds = {
random ="zombie_angry",
--attack = "zombie_hit",
death = "zombie_death ",
},
walk_velocity = 1,
run_velocity = 3,
jump_height = 2,
stepheight = 1.5,
floats = 0,
view_range = 35,
drops = {
--{name = "default:coal_lump", chance = 2, min = 1, max = 1},
{name = "foods:chocolate_bar 3", chance = 3, min = 1, max = 1},
{name = "foods:canned_tomato", chance = 4, min = 1, max = 1},
},
water_damage = 0,
lava_damage = 1,
light_damage = 0,
animation = {
speed_normal = 15,
speed_run = 15,
stand_start = 0,
stand_end = 80,
walk_start = 100,
walk_end = 180,
run_start = 200,
run_end = 240,
punch_start = 200,
punch_end = 240,
die_start = 280,
die_end = 300,
},
})
mobs:spawn({
name = "fatzombie:fatzombie",
nodes = hunternods,
min_light = 0,
max_light = 7, -- 14
chance = 7000,
min_height = -20000,
max_height = 200,
--max_height = 200,
active_object_count = 6,
})
mobs:register_egg("fatzombie:fatzombie", "Fat Zombie", "zombies_egg.png", 0)
--------------------------------------------------------------------------------
-------------------------------- AXE -------------------------------------------
--------------------------------------------------------------------------------
--[[
minetest.register_tool("huntersaxe:hunter_axe", {
description = core.colorize("#16c21e", "Hunter Axe"),
inventory_image = "hunter_axe.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
choppy={times={[1]=2.50, [2]=1.40, [3]=1.00}, uses=20, maxlevel=2},
},
damage_groups = {fleshy=5},
},
sound = {breaks = "default_tool_breaks"},
groups = {axe = 1}
})
]]

View File

@ -58,8 +58,8 @@ mobs:register_mob("lumberjackzombie:lumberjackzombie", {
floats = 0, floats = 0,
view_range = 35, view_range = 35,
drops = { drops = {
{name = "default:tree 1", chance = 2, min = 1, max = 1}, {name = "default:pine_tree 1", chance = 2, min = 1, max = 1},
{name = "default:apple 5", chance = 3, min = 1, max = 1}, {name = "farming:bread 3", chance = 3, min = 1, max = 1},
{name = "toolx:axe", chance = 5, min = 1, max = 1}, {name = "toolx:axe", chance = 5, min = 1, max = 1},
}, },

208
spitterzombie/init.lua Normal file
View File

@ -0,0 +1,208 @@
local zombienods = {
"default:dirt",
"default:dirt_with_rainforest",
"default:dirt_with_grass",
"default:dirt_with_dry_grass",
"default:dry_dirt_with_dry_grass",
"default:dirt_with_coniferous_litter",
"default:stone",
"default:ice",
"default:snowblock",
"default:dirt_with_snow",
"default:sand",
"default:desert_sand",
"default:desert_stone",
"default:stone",
"default:desert_stone",
--"default:cobble",
"default:ice",
"default:gravel",
}
----- ACID =====================================================================
--- Particules :
function gas(pos) --- PARTICULAS
minetest.add_particlespawner({
amount = 5, --- quantidade
time = 2, -- intervalo de tempo
minpos = {x = pos.x,z = pos.z,y =pos.y},
maxpos = {x = pos.x,z = pos.z,y =pos.y+1},
minvel = {x=0, y=0.1, z=-0},
maxvel = {x=-0, y=0.1, z=0},
minacc = {x=0, y=0.5, z=-0},
maxacc = {x=-0, y=0.5, z=0},
minexptime = 1,
maxexptime = 1,
minsize = 3,
maxsize = 3,
collisiondetection = false,
vertical = false,
texture = "gas.png",
})
end
minetest.register_node("spitterzombie:acid", {
description = "Acid",
drawtype = "glasslike",
visual_scale = 2.0,
tiles = {"acid.png"},
inventory_image = "acid.png",
paramtype = "light",
sunlight_propagates = true,
use_texture_alpha = "blend",
post_effect_color = {a = 100, r = 59, g = 144, b = 79},
pointable = false, -- apontavel
diggable = false, -- cavavel
liquid_viscosity = 11,
liquidtype = "source",
liquid_alternative_flowing = "spitterzombie:acid",
liquid_alternative_source = "spitterzombie:acid",
liquid_renewable = false,
liquid_range = 0,
walkable = false,
damage_per_second = 2, -- dano
groups = {snappy = 1, disable_jump = 1},
sounds = default.node_sound_leaves_defaults(),
on_construct = function (pos, node) -- conseguir tempo do node
minetest.get_node_timer(pos):start(5)
gas(pos)
end,
on_timer = function(pos,node,elapsed) -- após o tempo, o no pode ser trocado por ar
minetest.swap_node(pos, {name = 'air'})
end,
})
---- VOMITER ZOMBIE ============================================================
mobs:register_mob("spitterzombie:spitterzombie", {
nametag = "Spitter Zombie" ,
type = "monster",
passive = false,
attack_type = "dogshoot",
attack_npcs = false,
--attack_animals = true,
--group_attack = true,
shoot_interval = 4.5,
arrow = "spitterzombie:spitter_arrow",
shoot_offset = 1,
pathfinding = true,
reach = 3,
damage = 6,
hp_min = 100,
hp_max = 100,
armor = 100,
collisionbox = {-0.4, 0, -0.4, 0.4, 1.8, 0.4},
visual = "mesh",
mesh = "fatzombie.b3d",
--rotate = 180,
textures = {
{"fatzombie.png"},
--{"walkingzombie.png"},
},
--glow = 4,
--blood_texture = " ",
makes_footstep_sound = true,
sounds = {
random ="zombie_angry",
--attack = "zombie_hit",
death = "zombie_death ",
},
walk_velocity = 1,
run_velocity = 5,
jump_height = 2,
stepheight = 1.1,
floats = 0,
view_range = 35,
drops = {
{name = "default:coal_lump", chance = 2, min = 1, max = 1},
{name = "farming:bread 3", chance = 2, min = 1, max = 1},
{name = "foods:canned_tomato", chance = 4, min = 1, max = 1},
},
water_damage = 0,
lava_damage = 1,
light_damage = 0,
animation = {
speed_normal = 15,
speed_run = 15,
stand_start = 0,
stand_end = 80,
walk_start = 100,
walk_end = 180,
run_start = 200,
run_end = 240,
punch_start = 200,
punch_end = 240,
die_start = 280,
die_end = 300,
shoot_start =340,
shoot_end = 380,
},
})
mobs:register_arrow("spitterzombie:spitter_arrow", {
visual = "sprite",
-- visual = "wielditem",
visual_size = {x = 0.5, y = 0.5},
textures = {"gas.png"},
velocity = 30,--6
hit_player = function(self, player)
local pp = player:get_pos() -- Pos player
minetest.set_node(pp, {name = "spitterzombie:acid"})
end,
-- hit_mob = function(self, player)
-- player:punch(self.object, 1.0, {
-- full_punch_interval = 1.0,
-- damage_groups = {fleshy = 2},
-- }, nil)
-- end,
-- hit_node = function(self, pos)
-- end
})
mobs:spawn({
name = "spitterzombie:spitterzombie",
nodes = hunternods,
min_light = 0,
max_light = 7, -- 14
chance = 7000,
min_height = -20000,
max_height = 200,
--max_height = 200,
active_object_count = 6,
})
mobs:register_egg("spitterzombie:spitterzombie", "Spitter Zombie", "zombies_egg.png", 0)

View File

@ -1,3 +1,3 @@
name = fatzombie name = spitterzombie
depends = default, mobs depends = default, mobs

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 B

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 929 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 915 B

View File

Before

Width:  |  Height:  |  Size: 853 B

After

Width:  |  Height:  |  Size: 853 B

View File

@ -95,96 +95,10 @@ mobs:spawn({
min_height = 0, min_height = 0,
max_height = 200, max_height = 200,
--max_height = 200, --max_height = 200,
active_object_count = 3, active_object_count = 6,
}) })
mobs:register_egg("survivorzombie:survivorzombie", "Survivor Zombie", "zombies_egg.png", 0) mobs:register_egg("survivorzombie:survivorzombie", "Survivor Zombie", "zombies_egg.png", 0)
--------------------------------------------------------------------------------
-------------------------------- SURVIVE ZOMBIE 2 -----------------------------
--------------------------------------------------------------------------------
mobs:register_mob("survivorzombie:survivorzombie2", {
--nametag = "Survivor Zombie 2" ,
type = "monster",
passive = false,
attack_type = "dogfight",
--attack_animals = true,
attack_npcs = false,
group_attack = true,
pathfinding = true,
reach = 3,
damage = 3,
hp_min = 10,
hp_max = 10,
armor = 100,
collisionbox = {-0.4, 0, -0.4, 0.4, 1.8, 0.4},
visual = "mesh",
mesh = "walkingzombie.b3d",
--rotate = 180,
textures = {
{"survivorzombie.png"},
},
--glow = 4,
--blood_texture = " ",
makes_footstep_sound = true,
sounds = {
random ="zombie_angry",
--attack = "zombie_hit",
death = "zombie_death ",
},
walk_velocity = 2,
run_velocity = 5,
jump_height = 5,
stepheight = 1.5,
floats = 0,
view_range = 35,
drops = {
{name = "foods:canned_beans", chance = 4, min = 1, max = 1},
{name = "toolx:cudgel_stone", chance = 6, min = 1, max = 1},
--{name = "", chance = 2, min = 1, max = 1},
},
water_damage = 0,
lava_damage = 1,
light_damage = 0,
animation = {
speed_normal = 15,
speed_run = 15,
stand_start = 0,
stand_end = 80,
walk_start = 100,
walk_end = 180,
run_start = 200,
run_end = 240,
punch_start = 200,
punch_end = 240,
die_start = 280,
die_end = 320,
},
})
mobs:spawn({
name = "survivorzombie:survivorzombie2",
nodes = hunternods,
min_light = 0,
max_light = 14,
chance = 5000,
min_height = 0,
max_height = 200,
--max_height = 200,
active_object_count = 5,
})
-- mobs:register_egg("survivorzombie:survivorzombie2", "Survivor Zombie 2", "hunteraxe_egg.png", 1)

View File

@ -57,7 +57,7 @@ mobs:register_mob("tankzombie:tankzombie", {
}, },
walk_velocity = 1, walk_velocity = 1,
run_velocity = 3, run_velocity = 3,
jump_height = 15, jump_height = 5,
stepheight = 1.7, stepheight = 1.7,
floats = 0, floats = 0,
view_range = 35, view_range = 35,

View File

@ -1,7 +1,10 @@
-- sounds :
-- swoosh1 : https://freesound.org/people/lesaucisson/sounds/585257/
-- swoosh2 : https://freesound.org/people/lesaucisson/sounds/585256/
--- Cudgel --- Cudgel
minetest.register_tool("toolx:baseball_bat", { minetest.register_tool("toolx:baseball_bat", {
description = "Baseball bat", description = "Baseball bat",
inventory_image = "Cudgel_stone.png", inventory_image = "Cudgel_stone.png",