Port from EverythingVanilla
TODO: make enchanted apples glow, add ore gen, daggers, golden netherite, villager meat, vertical slabs, aether, reaplant/replenish enchantment.
This commit is contained in:
31
src/main/java/tech/nevets/vplus/items/VPItemGroups.java
Normal file
31
src/main/java/tech/nevets/vplus/items/VPItemGroups.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package tech.nevets.vplus.items;
|
||||
|
||||
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
|
||||
import net.minecraft.item.ItemGroup;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.Items;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
public class VPItemGroups {
|
||||
//Creative Tab
|
||||
public static final ItemGroup ALL = FabricItemGroupBuilder.build(
|
||||
new Identifier("vplus", "all"),
|
||||
() -> new ItemStack((Items.GRASS_BLOCK)));
|
||||
//Combat Tab
|
||||
public static final ItemGroup COMBAT = FabricItemGroupBuilder.build(
|
||||
new Identifier("vplus", "combat"),
|
||||
() -> new ItemStack((Items.DIAMOND_SWORD)));
|
||||
//Tools Tab
|
||||
public static final ItemGroup TOOLS = FabricItemGroupBuilder.create(
|
||||
new Identifier("vplus", "tools"))
|
||||
.icon(() -> new ItemStack(Items.DIAMOND_PICKAXE))
|
||||
/*.appendItems(stacks -> {
|
||||
stacks.add(new ItemStack(Main.RUBY));
|
||||
stacks.add(new ItemStack(Items.EMERALD_BLOCK));
|
||||
})*/
|
||||
.build();
|
||||
//Food Tab
|
||||
public static final ItemGroup FOOD = FabricItemGroupBuilder.build(
|
||||
new Identifier("vplus", "food"),
|
||||
() -> new ItemStack((Items.ENCHANTED_GOLDEN_APPLE)));
|
||||
}
|
||||
Reference in New Issue
Block a user