Untitled
Anonymous
java
10/24/2023 8:32 PM
476 B
26
Indexable
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);
}Editor is loading...