2015-03-12 04:33:04 +01:00
|
|
|
|
2015-03-21 19:28:06 +01:00
|
|
|
-- Creeper by Davedevils (from his subgame MineClone)
|
|
|
|
|
2015-03-12 04:33:04 +01:00
|
|
|
mobs:register_mob("mobs:creeper", {
|
2015-03-21 19:28:06 +01:00
|
|
|
-- animal, monster, npc, barbarian
|
2015-03-12 20:32:37 +01:00
|
|
|
type = "monster",
|
2015-03-26 19:01:45 +01:00
|
|
|
-- agressive, does 21 damage to player when explode
|
2015-03-21 19:28:06 +01:00
|
|
|
passive = false,
|
2015-04-21 12:05:53 +02:00
|
|
|
attack_type = "explode",
|
2015-03-25 16:14:51 +01:00
|
|
|
damage = 21,
|
2015-03-21 19:28:06 +01:00
|
|
|
-- health & armor
|
2015-03-26 19:01:45 +01:00
|
|
|
hp_min = 30, hp_max = 40, armor = 90,
|
2015-03-21 19:28:06 +01:00
|
|
|
-- textures and model
|
2015-07-16 16:24:43 +02:00
|
|
|
collisionbox = {-0.4, -1, -0.4, 0.4, 0.8, 0.4},
|
2015-03-12 20:32:37 +01:00
|
|
|
visual = "mesh",
|
2015-07-16 14:54:23 +02:00
|
|
|
mesh = "mobs_tree_monster.b3d",
|
2015-03-21 19:28:06 +01:00
|
|
|
drawtype = "front",
|
Update mobs mod
- api.lua (many improves, chicken egg more frequent, NPC attack nearly
mobs, textures code, etc…)
- Bee (spawn on group:flower now, textures code updated)
- Bunny (textures code updated)
- Chicken (two times more eggs, textures code updated)
- Cow (textures code updated)
- Creeper (finish reorganize the code, textures code updated, new eggs
inventory texture)
- Dirt Monster (textures code updated)
- Dungeon Master (textures code updated)
- init.lua (small credits tweaks)
- Kitten (textures code updated, now drop sometimes farming:string)
- Lava Flan (textures code updated, now 3 can spawn per chunck)
- Mese Monster (textures code updated)
- NPC (textures code updated, revert give raw meat versus health code
for tests)
- Oerkki (textures code updated, now 1 light damage)
- Rat (textures code updated)
- Sand Monster (textures code updated)
- Sheep (textures code updated, now give 2 to 3 wool when sheared)
- Spider (textures code updated, change credits, comments our
modifications)
- Stone Monster (textures code updated)
- Tree Monster (textures code updated)
- Warthog (textures code updated)
- Wolf (finish reorganize the code, textures code updated, add spawner
egg and an inventory texture)
- Tweaks some sounds
2015-03-31 19:32:46 +02:00
|
|
|
textures = {
|
|
|
|
{"mobs_creeper.png"},
|
2015-03-12 20:32:37 +01:00
|
|
|
},
|
2015-03-21 19:28:06 +01:00
|
|
|
blood_texture = "mobs_creeper_inv.png",
|
Update mobs mod
- api.lua (many improves, chicken egg more frequent, NPC attack nearly
mobs, textures code, etc…)
- Bee (spawn on group:flower now, textures code updated)
- Bunny (textures code updated)
- Chicken (two times more eggs, textures code updated)
- Cow (textures code updated)
- Creeper (finish reorganize the code, textures code updated, new eggs
inventory texture)
- Dirt Monster (textures code updated)
- Dungeon Master (textures code updated)
- init.lua (small credits tweaks)
- Kitten (textures code updated, now drop sometimes farming:string)
- Lava Flan (textures code updated, now 3 can spawn per chunck)
- Mese Monster (textures code updated)
- NPC (textures code updated, revert give raw meat versus health code
for tests)
- Oerkki (textures code updated, now 1 light damage)
- Rat (textures code updated)
- Sand Monster (textures code updated)
- Sheep (textures code updated, now give 2 to 3 wool when sheared)
- Spider (textures code updated, change credits, comments our
modifications)
- Stone Monster (textures code updated)
- Tree Monster (textures code updated)
- Warthog (textures code updated)
- Wolf (finish reorganize the code, textures code updated, add spawner
egg and an inventory texture)
- Tweaks some sounds
2015-03-31 19:32:46 +02:00
|
|
|
-- sounds
|
2015-03-12 20:32:37 +01:00
|
|
|
makes_footstep_sound = true,
|
Update mobs mod
- api.lua (many improves, chicken egg more frequent, NPC attack nearly
mobs, textures code, etc…)
- Bee (spawn on group:flower now, textures code updated)
- Bunny (textures code updated)
- Chicken (two times more eggs, textures code updated)
- Cow (textures code updated)
- Creeper (finish reorganize the code, textures code updated, new eggs
inventory texture)
- Dirt Monster (textures code updated)
- Dungeon Master (textures code updated)
- init.lua (small credits tweaks)
- Kitten (textures code updated, now drop sometimes farming:string)
- Lava Flan (textures code updated, now 3 can spawn per chunck)
- Mese Monster (textures code updated)
- NPC (textures code updated, revert give raw meat versus health code
for tests)
- Oerkki (textures code updated, now 1 light damage)
- Rat (textures code updated)
- Sand Monster (textures code updated)
- Sheep (textures code updated, now give 2 to 3 wool when sheared)
- Spider (textures code updated, change credits, comments our
modifications)
- Stone Monster (textures code updated)
- Tree Monster (textures code updated)
- Warthog (textures code updated)
- Wolf (finish reorganize the code, textures code updated, add spawner
egg and an inventory texture)
- Tweaks some sounds
2015-03-31 19:32:46 +02:00
|
|
|
sounds = {
|
|
|
|
random = "mobs_treemonster",
|
2015-07-16 16:24:43 +02:00
|
|
|
explode= "tnt_explode",
|
Update mobs mod
- api.lua (many improves, chicken egg more frequent, NPC attack nearly
mobs, textures code, etc…)
- Bee (spawn on group:flower now, textures code updated)
- Bunny (textures code updated)
- Chicken (two times more eggs, textures code updated)
- Cow (textures code updated)
- Creeper (finish reorganize the code, textures code updated, new eggs
inventory texture)
- Dirt Monster (textures code updated)
- Dungeon Master (textures code updated)
- init.lua (small credits tweaks)
- Kitten (textures code updated, now drop sometimes farming:string)
- Lava Flan (textures code updated, now 3 can spawn per chunck)
- Mese Monster (textures code updated)
- NPC (textures code updated, revert give raw meat versus health code
for tests)
- Oerkki (textures code updated, now 1 light damage)
- Rat (textures code updated)
- Sand Monster (textures code updated)
- Sheep (textures code updated, now give 2 to 3 wool when sheared)
- Spider (textures code updated, change credits, comments our
modifications)
- Stone Monster (textures code updated)
- Tree Monster (textures code updated)
- Warthog (textures code updated)
- Wolf (finish reorganize the code, textures code updated, add spawner
egg and an inventory texture)
- Tweaks some sounds
2015-03-31 19:32:46 +02:00
|
|
|
},
|
|
|
|
-- speed and jump
|
2015-07-22 01:36:33 +02:00
|
|
|
walk_velocity = 1.5,
|
|
|
|
run_velocity = 3.5,
|
Update mobs mod
- api.lua (many improves, chicken egg more frequent, NPC attack nearly
mobs, textures code, etc…)
- Bee (spawn on group:flower now, textures code updated)
- Bunny (textures code updated)
- Chicken (two times more eggs, textures code updated)
- Cow (textures code updated)
- Creeper (finish reorganize the code, textures code updated, new eggs
inventory texture)
- Dirt Monster (textures code updated)
- Dungeon Master (textures code updated)
- init.lua (small credits tweaks)
- Kitten (textures code updated, now drop sometimes farming:string)
- Lava Flan (textures code updated, now 3 can spawn per chunck)
- Mese Monster (textures code updated)
- NPC (textures code updated, revert give raw meat versus health code
for tests)
- Oerkki (textures code updated, now 1 light damage)
- Rat (textures code updated)
- Sand Monster (textures code updated)
- Sheep (textures code updated, now give 2 to 3 wool when sheared)
- Spider (textures code updated, change credits, comments our
modifications)
- Stone Monster (textures code updated)
- Tree Monster (textures code updated)
- Warthog (textures code updated)
- Wolf (finish reorganize the code, textures code updated, add spawner
egg and an inventory texture)
- Tweaks some sounds
2015-03-31 19:32:46 +02:00
|
|
|
jump = true,
|
|
|
|
view_range = 16,
|
|
|
|
-- drops mese or diamond when dead
|
2015-03-12 04:33:04 +01:00
|
|
|
drops = {
|
2015-03-12 20:32:37 +01:00
|
|
|
{name = "default:torch",
|
2015-05-16 22:30:02 +02:00
|
|
|
chance = 10, min = 3, max = 5,},
|
2015-03-12 20:32:37 +01:00
|
|
|
{name = "default:iron_lump",
|
2015-05-16 22:30:02 +02:00
|
|
|
chance = 5, min = 1, max = 2,},
|
2015-03-12 20:32:37 +01:00
|
|
|
{name = "default:coal_lump",
|
2015-05-16 22:30:02 +02:00
|
|
|
chance = 3, min = 1, max = 3,},
|
2015-03-12 20:32:37 +01:00
|
|
|
},
|
Update mobs mod
- api.lua (many improves, chicken egg more frequent, NPC attack nearly
mobs, textures code, etc…)
- Bee (spawn on group:flower now, textures code updated)
- Bunny (textures code updated)
- Chicken (two times more eggs, textures code updated)
- Cow (textures code updated)
- Creeper (finish reorganize the code, textures code updated, new eggs
inventory texture)
- Dirt Monster (textures code updated)
- Dungeon Master (textures code updated)
- init.lua (small credits tweaks)
- Kitten (textures code updated, now drop sometimes farming:string)
- Lava Flan (textures code updated, now 3 can spawn per chunck)
- Mese Monster (textures code updated)
- NPC (textures code updated, revert give raw meat versus health code
for tests)
- Oerkki (textures code updated, now 1 light damage)
- Rat (textures code updated)
- Sand Monster (textures code updated)
- Sheep (textures code updated, now give 2 to 3 wool when sheared)
- Spider (textures code updated, change credits, comments our
modifications)
- Stone Monster (textures code updated)
- Tree Monster (textures code updated)
- Warthog (textures code updated)
- Wolf (finish reorganize the code, textures code updated, add spawner
egg and an inventory texture)
- Tweaks some sounds
2015-03-31 19:32:46 +02:00
|
|
|
-- damaged by
|
|
|
|
water_damage = 2,
|
2015-03-12 20:32:37 +01:00
|
|
|
lava_damage = 15,
|
|
|
|
light_damage = 0,
|
Update mobs mod
- api.lua (many improves, chicken egg more frequent, NPC attack nearly
mobs, textures code, etc…)
- Bee (spawn on group:flower now, textures code updated)
- Bunny (textures code updated)
- Chicken (two times more eggs, textures code updated)
- Cow (textures code updated)
- Creeper (finish reorganize the code, textures code updated, new eggs
inventory texture)
- Dirt Monster (textures code updated)
- Dungeon Master (textures code updated)
- init.lua (small credits tweaks)
- Kitten (textures code updated, now drop sometimes farming:string)
- Lava Flan (textures code updated, now 3 can spawn per chunck)
- Mese Monster (textures code updated)
- NPC (textures code updated, revert give raw meat versus health code
for tests)
- Oerkki (textures code updated, now 1 light damage)
- Rat (textures code updated)
- Sand Monster (textures code updated)
- Sheep (textures code updated, now give 2 to 3 wool when sheared)
- Spider (textures code updated, change credits, comments our
modifications)
- Stone Monster (textures code updated)
- Tree Monster (textures code updated)
- Warthog (textures code updated)
- Wolf (finish reorganize the code, textures code updated, add spawner
egg and an inventory texture)
- Tweaks some sounds
2015-03-31 19:32:46 +02:00
|
|
|
-- model animation
|
2015-03-12 20:32:37 +01:00
|
|
|
animation = {
|
2015-12-18 21:13:20 +01:00
|
|
|
stand_start = 0,
|
|
|
|
stand_end = 24,
|
|
|
|
walk_start = 25,
|
|
|
|
walk_end = 47,
|
|
|
|
run_start = 48,
|
|
|
|
run_end = 62,
|
|
|
|
punch_start = 48,
|
|
|
|
punch_end = 62,
|
|
|
|
speed_normal = 15,
|
|
|
|
speed_run = 15,
|
2015-03-12 20:32:37 +01:00
|
|
|
},
|
2015-03-12 04:33:04 +01:00
|
|
|
})
|
2015-07-21 21:57:32 +02:00
|
|
|
mobs:spawn_specific("mobs:creeper", {"default:dirt_with_grass"}, {"air"}, 8, 20, 30, 20000, 1, -31000, 31000, false)
|
2015-03-21 18:56:43 +01:00
|
|
|
mobs:register_egg("mobs:creeper", "Creeper", "mobs_creeper_inv.png", 1)
|