<  ForgeCraft - Documentation >
# ----------------<Note>---------------- #
This datapack is created by LPMC2, with some assist from CloudWolf which includes:
- entity_hit_matching (Modified)
- raycast functions: start_raycast, raycast, collide (Modified)
Please do not copy and claim it as own work, I have put a lot of time on the functions.

Please notify me from the platform I published if you found any bugs or problems with the datapack.
# -------------< Known Problems >------------- #
1. All Ranged Reforges are unable to work with firework rockets, as the projectile doesn't contain the weapon component (This is my main method for detecting player firing arrow.
2. You can apply some effects like stunning, leeching etc. if the weapon is in main hand but use left hand to fire the arrow or quick switch the weapon.
3. Potion Effects from Armor will not work properly after respawning if the gamerule of keepinventory is on.
4. You can still get hit effects from mobs even if blocked.
5. Some reforge might not work with all types of items. For example, cleaving will not work in items like stick, potions etc. This is because it uses the scoreboard of [minecraft.item.xxx.used] for detection, which left clicking is not the way for detection.

# -----------< Guide > ----------- #
1. Craft the Reforge Anvil from the given recipe, if the recipe doesn't appear in the crafting table, type the following command:
/recipe give @p crafting:reforge_anvil
You need the Recipe Book opened in order to view the crafting recipe.
To place the reforge anvil, just place it like normal anvil. However, be caution that the anvil will lose its reforge functionality if it falls from not having support block below.

2. From the reforge anvil, there is a item slot (Smooth Stone Slab), where you can put your item in it from [right/left click] if it is empty. If not empty, you will get the item back instead. 
There is also a forge slot (Polished Deepslate Slab), where you can put forge item like the Forging Converter in it (You can't put any other item besides Forge item). Putting & Returning method is the same as item slot.
- For forging the item, click on the preview item above the anvil to forge the item. However, if the item/forge item is incorrect or your xp level isn't enough, it will not do anything.
- For Getting the Reforge Anvil back as a item, all you need to do is to destroy the anvil.
3. To enable the item to be reforged, Forging Converter is required to do so. To craft it, surround the grid with 8x [cobblestone] and a [crafting table] on the middle
4. All reforge items are obtainable by crafting. However, there are some that can be obtained from mobs (if the gamerule ismobmodification is true). 
5. If you wished to add back the mob modification (Including bosses), you can type:
/function gamerules/ismobmodification/true
Disable the feature is the same case:
/function gamerules/ismobmodification/false
6. If you updated this datapack to newer versions (If you don't see any new reforge item), please type:
/function reforge/unlock_all_reforges
To view the recipes for new reforges.
7. If you also wished to skip the stage of getting the reforge anvil, you can type:
/function reforge/give_reforge_anvil
8. The vanilla items you reforge without the converter will now be automatically converted. If you wished to disable this feature, you can type:
/function gamerules/isrequireconvert/true
Enable the feature is the same case:
/function gamerules/isrequireconvert/false
9. This datapack requires Resourcepack to work. This is because the armor texture will be missing and is invisible if the texture doesn't exist.
To download the resourcepack, either go to Modrinth/CurseForge and download the pack from additional file, or download it here:
https://drive.google.com/file/d/1Kf5hKwzhLpUq2eX4b0NuWon4ajBtzWk0/view?usp=drive_link
However, if you really don't want the armor texture, type the following command:
/function gamerules:istexturearmor/false

This is a solo project, that it was created in free time while in college. I really appreciate for those who downloaded, or liked my project. If you are reading this, I hope that you have a great future, and able to fulfill what you want.


