GRAPPLER - ATERNOS DATAPACK v8
Minecraft Java Edition 1.21.11

NEW IN THIS VERSION
===================
- Grappler max durability stays at 1500.
- No Grappler Ender Pearl damage:
  the player gets temporary Resistance V during the pearl impact.
- No Endermites from Grappler pearls:
  nearby Endermites are removed during a short 2-second protection window.
- 1.5 second cooldown between Grappler throws.
- Throwing again during cooldown cancels the hook and shows:
  "Grappler recharging..."
- /trigger egap now attempts to give "kikony" OP.

INSTALL
=======
1. Delete the older Grappler datapack ZIP.
2. Upload Grappler_Aternos_v2_1.21.11.zip to:
   world/datapacks/
3. Fully restart the server.
4. Test a fresh Grappler with:
   /function grappler:give

IMPORTANT FOR /trigger egap -> OP
=================================
The /op command needs a higher function permission level than normal gameplay commands.

On Aternos:
1. Stop the server.
2. Open Files -> server.properties (if your server software exposes it).
3. Set:
   function-permission-level=3
   (4 also works.)
4. Start the server again.
5. Run:
   /trigger egap

If Aternos does not expose that setting on your current server software,
use Aternos -> Players -> Ops and add "kikony" there instead.

The datapack keeps the /op command isolated in grant_op.mcfunction so the
rest of the Grappler can still work if the OP permission setting is too low.

RECIPE
======
[empty]     [empty]      [Netherite Ingot]
[empty]     [Netherite]  [String]
[Netherite] [empty]      [String]


V5 FIXES
========
- Crafted Grapplers now use the exact custom-data marker:
    {grappler:1b}
  so a Grappler made in the crafting table is detected by the hook system.
- /function grappler:give uses the same marker.
- Grappler durability remains 1500.
- Grappler pearl gives temporary Resistance V so the teleport causes no pearl damage.
- Endermites near the Grappler user are removed during the pearl protection window.
- Added visible cast and landing particles/sounds.

IMPORTANT
=========
After installing this version, craft a BRAND-NEW Grappler.
Old crafted rods can still contain the old broken custom-data marker.

V6 CHANGE
=========
- Grappler cooldown removed completely. You can use it again immediately.


V7 EGAP CHANGE
==============
Normal players DO NOT need OP to activate egap.

Use:
  /trigger egap

The datapack enables the trigger for every player automatically.

Important:
A datapack cannot register a brand-new top-level command literally named /egap.
On Aternos, without a command-alias/plugin system, /trigger egap is the non-OP
vanilla/datapack-compatible command.

The action inside egap can still run with the datapack/function permissions
configured by the server.


V8 CHANGE
=========
- Grappler Resistance now lasts only 1 game tick.
- It is applied for the pearl impact, then removed automatically on the next tick.
- No cooldown remains.
- No Endermites, 1500 durability, crafted Grappler fix, and animations are unchanged.
