Add Jingle Block and associated features, including tooltips, recipes, and models
This commit is contained in:
parent
72274c08f8
commit
43ad0cca5a
@ -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() {}
|
||||
}
|
||||
|
||||
@ -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"));
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"": { "model": "chipi:block/jingle_block" }
|
||||
}
|
||||
}
|
||||
@ -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 didn’t 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.",
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"all": "chipi:block/jingle_block"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
{
|
||||
"parent": "chipi:block/jingle_block"
|
||||
}
|
||||
BIN
src/main/resources/assets/chipi/textures/block/jingle_block.png
Normal file
BIN
src/main/resources/assets/chipi/textures/block/jingle_block.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 225 B |
26
src/main/resources/data/chipi/recipes/jingle_block.json
Normal file
26
src/main/resources/data/chipi/recipes/jingle_block.json
Normal 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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user