Skip to content

Commit 0476abe

Browse files
KaupenjoeKaupenjoe
authored andcommitted
animated textures mcmeta
1 parent 6ab0de0 commit 0476abe

6 files changed

Lines changed: 18 additions & 0 deletions

File tree

src/main/java/net/kaupenjoe/tutorialmod/item/ModCreativeModeTabs.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public class ModCreativeModeTabs {
5353
output.accept(ModItems.GOJI_BERRIES);
5454
output.accept(ModItems.TOMAHAWK);
5555

56+
output.accept(ModItems.RADIATION_STAFF);
57+
5658
output.accept(ModItems.GECKO_SPAWN_EGG);
5759

5860
}).build());

src/main/java/net/kaupenjoe/tutorialmod/item/ModItems.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ public void appendHoverText(ItemStack stack, TooltipContext context, List<Compon
9999
public static final DeferredItem<Item> TOMAHAWK = ITEMS.register("tomahawk",
100100
() -> new TomahawkItem(new Item.Properties().stacksTo(16)));
101101

102+
public static final DeferredItem<Item> RADIATION_STAFF = ITEMS.register("radiation_staff",
103+
() -> new Item(new Item.Properties().stacksTo(1)));
104+
102105

103106
public static void register(IEventBus eventBus) {
104107
ITEMS.register(eventBus);

src/main/resources/assets/tutorialmod/lang/en_us.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"item.tutorialmod.gecko_spawn_egg": "Gecko Spawn Egg",
3939

4040
"item.tutorialmod.tomahawk": "Tomahawk",
41+
"item.tutorialmod.radiation_staff": "Radiation Staff",
4142

4243

4344
"block.tutorialmod.bismuth_block": "Block of Bismuth",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"parent": "minecraft:item/handheld",
3+
"textures": {
4+
"layer0": "tutorialmod:item/radiation_staff"
5+
}
6+
}
900 Bytes
Loading
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"animation":
3+
{
4+
"frametime":2
5+
}
6+
}

0 commit comments

Comments
 (0)