Skip to content

Commit

Permalink
didntn do anythinggggggggggg
Browse files Browse the repository at this point in the history
  • Loading branch information
aridoitsu committed Jul 25, 2024
1 parent 8fe45ea commit 9cf91bf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
import net.fabricmc.fabric.api.datagen.v1.provider.FabricModelProvider;
import net.leafenzo.expandedmobdrops.item.ModItems;
import net.leafenzo.expandedmobdrops.registration.WoodSet;
import net.leafenzo.expandedmobdrops.state.ModProperties;
import net.minecraft.block.Block;
Expand Down Expand Up @@ -212,6 +213,7 @@ public void generateBlockStateModels(BlockStateModelGenerator blockStateModelGen
}
@Override
public void generateItemModels(ItemModelGenerator itemModelGenerator) {
itemModelGenerator.register(ModItems.ANCIENT_MEAT, Models.GENERATED);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public static void registerModItemGroups() {
ModInit.LOGGER.debug("Registering item groups for " + Super.MOD_ID);
}

public static ItemGroup TEMPLATE = Registry.register(Registries.ITEM_GROUP, new Identifier(Super.MOD_ID, "expandedmobdrops"),
FabricItemGroup.builder().displayName(Text.translatable("itemgroup.expandedmobdrops"))
public static ItemGroup EXPANDED_MOB_DROPS = Registry.register(Registries.ITEM_GROUP, new Identifier(Super.MOD_ID, "expanded_mob_drops"),
FabricItemGroup.builder().displayName(Text.translatable("itemgroup.expanded_mob_drops"))
.icon(() -> new ItemStack(Blocks.AIR)).entries((displayContext, entries) -> {
//entries.add(ModBlocks.);
entries.add(ModItems.ANCIENT_MEAT);
}).build());
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package net.leafenzo.expandedmobdrops.item;

import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
import net.fabricmc.fabric.api.itemgroup.v1.FabricItemGroupEntries;
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents;
import net.leafenzo.expandedmobdrops.ModInit;
import net.leafenzo.expandedmobdrops.Super;
import net.minecraft.item.FoodComponent;
import net.minecraft.item.FoodComponents;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroups;
import net.minecraft.registry.Registries;
Expand All @@ -13,6 +16,11 @@
public class ModItems {
//public static final Item RUBY = registerItem("ruby", new Item(new FabricItemSettings()));
//public static final Item RAW_RUBY = registerItem("raw_ruby", new Item(new FabricItemSettings()));
public static final Item ANCIENT_MEAT = registerItem("ancient_meat", new Item(new FabricItemSettings().food(new FoodComponent.Builder()
.hunger(4)
.saturationModifier(0.5f)
.build())
));

private static Item registerItem(String name, Item item) {
return Registry.register(Registries.ITEM, new Identifier(Super.MOD_ID, name), item);
Expand Down

0 comments on commit 9cf91bf

Please sign in to comment.