Add Jingle Block and associated features, including tooltips, recipes, and models

This commit is contained in:
Chipperfluff 2025-12-27 18:08:11 +01:00
parent 72274c08f8
commit 43ad0cca5a
10 changed files with 64 additions and 0 deletions

View File

@ -53,5 +53,16 @@ public class ModBlocks {
new Block(AbstractBlock.Settings.copy(Blocks.IRON_BLOCK).requiresTool())
);
public static final Block JINGLE_BLOCK = Registry.register(
Registries.BLOCK,
new Identifier(ChipiMod.MOD_ID, "jingle_block"),
new Block(
AbstractBlock.Settings.create()
.strength(2.0f)
.mapColor(MapColor.RED)
.requiresTool()
)
);
public static void register() {}
}

View File

@ -30,6 +30,9 @@ public final class ModTooltips {
if (stack.isOf(ModBlocks.CHIPPER_ALLOY_BLOCK.asItem()))
lines.add(Text.translatable("tooltip.chipi.chipper_alloy_block"));
if (stack.isOf(ModBlocks.JINGLE_BLOCK.asItem()))
lines.add(Text.translatable("tooltip.chipi.jingle_block"));
// ===== ITEMS =====
if (stack.isOf(ModItems.RAW_CHIPPER_ORE))
lines.add(Text.translatable("tooltip.chipi.raw_chipper_ore"));

View File

@ -27,6 +27,7 @@ public class ModItemGroups {
entries.add(ModBlocks.CHIPPER_PORTAL);
entries.add(ModBlocks.CHIPPER_ORE);
entries.add(ModBlocks.CHIPPER_ALLOY_BLOCK);
entries.add(ModBlocks.JINGLE_BLOCK);
// Items
entries.add(ModItems.RAW_CHIPPER_ORE);

View File

@ -46,6 +46,12 @@ public class ModItems {
new BlockItem(ModBlocks.CHIPPER_ALLOY_BLOCK, new FabricItemSettings())
);
public static final Item JINGLE_BLOCK = Registry.register(
Registries.ITEM,
new Identifier(ChipiMod.MOD_ID, "jingle_block"),
new BlockItem(ModBlocks.JINGLE_BLOCK, new FabricItemSettings())
);
// ===== ENTITY ITEMS =====
public static final Item MEP_SPAWN_EGG = Registry.register(

View File

@ -0,0 +1,5 @@
{
"variants": {
"": { "model": "chipi:block/jingle_block" }
}
}

View File

@ -10,6 +10,7 @@
"block.chipi.chipper_portal": "Chipper Portal",
"block.chipi.chipper_ore": "Chipper Ore",
"block.chipi.chipper_alloy_block": "Chipper Alloy Block",
"block.chipi.jingle_block": "Jingle Block",
"item.chipi.chipi_record_aa9": "Chipi Record Aa9",
"item.chipi.chipi_record_aa9.desc": "Chipi Record Aa9",
@ -37,6 +38,7 @@
"item.chipi.chipper_ingot": "Chipper Ingot",
"item.chipi.chipper_alloy": "Chipper Alloy",
"item.chipi.mep_spawn_egg": "Mep Spawn Egg",
"item.chipi.jingle_block": "Jingle Block",
"item.chipi.chipper_helmet": "Chipper Helmet",
"item.chipi.chipper_chestplate": "Chipper Chestplate",
@ -58,6 +60,7 @@
"tooltip.chipi.chipper_portal": "§5Something on the other side noticed you.§r §8It did not look away.",
"tooltip.chipi.chipper_ore": "§7Common.§r §8Suspiciously so.",
"tooltip.chipi.chipper_alloy_block": "§7Pressed together until it stopped complaining.§r §8Mostly.",
"tooltip.chipi.jingle_block": "§7It makes a noise.§r §8You didnt ask when.",
"tooltip.chipi.raw_chipper_ore": "§7Still warm to the touch.§r §8That seems unnecessary.",
"tooltip.chipi.chipper_ingot": "§7Dense and stubborn.§r §8Refuses to fail politely.",

View File

@ -0,0 +1,6 @@
{
"parent": "minecraft:block/cube_all",
"textures": {
"all": "chipi:block/jingle_block"
}
}

View File

@ -0,0 +1,3 @@
{
"parent": "chipi:block/jingle_block"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

View File

@ -0,0 +1,26 @@
{
"type": "minecraft:crafting_shaped",
"group": "chipi",
"category": "misc",
"pattern": [
"ABA",
"BCB",
"ABA"
],
"key": {
"A": {
"item": "chipi:chipper_alloy"
},
"B": {
"item": "minecraft:gold_ingot"
},
"C": {
"item": "minecraft:clock"
}
},
"result": {
"item": "chipi:jingle_block",
"count": 1
},
"show_notification": true
}