Order items

This commit is contained in:
Vos
2026-02-01 21:32:34 -06:00
parent 7b6895c8f4
commit bb57cc8657
6 changed files with 37 additions and 17 deletions
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "acesbs:item/dust_of_order"
}
}
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "acesbs:item/ingot_of_order"
}
}
@@ -83,6 +83,8 @@ public class ModModelProvider extends FabricModelProvider {
itemModelGenerator.register(ModItems.GREEN_BRICKS, Models.GENERATED); itemModelGenerator.register(ModItems.GREEN_BRICKS, Models.GENERATED);
itemModelGenerator.register(ModItems.INFERNAL_ASHES, Models.GENERATED); itemModelGenerator.register(ModItems.INFERNAL_ASHES, Models.GENERATED);
itemModelGenerator.register(ModItems.MOTE_OF_ORDER, Models.GENERATED); itemModelGenerator.register(ModItems.MOTE_OF_ORDER, Models.GENERATED);
itemModelGenerator.register(ModItems.DUST_OF_ORDER, Models.GENERATED);
itemModelGenerator.register(ModItems.INGOT_OF_ORDER, Models.GENERATED);
// itemModelGenerator.register(ModItems.WAND, Models.HANDHELD_ROD); // itemModelGenerator.register(ModItems.WAND, Models.HANDHELD_ROD);
itemModelGenerator.register(PrismaSteelItems.PRISMA_STEEL, Models.GENERATED); itemModelGenerator.register(PrismaSteelItems.PRISMA_STEEL, Models.GENERATED);
itemModelGenerator.register(PrismaSteelItems.PRISMA_SMITHING_TEMPLATE, Models.GENERATED); itemModelGenerator.register(PrismaSteelItems.PRISMA_SMITHING_TEMPLATE, Models.GENERATED);
@@ -23,6 +23,8 @@ public class ModItemGroups {
entries.add(ModItems.STABLE_ENDTROPY); entries.add(ModItems.STABLE_ENDTROPY);
entries.add(PrismaSteelItems.PRISMA_STEEL); entries.add(PrismaSteelItems.PRISMA_STEEL);
entries.add(ModItems.MOTE_OF_ORDER); entries.add(ModItems.MOTE_OF_ORDER);
entries.add(ModItems.DUST_OF_ORDER);
entries.add(ModItems.INGOT_OF_ORDER);
entries.add(ModItems.LEMON); entries.add(ModItems.LEMON);
entries.add(ModItems.COOKED_LEMON); entries.add(ModItems.COOKED_LEMON);
entries.add(ModItems.INFERNAL_BEEF); entries.add(ModItems.INFERNAL_BEEF);
@@ -80,12 +80,21 @@ public class ModItems {
public static final Item MOTE_OF_ORDER = registerItem("mote_of_order", new Item(new Item.Settings()) { public static final Item MOTE_OF_ORDER = registerItem("mote_of_order", new Item(new Item.Settings()) {
public void appendTooltip(ItemStack stack, TooltipContext context, List<Text> tooltip, TooltipType type) { public void appendTooltip(ItemStack stack, TooltipContext context, List<Text> tooltip, TooltipType type) {
if(!Screen.hasShiftDown()){
tooltip.add(Text.translatable("tooltip.acesbs.generic.shift_up"));
}
else {
tooltip.add(Text.translatable("tooltip.acesbs.mote_of_order")); tooltip.add(Text.translatable("tooltip.acesbs.mote_of_order"));
super.appendTooltip(stack, context, tooltip, type);
} }
});
public static final Item DUST_OF_ORDER = registerItem("dust_of_order", new Item(new Item.Settings()) {
public void appendTooltip(ItemStack stack, TooltipContext context, List<Text> tooltip, TooltipType type) {
tooltip.add(Text.translatable("tooltip.acesbs.dust_of_order"));
super.appendTooltip(stack, context, tooltip, type);
}
});
public static final Item INGOT_OF_ORDER = registerItem("ingot_of_order", new Item(new Item.Settings()) {
public void appendTooltip(ItemStack stack, TooltipContext context, List<Text> tooltip, TooltipType type) {
tooltip.add(Text.translatable("tooltip.acesbs.ingot_of_order"));
super.appendTooltip(stack, context, tooltip, type); super.appendTooltip(stack, context, tooltip, type);
} }
}); });
@@ -141,17 +150,7 @@ public class ModItems {
public static final Item CIGARETTE = registerItem("cigarette", new Cigarette(new Item.Settings().maxCount(20))); public static final Item CIGARETTE = registerItem("cigarette", new Cigarette(new Item.Settings().maxCount(20)));
public static final Item CIGARETTE_LEMON = registerItem("cigarette_lemon", new CigaretteLemon(new Item.Settings().maxCount(20))); public static final Item CIGARETTE_LEMON = registerItem("cigarette_lemon", new CigaretteLemon(new Item.Settings().maxCount(20)));
public static final Item CIGARETTE_FUNNY = registerItem("cigarette_funny", new CigaretteFunny(new Item.Settings().maxCount(20)){ public static final Item CIGARETTE_FUNNY = registerItem("cigarette_funny", new CigaretteFunny(new Item.Settings().maxCount(20)));
public void appendTooltip(ItemStack stack, TooltipContext context, List<Text> tooltip, TooltipType type) {
if(!Screen.hasShiftDown()){
tooltip.add(Text.translatable("tooltip.acesbs.generic.shift_up"));
}
else {
tooltip.add(Text.translatable("tooltip.acesbs.cigarette_funny"));
}
super.appendTooltip(stack, context, tooltip, type);
}
});
public static final Item FREN_SPAWN_EGG = registerItem("fren_spawn_egg", public static final Item FREN_SPAWN_EGG = registerItem("fren_spawn_egg",
new SpawnEggItem(ModEntities.FREN, 894731, 0, new Item.Settings())); new SpawnEggItem(ModEntities.FREN, 894731, 0, new Item.Settings()));
@@ -24,6 +24,8 @@
"item.minecraft.tipped_arrow.effect.lemon": "Arrow of Puckered", "item.minecraft.tipped_arrow.effect.lemon": "Arrow of Puckered",
"item.acesbs.mote_of_order": "Mote of Order", "item.acesbs.mote_of_order": "Mote of Order",
"item.acesbs.dust_of_order": "Dust of Order",
"item.acesbs.ingot_of_order": "Ingot of Order",
"item.acesbs.prisma_steel": "Prisma Steel", "item.acesbs.prisma_steel": "Prisma Steel",
"item.acesbs.prisma_steel_sword": "Prisma Steel Sword", "item.acesbs.prisma_steel_sword": "Prisma Steel Sword",
@@ -160,6 +162,9 @@
"tooltip.acesbs.combustible_lemon2": "§7§oIm the man whos gonna burn your house down!§r", "tooltip.acesbs.combustible_lemon2": "§7§oIm the man whos gonna burn your house down!§r",
"tooltip.acesbs.mote_of_order": "§o§7A delicate mote of unrealized power.§r", "tooltip.acesbs.mote_of_order": "§o§7A delicate mote of unrealized power.§r",
"tooltip.acesbs.dust_of_order": "§o§7A soft pile of fledgling power.§r",
"tooltip.acesbs.ingot_of_order": "§o§7A sturdy ingot of growing power.§r",
"tooltip.acesbs.cigarette_funny": "§o§7I am the danger of second hand smoke§r", "tooltip.acesbs.cigarette_funny": "§o§7I am the danger of second hand smoke§r",
"sounds.acesbs.lizard": "Lizard!", "sounds.acesbs.lizard": "Lizard!",