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.
- Attempt to use charge and return
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
- Release details: Backport tool charge helpers #391
- Full changelog: 1.2.x...1.3.0