-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
Expected behavior
Only one trident item would be picked up.
Observed/Actual behavior
The player picks up the number of tridents held at the time of throwing.
Steps/models to reproduce
Give yourself a trident with a greater than one max stack size. (Note: You also need to remove the max damage component to change max stack size)
/give @p minecraft:trident[minecraft:max_stack_size=64,!minecraft:max_damage] 64
In survival mode, throw the trident into the ground.
Pick up the trident.
Plugin and Datapack List
FancyNpcs
ProtocolLib
Custom plugin, no impact on this functionality.
Datapacks:
Vanilla, Bukkit, Paper.
Paper version
This server is running Paper version 1.21.11-38-main@4446f17 (2025-12-09T22:51:57Z) (Implementing API version 1.21.11-R0.1-SNAPSHOT)
You are 1 version(s) behind
Download the new version at: https://papermc.io/downloads/paper
Previous version: 1.21.10-105-1f31ee5 (MC: 1.21.10)
Other
thrownTrident.pickupItemStack = stack.copy(); // SPIGOT-4511 update since damage call moved
Should be using itemstack variable created here
Paper/paper-server/patches/sources/net/minecraft/world/item/TridentItem.java.patch
Line 12 in e5e2c50
| + ItemStack itemStack = stack.copyWithCount(1); // Paper |