3 Commits

Author SHA1 Message Date
b9e69b70c4 Use old Travis CI configurations in GitHub Actions (#36) 2023-09-09 17:26:38 +02:00
ce8a6aec22 Fix nodenames in the docs (#35)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2023-04-22 16:50:01 +02:00
1949d88b06 Fix alpha texture warnings (#34) 2022-12-29 20:32:42 +01:00
3 changed files with 35 additions and 13 deletions

View File

@ -4,8 +4,18 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: lint
uses: Roang-zero1/factorio-mod-luacheck@master
with:
luacheckrc_url: ""
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Install LuaRocks
run: |
sudo apt-get update -qq
sudo apt-get install -qqq luarocks
- name: Install pre-commit and LuaCheck
run: |
pip3 install pre-commit
luarocks install --local luacheck
- name: Run LuaCheck with pre-commit
run: |
pre-commit run --all-files
$HOME/.luarocks/bin/luacheck .

View File

@ -12,15 +12,20 @@ use `-1` as the amount.
as they cannot be removed by hand (they can only be removed with
[WorldEdit](https://github.com/Uberi/Minetest-WorldEdit) or similar).
> **Note**
>
> All of the nodes mentioned below have aliases which can be used as well.\
> Here's the full aliases list: <https://github.com/minetest-mods/maptools/blob/master/aliases.lua>
| Item code | Description |
| ----------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `maptools:{block}_u` | Unbreakable, non-flammable, non-falling, non-decaying blocks. Most common default blocks have an unbreakable form available (`maptools:stone_u`, `maptools:wood_u`, …) |
| `maptools:full_grass` | Unbreakable block with the grass texture on all sides. |
| `maptools:player_clip` | :warning: Invisible, non-pointable block that blocks players and entities. |
| `maptools:full_clip` | Invisible, pointable block that blocks players and entities. Also available as a thin face (`maptools:full_clip_face`). |
| `maptools:playerclip` | :warning: Invisible, non-pointable block that blocks players and entities. |
| `maptools:fullclip` | Invisible, pointable block that blocks players and entities. Also available as a thin face (`maptools:fullclip_face`). |
| `maptools:smoke` | Some smoke. Decreases visibility, but doesn't damage players or entities). |
| `maptools:no_build` | :warning: Very basic building prevention. |
| `maptools:no_interact` | Prevents interacting through the block (opening chests, furnaces, attacking entities, …), but can still be walked through. |
| `maptools:nobuild` | :warning: Very basic building prevention. |
| `maptools:nointeract` | Prevents interacting through the block (opening chests, furnaces, attacking entities, …), but can still be walked through. |
| `maptools:damage_{1…5}` | :warning: Damaging blocks which damage players by 1 to 5 HP per second. |
| `maptools:kill` | :warning: Instant kill blocks (damages players by 20 HP per second). |
| `maptools:drowning` | :warning: Simulates drowning in water. |
@ -31,10 +36,10 @@ as they cannot be removed by hand (they can only be removed with
| Item code | Description |
| -------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------ |
| `maptools:admin_pick` | A bright magenta pickaxe with infinite durability, digs everything including unbreakable blocks instantly. No drops are given when digging nodes. |
| `maptools:admin_pick_with_drops` | Same as the admin pickaxe, but drops are given when digging nodes. |
| `maptools:infinite_fuel` | Fuel lasting for a near-infinite time (about 50 real-life years). |
| `maptools:super_apple` | A yellow apple which heals the player by 20 HP when used. |
| `maptools:pick_admin` | A bright magenta pickaxe with infinite durability, digs everything including unbreakable blocks instantly. No drops are given when digging nodes. |
| `maptools:pick_admin_with_drops` | Same as the admin pickaxe, but drops are given when digging nodes. |
| `maptools:infinitefuel` | Fuel lasting for a near-infinite time (about 50 real-life years). |
| `maptools:superapple` | A yellow apple which heals the player by 20 HP when used. |
| `maptools:copper_coin` | Decorative item (can be used in mini-games). |
| `maptools:silver_coin` | Decorative item (can be used in mini-games). |
| `maptools:gold_coin` | Decorative item (can be used in mini-games). |

View File

@ -85,6 +85,7 @@ register_node("maptools:ignore_like", {
tiles = {"invisible.png"},
paramtype = "light",
sunlight_propagates = true,
use_texture_alpha = "clip",
})
register_node("maptools:ignore_like_no_clip", {
@ -94,6 +95,7 @@ register_node("maptools:ignore_like_no_clip", {
paramtype = "light",
walkable = false,
sunlight_propagates = true,
use_texture_alpha = "clip",
})
@ -104,6 +106,7 @@ register_node("maptools:ignore_like_no_point", {
paramtype = "light",
pointable = false,
sunlight_propagates = true,
use_texture_alpha = "clip",
})
register_node("maptools:ignore_like_no_clip_no_point", {
@ -124,6 +127,7 @@ register_node("maptools:fullclip_face", {
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
use_texture_alpha = "clip",
node_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4999, 0.5},
@ -141,6 +145,7 @@ register_node("maptools:playerclip_bottom", {
pointable = false,
paramtype = "light",
sunlight_propagates = true,
use_texture_alpha = "clip",
node_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4999, 0.5},
@ -158,6 +163,7 @@ register_node("maptools:playerclip_top", {
pointable = false,
paramtype = "light",
sunlight_propagates = true,
use_texture_alpha = "clip",
node_box = {
type = "fixed",
fixed = {-0.5, 0.4999, -0.5, 0.5, 0.5, 0.5},
@ -176,6 +182,7 @@ for pusher_num=1,10,1 do
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
use_texture_alpha = "clip",
node_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4999, 0.5},