Untitled
unknown
java
2 years ago
356 B
13
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...