Added goblin sounds, spawn more goblins in dungeons

pull/18/head
Brandon 2015-08-15 21:52:50 -05:00
parent adc6014130
commit 949c8d5a49
8 changed files with 19 additions and 11 deletions

View File

@ -356,9 +356,9 @@ minetest.register_tool("default:sword_diamond", {
full_punch_interval = 0.6,
max_drop_level=1,
groupcaps={
snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
snappy={times={[1]=1.80, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
},
damage_groups = {fleshy=8},
damage_groups = {fleshy=9},
},
skill=SKILL_CRYSTAL,
sounds = {[0]="default_sword_steel",[1]="default_sword_steel2"},

View File

@ -101,7 +101,7 @@ minetest.register_on_generated( function (minp, maxp, blockseed)
math.randomseed(os.clock())
local fillratio = ( math.random(10,16) / 100 )
local numgoblins = ((xsize * 2) * (zsize * 2)) * fillratio
local numgoblins = 2 + ( ((xsize * 2) * (zsize * 2)) * fillratio )
for e=1,numgoblins do
local rx = math.random((center.x-(xsize-1)),(center.x+(xsize-1)))

View File

@ -819,7 +819,7 @@ function mobs:register_spawn(name, nodes, max_light, min_light, chance, active_o
mobs.spawning_mobs[name] = true
minetest.register_abm({
nodenames = nodes,
--neighbors = {"air"},
neighbors = {"air"},
interval = 30,
chance = chance,
action = function(pos, node, _, active_object_count_wider)

View File

@ -10,9 +10,9 @@ mobs:register_mob("mobs:goblin", {
textures = {"goblins_goblin_coal1.png"},
visual_size = {x=1, y=1},
makes_footstep_sound = false,
view_range = 4,
walk_velocity = 1,
run_velocity = 2,
view_range = 8,
walk_velocity = 2,
run_velocity = 3,
damage = 1.5,
drops = { },
armor = 150,
@ -36,6 +36,10 @@ mobs:register_mob("mobs:goblin", {
},
jump = true,
sounds = {
death = "mobs_goblin_death",
random = "mobs_goblin_ambience",
attack = "default_punch2",
war_cry = "mobs_goblin_warcry",
},
step=0.5,
blood_amount = 15,
@ -56,13 +60,13 @@ mobs:register_mob("mobs:goblin_king", {
textures = {"goblins_goblin_king.png"},
visual_size = {x=1, y=1},
makes_footstep_sound = false,
view_range = 7,
walk_velocity = 1,
run_velocity = 2.5,
view_range = 12,
walk_velocity = 2,
run_velocity = 3.5,
damage = 2,
drops = {
{name = "mobs:goblin_king_crown",
chance = 101,
chance = 40,
min = 1,
max = 1,},
},
@ -87,6 +91,10 @@ mobs:register_mob("mobs:goblin_king", {
},
jump = true,
sounds = {
death = "mobs_goblin_death",
random = "mobs_goblin_king_ambience",
attack = "default_punch2",
war_cry = "mobs_goblin_warcry",
},
step=0.5,
blood_amount = 15,

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.