v0.3.4
This commit is contained in:
parent
ace1260b72
commit
cfab6199fa
23
README.md
Normal file
23
README.md
Normal file
@ -0,0 +1,23 @@
|
||||
### Mobs Balrog
|
||||
![Mobs Balrog's screenshot](screenshot.png)<br>
|
||||
**_Adds a balrog._**
|
||||
|
||||
**Version:** 0.3.4<br>
|
||||
**Source code's license:** LGPL v2.1<br>
|
||||
**Media (Textures, Models, Sounds) license:** CC-BY-SA 3.0 Unported
|
||||
|
||||
**Dependencies:** default, tnt (found in Minetest Game), mobs (Mobs Redo)<br>
|
||||
|
||||
### Installation
|
||||
|
||||
Unzip the archive, rename the folder to mobs_balrog and place it in<br>
|
||||
../minetest/mods/
|
||||
|
||||
If you only want this to be used in a single world, place it in<br>
|
||||
../minetest/worlds/WORLD_NAME/worldmods/
|
||||
|
||||
GNU+Linux - If you use a system-wide installation place it in<br>
|
||||
~/.minetest/mods/
|
||||
|
||||
For further information or help see:<br>
|
||||
https://wiki.minetest.net/Help:Installing_Mods
|
31
README.txt
31
README.txt
@ -1,31 +0,0 @@
|
||||
|
||||
MOBS BALROG MODULE
|
||||
==================
|
||||
|
||||
Adds a balrog mob.
|
||||
|
||||
|
||||
Version: 0.3.3
|
||||
Source code's license: LGPLv2.1
|
||||
Media (Textures, Models, Sounds) license: CC-BY-SA 3.0 Unported
|
||||
|
||||
Dependencies: default, tnt (found in Minetest Game), mobs (Mobs Redo)
|
||||
|
||||
Report bugs or request help on the forum topic.
|
||||
https://forum.minetest.net/viewtopic.php?f=9&t=18459
|
||||
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
Unzip the archive, rename the folder to mobs_balrog and place it in
|
||||
../minetest/mods/
|
||||
|
||||
GNU+Linux: If you use a system-wide installation place it in
|
||||
~/.minetest/mods/
|
||||
|
||||
If you only want this to be used in a single world, place the folder in
|
||||
../minetest/worlds/world_name/worldmods/
|
||||
|
||||
For further information or help see:
|
||||
http://wiki.minetest.net/wiki/Installing_Mods
|
23
changelog.md
Normal file
23
changelog.md
Normal file
@ -0,0 +1,23 @@
|
||||
# Changelog
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/).
|
||||
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
- No further addition planned.
|
||||
|
||||
|
||||
## [0.3.4] - 2018-07-10
|
||||
### Added
|
||||
|
||||
- changelog.md
|
||||
|
||||
### Changed
|
||||
|
||||
- fixed the knock_back bug
|
||||
- increased the jump height to 16 nodes (was 4)
|
||||
- moved constant values into entity's definition/spawner function
|
||||
- README.txt -> README.md
|
@ -1,2 +1,2 @@
|
||||
Adds a balrog mob.
|
||||
Adds a balrog.
|
||||
Aggiunge un balrog.
|
84
init.lua
84
init.lua
@ -1,6 +1,6 @@
|
||||
--[[
|
||||
|
||||
Mobs Balrog - Adds a balrog mob.
|
||||
Mobs Balrog - Adds a balrog.
|
||||
Copyright (C) 2018 Hamlet
|
||||
|
||||
Authors of source code:
|
||||
@ -44,16 +44,13 @@
|
||||
--
|
||||
|
||||
local minetest_log_level = minetest.settings:get("debug_log_level")
|
||||
local mod_load_message = "[Mod] Mobs Balrog [v0.3.3] loaded."
|
||||
local mod_load_message = "[Mod] Mobs Balrog [v0.3.4] loaded."
|
||||
|
||||
|
||||
--
|
||||
-- Balrog's spawn settings
|
||||
--
|
||||
|
||||
local SPAWN_ON = {"group:cracky"}
|
||||
-- Rocks, cobbles, etc.
|
||||
|
||||
local MAX_LIGHT = tonumber(minetest.setting_get("mobs_balrog_max_light"))
|
||||
if (MAX_LIGHT == nil) then
|
||||
MAX_LIGHT = 14
|
||||
@ -104,30 +101,11 @@ if (MAX_HP == nil) then
|
||||
MAX_HP = 600
|
||||
end
|
||||
|
||||
local ARMOR_STRENGHT = 100
|
||||
-- Default = 100, lower values make it stronger
|
||||
|
||||
local WALKING_SPEED = 3.5
|
||||
-- Default = 4, Player's walking speed = 4
|
||||
|
||||
local RUNNING_SPEED = 5.2
|
||||
-- Default = 5.2
|
||||
-- (Player's walking speed (4)) * 1.3
|
||||
-- 1.3 = HBSprint's default multiplier
|
||||
|
||||
local WALK_CHANCE = tonumber(minetest.setting_get("mobs_balrog_walk_chance"))
|
||||
if (WALK_CHANCE == nil) then
|
||||
WALK_CHANCE = 50
|
||||
end
|
||||
|
||||
local CAN_JUMP = true
|
||||
|
||||
local JUMP_HEIGHT = 4
|
||||
-- Default = 16, a map block.
|
||||
|
||||
local STEP_HEIGHT = 2.2
|
||||
-- Default = 2.2, twice a mob's default step height.
|
||||
|
||||
local VIEW_RANGE = tonumber(minetest.setting_get("mobs_balrog_view_range"))
|
||||
if (VIEW_RANGE == nil) then
|
||||
VIEW_RANGE = 32
|
||||
@ -138,30 +116,6 @@ if (DAMAGE == nil) then
|
||||
DAMAGE = 20
|
||||
end
|
||||
|
||||
local KNOCK_BACK = false
|
||||
|
||||
local FEAR_HEIGHT = 0
|
||||
|
||||
local FALL_DAMAGE = 0
|
||||
|
||||
local WATER_DAMAGE = 7
|
||||
-- Default: 7, if it has 400hp it will die in 60secs.
|
||||
|
||||
local LAVA_DAMAGE = 0
|
||||
|
||||
local LIGHT_DAMAGE = 0
|
||||
|
||||
local CAN_SUFFOCATE = false
|
||||
|
||||
local CAN_SWIM_INTO_WATER = 0
|
||||
|
||||
local HIT_RANGE = 5
|
||||
-- Player's default = 4
|
||||
|
||||
local ATTACK_ANIMALS = true
|
||||
|
||||
local GROUP_ATTACK = true
|
||||
|
||||
local PATH_FINDER = tonumber(minetest.setting_get("mobs_balrog_pathfinding"))
|
||||
if (PATH_FINDER == nil) then
|
||||
PATH_FINDER = 1
|
||||
@ -177,25 +131,25 @@ mobs:register_mob("mobs_balrog:balrog", {
|
||||
type = "monster",
|
||||
hp_min = MIN_HP,
|
||||
hp_max = MAX_HP,
|
||||
armor = ARMOR_STRENGHT,
|
||||
walk_velocity = WALKING_SPEED,
|
||||
run_velocity = RUNNING_SPEED,
|
||||
armor = 100,
|
||||
walk_velocity = 3.5,
|
||||
run_velocity = 5.2,
|
||||
walk_chance = WALK_CHANCE,
|
||||
jump = CAN_JUMP,
|
||||
jump_height = JUMP_HEIGHT,
|
||||
stepheight = STEP_HEIGHT,
|
||||
jump_height = 16,
|
||||
stepheight = 2.2,
|
||||
view_range = VIEW_RANGE,
|
||||
damage = DAMAGE,
|
||||
fear_height = FEAR_HEIGHT,
|
||||
fall_damage = FALL_DAMAGE,
|
||||
water_damage = WATER_DAMAGE,
|
||||
lava_damage = LAVA_DAMAGE,
|
||||
light_damage = LIGHT_DAMAGE,
|
||||
suffocation = CAN_SUFFOCATE,
|
||||
floats = CAN_SWIM_INTO_WATER,
|
||||
reach = HIT_RANGE,
|
||||
attack_animals = ATTACK_ANIMALS,
|
||||
group_attack = GROUP_ATTACK,
|
||||
knock_back = false,
|
||||
fear_height = 0,
|
||||
fall_damage = 0,
|
||||
water_damage = 7,
|
||||
lava_damage = 0,
|
||||
light_damage = 0,
|
||||
suffocation = false,
|
||||
floats = 0,
|
||||
reach = 5,
|
||||
attack_animals = true,
|
||||
group_attack = true,
|
||||
attack_type = "dogfight",
|
||||
blood_amount = 0,
|
||||
pathfinding = PATH_FINDER,
|
||||
@ -391,7 +345,7 @@ minetest.register_tool("mobs_balrog:balrog_whip", {
|
||||
|
||||
|
||||
mobs:spawn({name = "mobs_balrog:balrog",
|
||||
nodes = SPAWN_ON,
|
||||
nodes = {"group:cracky"},
|
||||
max_light = MAX_LIGHT,
|
||||
min_light = MIN_LIGHT,
|
||||
interval = INTERVAL,
|
||||
|
4
mod.conf
4
mod.conf
@ -1,7 +1,7 @@
|
||||
name = mobs_balrog
|
||||
title = Mobs Balrog
|
||||
author = Hamlet
|
||||
description = Adds a balrog mob. Aggiunge un balrog.
|
||||
description = Adds a balrog.
|
||||
license = LGPLv2.1 - CC BY-SA 3.0 Unported
|
||||
forum = https://forum.minetest.net/viewtopic.php?f=9&t=18459
|
||||
version = 0.3.3
|
||||
version = 0.3.4
|
Loading…
x
Reference in New Issue
Block a user