Skip to content

Commit

Permalink
Shortswords now disable mining in creative
Browse files Browse the repository at this point in the history
  • Loading branch information
kill05 committed Jun 16, 2024
1 parent 7ca3e34 commit 3cd1026
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.github.kill05.items.part.ArchitectPart;
import com.github.kill05.items.part.statistics.PartStatistic;
import net.minecraft.core.block.tag.BlockTags;
import net.minecraft.core.item.tag.ItemTags;

public class ArchitectShortsword extends ArchitectTool {

Expand All @@ -14,8 +15,9 @@ public ArchitectShortsword() {
addPart(ArchitectPart.TOOL_ROD, "shortsword/handle").renderPriority(1);

addValidStatistic(PartStatistic.ENTITY_DAMAGE, 1.1f);

addMineableTags(BlockTags.MINEABLE_BY_SWORD);
//noinspection unchecked
withTags(ItemTags.PREVENT_CREATIVE_MINING);
}


Expand Down

0 comments on commit 3cd1026

Please sign in to comment.