screenshots and stuff

This commit is contained in:
OgelGames 2022-02-25 02:02:42 +11:00
parent aa181ef4dc
commit df16f106e5
8 changed files with 21 additions and 1 deletions

3
.gitattributes vendored
View File

@ -1,2 +1,5 @@
# Auto detect text files and perform LF normalization
* text=auto
# Exclusions for release export
.* export-ignore

View File

@ -8,6 +8,7 @@
## Table of Contents
- [Overview](#overview)
- [Crafting](#crafting)
- [Dependencies](#dependencies)
- [Installation](#installation)
- [License](#license)
@ -18,6 +19,20 @@ A simple mod that adds a headlamp that can be worn as armor, providing a bright
![Overview Screenshot](images/overview.png?raw=true "Overview Screenshot")
## Crafting
The crafting recipe for the headlamp depends on which mods are installed:
- Minetest Game only:
![Default Recipe](images/default_recipe.png?raw=true "Default Recipe")
- With Technic installed:
![Technic Recipe](images/technic_recipe.png?raw=true "Technic Recipe")
If another game is used that doesn't include `default` or `farming`, no recipe will be added.
## Dependencies

BIN
images/default_recipe.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
images/overview.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

BIN
images/technic_recipe.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

View File

@ -1,7 +1,7 @@
local has_technic = minetest.get_modpath("technic")
local drain_inv = minetest.settings:get_bool("headlamp_check_inventory", false)
local drain_inv = minetest.settings:get_bool("headlamp_drain_inventory", false)
local battery_life = tonumber(minetest.settings:get("headlamp_battery_life")) or 1
local battery_drain = math.floor(65535 / (battery_life * 60)) * 5
@ -158,6 +158,7 @@ local off_def = merge(base_def, {
local on_def = merge(base_def, {
description = "Headlamp (On)",
inventory_image = "headlamp_inv_headlamp_on.png",
groups = {armor_head = 1, armor_heal = 0, armor_use = 0, not_in_creative_inventory = 1},
light_source = 14,
on_use = function(stack)
-- Turn headlamp off

View File

@ -1,4 +1,5 @@
name = headlamp
description = Adds a headlamp that can be worn as armor, providing a bright light source
depends = illumination, 3d_armor
optional_depends = default, farming, technic
min_minetest_version = 5.3.0

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB