I can't figure out how to set the loaded projectile for a crossbow

Started by Paulypus on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can't figure out how to set the loaded projectile for a crossbow

Hello! I am trying to create a crossbow enchantment where you can store shots, and they will be used to automatically reload the crossbow upon shooting. However, I am running into an issue while trying to use nbt tags to reload the crossbow. I can set the crossbow as charged, but I cannot set the loaded projectile, therefore the crossbow does not act as if it was loaded. Any help would be greatly appreciated. I have attached the workspace zip file so that you can view my code. https://drive.google.com/file/d/17JwE555nf_VcfhXjmM2A2tgObjfrJuK_/view?usp=sharing