Technic mod for Minetest
Go to file
Zefram 99fd5dfee5 Genericise handling of multiple meanings of wear
The tool workshop is meant to repair mechanical damage to tools, so
is at risk of `repairing' tools that use the wear bar to represent
something other than mechanical wear.  It had special-case recognition
of the water and lava cans, which use the wear bar to represent how much
content they're carrying, and wouldn't repair them.  But it didn't avoid
`repairing' RE chargeable items, which use the wear bar to represent
how much energy they have stored.  It would modify the wear bar without
actually affecting the charge, so the wear bar would jump back to the
correct place when the next charging or discharging event occurred.

To genericise, introduce a new item property, "wear_represents", which
indicates how the wear bar is used for this item.  Currently defined
values are "mechanical_wear" (straightforward damage to tools that
start out perfect), "technic_RE_charge" (electrical energy, canonically
represented in the meta rather than the wear bar), and "content_level"
(how full a container is).  For backcompat, nil is interpreted as
"mechanical_wear".  The tool workshop will only repair "mechanical_wear"
tools.  As a bonus, set_RE_wear() will only set the wear bar for
"technic_RE_charge" items: this means developers will notice if they
forget to declare wear_represents, but also means that with no further
changes it's possible to have an RE chargeable item that uses its wear
bar to represent something else.
2014-04-30 00:21:55 +01:00
concrete Add german translations for all mods 2014-04-22 16:30:27 -04:00
extranodes Add german translations for all mods 2014-04-22 16:30:27 -04:00
technic Genericise handling of multiple meanings of wear 2014-04-30 00:21:55 +01:00
technic_chests Fix chest log messages 2014-04-27 14:43:25 -04:00
technic_worldgen Add german translations for all mods 2014-04-22 16:30:27 -04:00
wrench Add german translations for all mods 2014-04-22 16:30:27 -04:00
.gitattributes upload 2012-08-21 07:18:33 +02:00
.gitignore deleted undesired backup file 2013-04-14 22:53:30 -04:00
modpack.txt cleanup phase2 2013-01-27 14:03:47 +01:00
README.md Make some headers smaller in the READMEs 2014-02-27 00:32:37 -05:00

Technic

Credits for contributing to the project (in alphabetical order):

  • kpoppel
  • Nekogloop
  • Nore/Novatux
  • ShadowNinja
  • VanessaE
  • And many others...

FAQ

  1. My technic circuit doesn't work. No power is distrubuted.
  • A: Make sure you have a switching station connected.

License

See mod folders for their licences