* mods/ITEMS/mcl_portals/portal_gateway.lua (gateway_teleport):
Export `teleport'.
* mods/ITEMS/mcl_throwing/register.lua
(check_gateway_teleportation): New function.
(pearl_on_step): Teleport thrower through any gateway traversed
by this pearl.
-Changed line 427 from object:add_velocity(vector.new(0,-3-vel.y,0)) to object:add_velocity(vector.new(0,-0.05*vel.y,0)), this resolves the issue of the slow falling effect flinging the player upwards if they were falling too fast when the effect activates.
This is pretty heavy handed with overloading set_node and swap_node which
is probably not acceptable. But everything else would require a sizable
refactoring of the measured node and its interaction with other items.
Trigger comparator update on inventory changes. Shulker boxes additionally
need to trigger comparator update after being placed, because inventory may
not be empty. While at it, clean up shulker inventory restoration a bit.
This prepares support for other measuring types besides inventory fullness.
Introduce table that maps node names to measuring function.
Implement support for small (trapped) chests and hoppers.
Inactive vaults have a 1 second node timer started by on_construct, lbm,
or vault deactivation. Activating requires a player within distance 3
while deactivating only happens if there is no player within distance 5.
Otherwise it wouldn't be useful to deactivate the vault after ejecting the
loot. This resolves the activate/deactivate cycle between auto activation
and active vault deactivation when no eligible player is near.
Also guard can_open and try_open against non player clickers.
This makes it easier to adapt MC loot tables that have a failure chance.
It was actually possible before, but this changes gives a way to suppress
the error message that appeared.
Also update the documentation.
Add failure chance to unique loot table, adapt potion levels and
enchantments to wiki values.
To compensate for the missing trident, slightly reduced the failure chance
for the unique loot. The missing trident enchantments now give a high
chance to create a mending book, which seems appropriate.