Skip to content

Commit

Permalink
animated textures mcmeta
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaupenjoe committed Jan 2, 2025
1 parent 6ab0de0 commit 0476abe
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public class ModCreativeModeTabs {
output.accept(ModItems.GOJI_BERRIES);
output.accept(ModItems.TOMAHAWK);

output.accept(ModItems.RADIATION_STAFF);

output.accept(ModItems.GECKO_SPAWN_EGG);

}).build());
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/net/kaupenjoe/tutorialmod/item/ModItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ public void appendHoverText(ItemStack stack, TooltipContext context, List<Compon
public static final DeferredItem<Item> TOMAHAWK = ITEMS.register("tomahawk",
() -> new TomahawkItem(new Item.Properties().stacksTo(16)));

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


public static void register(IEventBus eventBus) {
ITEMS.register(eventBus);
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/tutorialmod/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"item.tutorialmod.gecko_spawn_egg": "Gecko Spawn Egg",

"item.tutorialmod.tomahawk": "Tomahawk",
"item.tutorialmod.radiation_staff": "Radiation Staff",


"block.tutorialmod.bismuth_block": "Block of Bismuth",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "tutorialmod:item/radiation_staff"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"animation":
{
"frametime":2
}
}

0 comments on commit 0476abe

Please sign in to comment.