Trident Weapon Won't Work After Picking Back Up

Started by Scythemeister on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Trident Weapon Won't Work After Picking Back Up

I made a trident-like weapon that sticks into the ground and can be picked back up. It also has a basic melee functionality. However, upon picking it up, it cannot be thrown a second time unless I go into creative. In the code for the item, and not the projectile, it says:

                if (player.getAbilities().instabuild) {
                    projectile.pickup = AbstractArrow.Pickup.CREATIVE_ONLY;
                }

Does anybody know what I should change so it can be thrown after being picked up?

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Forgot to mention I'm doing…
Tue, 12/16/2025 - 03:10

Forgot to mention I'm doing this on 2024.4 for 1.20.1.