kajtoczjusz

fix the datapack pls some function wont work like the function that gives the mace

Kodari AI
KodariSep 17 at 2:04 pm 4
  • Added a complete 1.21.4-compatible datapack under custom_mace_datapack/.

  • Restored the missing mace functions and linked the kill advancement to the reward function.

  • /function customitems:give_mace now gives the marked mace directly.

Fixed the missing mace reward functions in custom_mace_datapack.

  1. Download the ZIP using the export button.

  2. Extract custom_mace_datapack into world/datapacks/.

  3. Run /reload.

  4. Check with /datapack list.

  5. Test it with /function customitems:give_mace.

The given mace is marked for the advancement, and killing an entity with it rewards another mace.

Kodari can make mistakes. Review important code before using.
Files
custom_mace_datapack
data
Code
7 84
custom_mace_datapack/data/customitems/function/on_kill.mcfunction
function customitems:give_mace
advancement revoke @s only customitems:mace_kill