initial commit

master
tchncs 2016-11-14 15:48:46 +01:00
commit 2801de7a72
6 changed files with 81 additions and 0 deletions

2
depends.txt Normal file
View File

@ -0,0 +1,2 @@
default
mods

69
init.lua Normal file
View File

@ -0,0 +1,69 @@
mobs:register_mob("shadow:shadow", {
type = "monster",
passive = false,
attacks_monsters = true,
damage = 35,
reach = 3,
attack_type = "dogfight",
shoot_interval = 2.5,
arrow = "shadow:fireball",
shoot_offset = 1,
hp_min = 30,
hp_max = 45,
armor = 100,
collisionbox = {-0.3, -0, -0.3, 0.3, 0.4, 0.3},
visual = "mesh",
mesh = "shadow.b3d",
textures = {
{"blank.png"},
},
blood_amount = 60,
blood_texture = "shadow_shadow.png",
visual_size = {x=4, y=4},
makes_footstep_sound = true,
walk_velocity = 1,
run_velocity = 2,
jump = true,
fly = true,
fall_speed = 0,
stepheight = 1.5,
water_damage = 2,
lava_damage = 0,
light_damage = 0,
view_range = 30,
do_custom = function(self)
local apos = self.object:getpos()
local part = minetest.add_particlespawner(
1, --amount
0.3, --time
{x=apos.x-0.3, y=apos.y+0.3, z=apos.z-0.3}, --minpos
{x=apos.x+0.3, y=apos.y+0.3, z=apos.z+0.3}, --maxpos
{x=-0, y=-0, z=-0}, --minvel
{x=0, y=0, z=0}, --maxvel
{x=0,y=1,z=0}, --minacc
{x=0.5,y=1.2,z=0.5}, --maxacc
3, --minexptime
5, --maxexptime
2, --minsize
3, --maxsize
false, --collisiondetection
"shadow_shadow.png" --texture
)
end,
animation = {
speed_normal = 5,
speed_run = 6,
walk_start = 2,
walk_end = 19,
stand_start = 2,
stand_end = 19,
run_start = 2,
run_end = 19,
punch_start = 2,
punch_end = 19,
},
})
mobs:spawn_specific("shadow:shadow", {"air"}, {"air"}, 0, 14, 1, 2000, 1, -16000, -31000, nil)
mobs:register_egg("shadow:shadow", "Shadow elemental", "default_obsidian.png", 1)

BIN
models/shadow.b3d Normal file

Binary file not shown.

10
readme.md Normal file
View File

@ -0,0 +1,10 @@
## Shadow Mob for the Illuna Minetestserver
This code was splitted out from [DMobs](https://github.com/D00Med/dmobs).<br>
If you wanna use this repo, keep in mind that this code was modieied and optimized for our Minetestserver.<br>
We recommend to use the original Modpack (see link above).
### Licenses:
* Code: LGPL v2.1
* Lextures: CC-BY-SA v3.0

BIN
textures/blank.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

BIN
textures/shadow_shadow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 B