Untitled
unknown
java
a year ago
356 B
4
Indexable
Never
private void switchToPitchBlade(LivingEntity user, ItemStack stack) { Hand hand = user.getActiveHand(); NbtCompound nbtCompound = stack.getNbt().getCompound("null"); ItemStack pitchBlade = new ItemStack(ModItems.PITCH_BLADE); pitchBlade.setNbt(nbtCompound); user.setStackInHand(hand, pitchBlade); }