Skip to content

Commit

Permalink
Fix item models and names
Browse files Browse the repository at this point in the history
Fixes #24, #23
  • Loading branch information
ellieisjelly committed Dec 18, 2024
1 parent 077f4d1 commit 980b2e9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.util.ActionResult;
import net.minecraft.util.Hand;
import net.minecraft.util.Identifier;
import net.minecraft.world.World;
import xyz.nucleoid.packettweaker.PacketContext;

Expand Down Expand Up @@ -38,4 +39,9 @@ public ActionResult useOnEntity(ItemStack item, PlayerEntity plr, LivingEntity e
public Item getPolymerItem(ItemStack itemStack, PacketContext context) {
return Items.SHEARS;
}

@Override
public Identifier getPolymerItemModel(ItemStack stack, PacketContext context) {
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import eu.pb4.polymer.core.api.item.PolymerItem;
import net.minecraft.block.Block;
import net.minecraft.item.*;
import net.minecraft.util.Identifier;
import xyz.nucleoid.packettweaker.PacketContext;

public class TesterSign extends SignItem implements PolymerItem {
Expand All @@ -15,4 +16,9 @@ public TesterSign(Settings settings, Block standingBlock, Block wallBlock) {
public Item getPolymerItem(ItemStack itemStack, PacketContext context) {
return Items.OAK_SIGN;
}

@Override
public Identifier getPolymerItemModel(ItemStack stack, PacketContext context) {
return null;
}
}
6 changes: 3 additions & 3 deletions src/main/resources/data/sabotage/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"gameType.sabotage.sabotage": "Sabotage",
"block.sabotage.sabotage_chest": "Sabotage Chest",
"block.sabotage.tester_wool": "Tester Wool",
"block.sabotage.tester_sign": "Tester Sign",
"item.sabotage.sabotage_chest": "Sabotage Chest",
"item.sabotage.tester_wool": "Tester Wool",
"item.sabotage.tester_sign": "Tester Sign",
"item.sabotage.detective_shears": "Portable Tester",

"map.sabotage.random": "Random",
Expand Down

0 comments on commit 980b2e9

Please sign in to comment.