Skip to content

1.3.0

Latest
Compare
Choose a tag to compare
@S-S-X S-S-X released this 03 Feb 23:36
· 186 commits to master since this release
79a699a

Technic Plus API compatibility release

Improves tool API compatibility with both Technic Plus Beta release and original minetest-mods Technic.
See issue #392 and pull request #391 for more details.

This release backports following API features from Technic Plus Beta release

  • technic.get_RE_charge(itemstack)
    • Returns current charge level of tool.
  • technic.set_RE_charge(itemstack, charge)
    • Sets tool charge level.
  • technic.use_RE_charge(itemstack, charge)
    • Attempt to use charge and return true/false indicating success.
    • Always succeeds without checking charge level if creative is enabled.

And brings in other compatibility features

Technic Plus API aliases:

  • #392 technic.get_charge -> technic.get_RE_charge.
  • #392 technic.set_charge -> technic.set_RE_charge.
  • #392 technic.use_charge -> technic.use_RE_charge.

Tool definition API features:

  • <tooldef>.technic_get_charge(stack).
  • <tooldef>.technic_set_charge(stack, charge).

Additional information