screenshots and stuff
This commit is contained in:
parent
aa181ef4dc
commit
df16f106e5
3
.gitattributes
vendored
3
.gitattributes
vendored
@ -1,2 +1,5 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
# Exclusions for release export
|
||||
.* export-ignore
|
||||
|
15
README.md
15
README.md
@ -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
|
||||
|
||||

|
||||
|
||||
## Crafting
|
||||
|
||||
The crafting recipe for the headlamp depends on which mods are installed:
|
||||
|
||||
- Minetest Game only:
|
||||
|
||||

|
||||
|
||||
- With Technic installed:
|
||||
|
||||

|
||||
|
||||
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
BIN
images/default_recipe.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.4 KiB |
BIN
images/overview.png
Normal file
BIN
images/overview.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 295 KiB |
BIN
images/technic_recipe.png
Normal file
BIN
images/technic_recipe.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.2 KiB |
3
init.lua
3
init.lua
@ -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
|
||||
|
1
mod.conf
1
mod.conf
@ -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
BIN
screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 181 KiB |
Loading…
x
Reference in New Issue
Block a user