remove_infectious datapack (template)
====================================
Created: 2025-08-26

WHAT IT DOES
------------
- Gives you an easy toggle to remove specific 'Infectious - Zombie Apocalypse' mobs and items from your world.
- By default it runs every 10 seconds (very lightweight).
- Safely deletes unwanted spawn eggs & items that are dropped on the ground.
- Lets you (optionally) clear those items out of player inventories once you confirm the exact IDs.
- Mobs-kill lines are provided but COMMENTED OUT until you confirm the correct entity IDs for your mod version.
  (This prevents log spam if an ID doesn't exist.)

QUICK START
-----------
1) Drop this zip into your world's datapacks folder:
   .minecraft/saves/<Your World>/datapacks/remove_infectious_datapack_v1.zip

2) Start the world and run:
   /reload
   /function remove_infectious:help

3) Find the EXACT Infectious registry IDs:
   - Turn on advanced tooltips: press F3+H.
   - In chat, type:  /summon infectious:  then press TAB to see entity IDs.
   - In JEI, find Infectious spawn eggs; hover them to see item IDs in the tooltip.
   - Write down the ones you want to remove.

4) Edit data/remove_infectious/functions/purge.mcfunction with Notepad++:
   - Un-comment the kill lines for the mobs you want removed (delete the leading '#').
   - OPTIONAL: Un-comment the /clear lines for inventories once you've verified item IDs.

5) Back in game:
   /reload
   /function remove_infectious:enable

6) Test:
   - Try /summon infectious:<entity_you_removed> (it should die immediately).
   - Drop a banned item/spawn egg on the ground; it should vanish within ~10s.
   - If all good, you're done!

COMMANDS
--------
/function remove_infectious:enable   -> Turn it on
/function remove_infectious:disable  -> Turn it off
/function remove_infectious:help     -> Quick help
/function remove_infectious:purge    -> Run the removal once immediately

PERFORMANCE NOTES
-----------------
- Runs only every 10 seconds by default (200 ticks). You can change the delay in data/remove_infectious/functions/tick.mcfunction.
- Uses simple selectors; no heavy loops; extremely low impact on server and FPS.

JEI / CREATIVE HIDING
---------------------
Data packs cannot hide items from JEI for all players. For global hiding, use one of:
- KubeJS + its JEI integration (client script), or
- JEITweaker + CraftTweaker scripts, or
- Item Obliterator (mod) to disable and hide items globally.

I've included an OPTIONAL KubeJS client script (see folder) that you can drop into your instance if you use KubeJS.

OPTIONAL: KUBEJS CLIENT SCRIPT (JEI HIDE)
-----------------------------------------
- Install KubeJS and KubeJS JEI integration for your MC/Forge version.
- Copy the file from: OPTIONAL_KUBEJS_CLIENT_SCRIPT/hide_infectious_jei.js
  to:  minecraft/kubejs/client_scripts/hide_infectious_jei.js
- Restart the game. This will hide the listed items (edit the list as needed).

UNINSTALL
---------
- /function remove_infectious:disable
- Remove the zip from your world's datapacks folder.