7 Commits

Author SHA1 Message Date
e1cae85e42 Merge branch 'master' of yunohost.local:minetest-mods/gauges into nalc-1.2-dev 2019-12-22 13:11:58 +01:00
SmallJoker
6cd5e97542 5.x compatibility, drop 0.4.x support (#2) 2019-10-13 19:47:56 +02:00
David Leal
ab2d7c83be Use mod.conf for name and description (#1) 2019-09-28 20:14:56 +02:00
Hugo Locurcio
4718559b01 Update pre-commit hooks to 2.3.0 2019-09-25 23:19:13 +02:00
Hugo Locurcio
af5d69957d Update URLs in the README to reflect the move to minetest-mods 2019-09-08 22:04:47 +02:00
Hugo Locurcio
766d9f2c10 Travis CI: Use the bionic distribution 2019-07-29 00:52:08 +02:00
e1534c2139 Corrige emplacement de la barre gauges
- Place à nouveau la barre au dessus de la tête du joueur.
2019-05-01 18:46:26 +02:00
5 changed files with 15 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0 rev: v2.3.0
hooks: hooks:
- id: end-of-file-fixer - id: end-of-file-fixer
- id: trailing-whitespace - id: trailing-whitespace

View File

@@ -1,16 +1,16 @@
language: generic dist: bionic
language: python
addons: python:
apt: - 3.7.1
packages:
- luarocks
install: install:
- pyenv global 3.6.3 - sudo apt-get update -qq
- pip3 install --user pre-commit - sudo apt-get install -qqq luarocks
- pip3 install pre-commit
- luarocks install --local luacheck - luarocks install --local luacheck
script: script:
# All linters are run with pre-commit hooks # All linters are run with pre-commit hooks
- export PATH="$HOME/.luarocks/bin:$PATH" - export PATH="$HOME/.luarocks/bin:$PATH"
- $HOME/.local/bin/pre-commit run --all-files - pre-commit run --all-files

View File

@@ -13,11 +13,11 @@ To install Gauges, clone this Git repository into your Minetest's `mods/`
directory: directory:
```bash ```bash
git clone https://github.com/Calinou/gauges.git git clone https://github.com/minetest-mods/gauges.git
``` ```
You can also You can also
[download a ZIP archive](https://github.com/Calinou/gauges/archive/master.zip) [download a ZIP archive](https://github.com/minetest-mods/gauges/archive/master.zip)
of Gauges. If you do so, you will need to extract the archive then rename of Gauges. If you do so, you will need to extract the archive then rename
the resulting folder from `gauges-master` to `gauges` this is the resulting folder from `gauges-master` to `gauges` this is
**absolutely** required, as the mod won't work otherwise. **absolutely** required, as the mod won't work otherwise.
@@ -60,9 +60,7 @@ on that line.
## Version compatibility ## Version compatibility
Gauges is currently primarily tested with Minetest 0.4.17. Gauges requires Minetest 5.0.0 or newer to work as expected.
It may or may not work with newer or older versions. Issues arising in older
versions than 0.4.17 will generally not be fixed.
## License ## License

View File

@@ -48,7 +48,7 @@ local function add_HP_gauge(name)
local ent = minetest.add_entity(pos, "gauges:hp_bar") local ent = minetest.add_entity(pos, "gauges:hp_bar")
if ent ~= nil then if ent ~= nil then
ent:set_attach(player, "", {x = 0, y = 10, z = 0}, {x = 0, y = 0, z = 0}) ent:set_attach(player, "", {x = 0, y = 19, z = 0}, {x = 0, y = 0, z = 0})
ent = ent:get_luaentity() ent = ent:get_luaentity()
ent.wielder = player:get_player_name() ent.wielder = player:get_player_name()
end end

2
mod.conf Normal file
View File

@@ -0,0 +1,2 @@
name = gauges
description = Adds health and breath gauges above players.