2012-09-15 08:02:36 -07:00
|
|
|
=== MOBS-MOD for MINETEST-C55 ===
|
|
|
|
by PilzAdam
|
|
|
|
|
|
|
|
Inroduction:
|
2012-09-16 11:45:45 -07:00
|
|
|
This mod adds some basic hostile and friendly mobs to the game.
|
2012-09-15 08:02:36 -07:00
|
|
|
|
|
|
|
How to install:
|
|
|
|
Unzip the archive an place it in minetest-base-directory/mods/minetest/
|
|
|
|
if you have a windows client or a linux run-in-place client. If you have
|
|
|
|
a linux system-wide instalation place it in ~/.minetest/mods/minetest/.
|
|
|
|
If you want to install this mod only in one world create the folder
|
|
|
|
worldmods/ in your worlddirectory.
|
|
|
|
For further information or help see:
|
|
|
|
http://wiki.minetest.com/wiki/Installing_Mods
|
|
|
|
|
|
|
|
How to use the mod:
|
2012-09-19 09:17:42 -07:00
|
|
|
There are 4 hostile mobs that want to kill the player:
|
2012-09-16 11:45:45 -07:00
|
|
|
- The dirt monster spawns at night on grass and get killed on day when
|
|
|
|
its too light.
|
|
|
|
- The stone monster spawns on stone and is stronger but slower than the
|
|
|
|
dirt monster
|
|
|
|
- The desert monster spawns in deserts and is faster but less strong
|
|
|
|
than the dirt monster
|
2012-09-19 09:17:42 -07:00
|
|
|
- The oerkki is the same as in 0.3. It spawns in realy dark caves and
|
|
|
|
is stronger than the dirt monster.
|
2012-09-19 09:06:44 -07:00
|
|
|
There are also 2 friendly mobs:
|
2012-09-16 11:45:45 -07:00
|
|
|
- The sheep spawns on grass. You can get wool from it when you rightclick
|
|
|
|
it and meat if you kill it. Meat can bee cooked in the furnace to eat it.
|
2012-09-19 09:06:44 -07:00
|
|
|
- The rat is the same as in 0.3. You can cook it or replace it in the
|
|
|
|
world if you catched it with an rightclick.
|
2012-09-15 08:02:36 -07:00
|
|
|
|
2012-09-19 08:16:19 -07:00
|
|
|
For developers:
|
|
|
|
This mod add some functions that you can use in other mods:
|
2012-09-20 08:44:44 -07:00
|
|
|
1. mobs:register_mob(name, def)
|
2012-09-19 08:16:19 -07:00
|
|
|
This adds a monster to Minetest that will attack the player
|
|
|
|
"name" is the name of the monster ("[modname]:[monstername]")
|
|
|
|
"def" is a table with the following values:
|
2012-09-20 08:44:44 -07:00
|
|
|
type: the type of the mob ("monster" or "animal")
|
2012-09-19 08:16:19 -07:00
|
|
|
hp_max: same is in minetest.register_entity()
|
|
|
|
physical: same is in minetest.register_entity()
|
|
|
|
collisionbox: same is in minetest.register_entity()
|
|
|
|
visual: same is in minetest.register_entity()
|
|
|
|
visual_size: same is in minetest.register_entity()
|
|
|
|
textures: same is in minetest.register_entity()
|
|
|
|
makes_footstep_sound: same is in minetest.register_entity()
|
|
|
|
view_range: the range in that the monster will see the player
|
|
|
|
and follow him
|
2012-09-19 09:54:30 -07:00
|
|
|
walk_velocity: the velocity when the monster is walking around
|
2012-09-19 08:16:19 -07:00
|
|
|
run_velocity: the velocity when the monster is attacking a player
|
|
|
|
damage: the damage per second
|
2012-09-20 09:03:41 -07:00
|
|
|
drops: is list of tables with the following fields:
|
|
|
|
name: itemname
|
|
|
|
chance: the inverted chance (same as in abm) to get the item
|
|
|
|
min: the minimum number of items
|
|
|
|
max: the maximum number of items
|
2012-09-19 08:16:19 -07:00
|
|
|
armor: the armor (integer)(3=lowest; 1=highest)(fleshy group is used)
|
|
|
|
drawtype: "front" or "side"
|
2012-09-19 09:54:30 -07:00
|
|
|
water_damage: the damage per second if the mob is in water
|
|
|
|
lava_damage: the damage per second if the mob is in lava
|
2012-09-20 08:44:44 -07:00
|
|
|
light_damage: the damage per second if the mob is in light
|
|
|
|
on_rightclick: its same as in minetest.register_entity()
|
2012-09-21 06:37:53 -07:00
|
|
|
attack_type: the attack type of a monster ("dogfight", "shoot",
|
|
|
|
maybe somehting like "explode" in the future (creeper))
|
|
|
|
arrow: if the attack_type="shoot" needed: the entity name of the arrow
|
|
|
|
shoot_interval: the minimum shoot interval
|
|
|
|
2. mobs:register_spawn(name, nodes, max_light, min_light, chance, mobs_per_30_block_radius)
|
2012-09-19 08:16:19 -07:00
|
|
|
This function adds the spawning of an animal (without it the
|
2012-09-19 08:19:47 -07:00
|
|
|
registered animals and monster won't spawn!)
|
2012-09-19 08:16:19 -07:00
|
|
|
"name" is the name of the animal/monster
|
|
|
|
"nodes" is a list of nodenames on that the animal/monster can spawn
|
|
|
|
"max_light" is the maximum of light
|
|
|
|
"min_light" is the minimum of light
|
2012-09-19 09:28:05 -07:00
|
|
|
"chance" is same as in register_abm()
|
|
|
|
"mobs_per_30_block_radius" is the maximum number of mobs in a 30 block
|
|
|
|
radius arround the possible spawning pos
|
2012-09-21 06:37:53 -07:00
|
|
|
3. mobs:register_arrow(name, def)
|
|
|
|
"name" is the name of the arrow
|
|
|
|
"def" is a table with the following values:
|
|
|
|
visual: same is in minetest.register_entity()
|
|
|
|
visual_size: same is in minetest.register_entity()
|
|
|
|
textures: same is in minetest.register_entity()
|
|
|
|
velocity: the velocity of the arrow
|
|
|
|
hit_player: a function that is called when the arrow hits a player
|
|
|
|
params: (self, player)
|
|
|
|
hit_node: a function that is called when the arrow hits a node
|
|
|
|
params: (self, pos, node)
|
2012-09-19 08:16:19 -07:00
|
|
|
|
2012-09-15 08:02:36 -07:00
|
|
|
License:
|
|
|
|
Sourcecode: WTFPL (see below)
|
|
|
|
Grahpics: WTFPL (see below)
|
|
|
|
|
|
|
|
See also:
|
|
|
|
http://minetest.net/
|
|
|
|
|
|
|
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
|
|
|
Version 2, December 2004
|
|
|
|
|
|
|
|
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
|
|
|
|
|
|
|
Everyone is permitted to copy and distribute verbatim or modified
|
|
|
|
copies of this license document, and changing it is allowed as long
|
|
|
|
as the name is changed.
|
|
|
|
|
|
|
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
|
|
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
|
|
|
|
|
|
0. You just DO WHAT THE FUCK YOU WANT TO.
|