mt-mods / mt-mods/technic

Show empty wear bar when tool needs charging

Open
#362 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
Dominant language
Lua
Stars
23
Forks
33
PR merge metrics
No merged PRs in 30d

Description

From the pandorabox #ideas channel:

FeXoR
Always make the charge state of an item visible e.g. by showing a black bar instead of transparance as background
(To comunicate more clearly to the player that this item is empty and needs charging)
SX
Maybe also some simple nice generic sounds if/when trying to use power tool without enough charge.

In addition to showing the wear bar after being used, I think it would also be a good idea to show it on newly crafted tools. This could be done with minetest.register_on_craft, or by adding the metadata to the item in each craft recipe.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the code that displays tool wear bars and the handling for newly crafted tools. Check the minetest.register_on_craft entry point mentioned in the issue, then verify that newly crafted and empty power tools show an empty bar and that existing wear-bar behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
game-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.