Started by
Scythemeister
on
Topic category: Help with Minecraft modding (Java Edition)
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?
Forgot to mention I'm doing this on 2024.4 for 1.20.1.