Skip to content

Commit

Permalink
bug: Fixed issue #730, added recipes for the Wired Fuze and Fixed Can…
Browse files Browse the repository at this point in the history
…non Mount

- Added common CBC tag for copper ingots with EMI translation
  • Loading branch information
rbasamoyai committed Dec 31, 2024
1 parent 7fd6a48 commit 3750a52
Show file tree
Hide file tree
Showing 19 changed files with 279 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ and I'm waiting for you to follow me..."* \

**Create Big Cannons 5.8.1. Comes with a few critical fixes for Create Big Cannons 5.8.0.**

### Added
- Added recipes for Fixed Cannon Mount and Wired Fuze (fixes issue #730)

## [5.8.0] - 2024-12-30

*"I'm free – I'm FREE, \
Expand Down
4 changes: 4 additions & 0 deletions Translators-Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Note: Changes to en_us.json before Create Big Cannons 0.5.3.b => 0.5.4 will not

---

## 5.8.0 → 5.8.1
Additions: \
+ `"tag.createbigcannons.ingot_copper": "Copper Ingots"`

## 5.7.2 → 5.8.0
Additions: \
+ `"block.createbigcannons.cannon_mount_extension": "Cannon Mount Extension"` \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"tag.createbigcannons.ingot_brass": "sʇobuI ssɐɹᗺ",
"tag.createbigcannons.ingot_bronze": "sʇobuI ǝzuoɹᗺ",
"tag.createbigcannons.ingot_cast_iron": "sʇobuI uoɹI ʇsɐƆ",
"tag.createbigcannons.ingot_copper": "sʇobuI ɹǝddoƆ",
"tag.createbigcannons.ingot_iron": "sʇobuI uoɹI",
"tag.createbigcannons.ingot_nethersteel": "sʇobuI ןǝǝʇsɹǝɥʇǝN",
"tag.createbigcannons.ingot_steel": "sʇobuI ןǝǝʇS",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"tag.createbigcannons.ingot_brass": "Brass Ingots",
"tag.createbigcannons.ingot_bronze": "Bronze Ingots",
"tag.createbigcannons.ingot_cast_iron": "Cast Iron Ingots",
"tag.createbigcannons.ingot_copper": "Copper Ingots",
"tag.createbigcannons.ingot_iron": "Iron Ingots",
"tag.createbigcannons.ingot_nethersteel": "Nethersteel Ingots",
"tag.createbigcannons.ingot_steel": "Steel Ingots",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_gunpowder": {
"conditions": {
"items": [
{
"tag": "createbigcannons:gunpowder"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "createbigcannons:fixed_cannon_mount"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_gunpowder",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"createbigcannons:fixed_cannon_mount"
]
},
"sends_telemetry_event": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_redstone": {
"conditions": {
"items": [
{
"tag": "createbigcannons:dusts_redstone"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "createbigcannons:wired_fuze"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_redstone",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"createbigcannons:wired_fuze"
]
},
"sends_telemetry_event": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"C": {
"item": "create:andesite_casing"
},
"G": {
"tag": "createbigcannons:gunpowder"
},
"I": {
"tag": "createbigcannons:sheet_iron"
}
},
"pattern": [
" I ",
"GCG"
],
"result": {
"item": "createbigcannons:fixed_cannon_mount"
},
"show_notification": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"I": {
"tag": "createbigcannons:ingot_copper"
},
"W": {
"tag": "createbigcannons:dusts_redstone"
}
},
"pattern": [
"WIW"
],
"result": {
"count": 4,
"item": "createbigcannons:wired_fuze"
},
"show_notification": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"replace": false,
"values": [
{
"id": "#forge:ingots/copper",
"required": false
},
{
"id": "#c:ingots/copper",
"required": false
},
{
"id": "#c:copper_ingots",
"required": false
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"tag.createbigcannons.ingot_brass": "sʇobuI ssɐɹᗺ",
"tag.createbigcannons.ingot_bronze": "sʇobuI ǝzuoɹᗺ",
"tag.createbigcannons.ingot_cast_iron": "sʇobuI uoɹI ʇsɐƆ",
"tag.createbigcannons.ingot_copper": "sʇobuI ɹǝddoƆ",
"tag.createbigcannons.ingot_iron": "sʇobuI uoɹI",
"tag.createbigcannons.ingot_nethersteel": "sʇobuI ןǝǝʇsɹǝɥʇǝN",
"tag.createbigcannons.ingot_steel": "sʇobuI ןǝǝʇS",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
"tag.createbigcannons.ingot_brass": "Brass Ingots",
"tag.createbigcannons.ingot_bronze": "Bronze Ingots",
"tag.createbigcannons.ingot_cast_iron": "Cast Iron Ingots",
"tag.createbigcannons.ingot_copper": "Copper Ingots",
"tag.createbigcannons.ingot_iron": "Iron Ingots",
"tag.createbigcannons.ingot_nethersteel": "Nethersteel Ingots",
"tag.createbigcannons.ingot_steel": "Steel Ingots",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_gunpowder": {
"conditions": {
"items": [
{
"tag": "createbigcannons:gunpowder"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "createbigcannons:fixed_cannon_mount"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_gunpowder",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"createbigcannons:fixed_cannon_mount"
]
},
"sends_telemetry_event": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_redstone": {
"conditions": {
"items": [
{
"tag": "createbigcannons:dusts_redstone"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "createbigcannons:wired_fuze"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_redstone",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"createbigcannons:wired_fuze"
]
},
"sends_telemetry_event": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"C": {
"item": "create:andesite_casing"
},
"G": {
"tag": "createbigcannons:gunpowder"
},
"I": {
"tag": "createbigcannons:sheet_iron"
}
},
"pattern": [
" I ",
"GCG"
],
"result": {
"item": "createbigcannons:fixed_cannon_mount"
},
"show_notification": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"I": {
"tag": "createbigcannons:ingot_copper"
},
"W": {
"tag": "createbigcannons:dusts_redstone"
}
},
"pattern": [
"WIW"
],
"result": {
"count": 4,
"item": "createbigcannons:wired_fuze"
},
"show_notification": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"replace": false,
"values": [
{
"id": "#forge:ingots/copper",
"required": false
},
{
"id": "#c:ingots/copper",
"required": false
},
{
"id": "#c:copper_ingots",
"required": false
}
]
}
2 changes: 2 additions & 0 deletions src/main/java/rbasamoyai/createbigcannons/CBCTags.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ private static void iterateOverCopperSet(CopperBlockSet set, TagKey<Block> tag)
}

public static class CBCItemTags {
// TODO: Update fabric ore tags to use fabric-convention-tags in 1.21
public static final TagKey<Item>
IMPACT_FUZE_HEAD = makeTag("impact_fuze_head"),
NUGGET_CAST_IRON = commonTag("nugget_cast_iron", "nuggets/cast_iron", "cast_iron_nuggets"),
Expand All @@ -186,6 +187,7 @@ public static class CBCItemTags {
NUGGET_IRON = commonTag("nugget_iron", "nuggets/iron", "iron_nuggets"),
SHEET_IRON = commonTag("sheet_iron", "plates/iron", "iron_plates"),
NUGGET_COPPER = commonTag("nugget_copper", "nuggets/copper", "copper_nuggets"),
INGOT_COPPER = commonTag("ingot_copper", "ingots/copper", "copper_ingots"),
GUNPOWDER = commonTag("gunpowder", "gunpowder", "gunpowder" /* No fabric c: tag */),
GEMS_QUARTZ = commonTag("gems_quartz", "gems/quartz", "quartz"),
DUSTS_REDSTONE = commonTag("dusts_redstone", "dusts/redstone", "redstone_dusts"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ public static void prepare() {
createEMITagTranslation(CBCTags.CBCItemTags.INGOT_BRASS, "Brass Ingots");
createEMITagTranslation(CBCTags.CBCItemTags.INGOT_BRONZE, "Bronze Ingots");
createEMITagTranslation(CBCTags.CBCItemTags.INGOT_CAST_IRON, "Cast Iron Ingots");
createEMITagTranslation(CBCTags.CBCItemTags.INGOT_COPPER, "Copper Ingots");
createEMITagTranslation(CBCTags.CBCItemTags.INGOT_IRON, "Iron Ingots");
createEMITagTranslation(CBCTags.CBCItemTags.INGOT_NETHERSTEEL, "Nethersteel Ingots");
createEMITagTranslation(CBCTags.CBCItemTags.INGOT_STEEL, "Steel Ingots");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ public static void buildCraftingRecipes(Consumer<FinishedRecipe> cons) {
.unlockedBy(getHasName(CBCItems.IMPACT_FUZE.get()), has(CBCItems.IMPACT_FUZE.get()))
.save(cons);

ShapedRecipeBuilder.shaped(RecipeCategory.MISC, CBCItems.WIRED_FUZE.get(), 4)
.define('I', CBCTags.CBCItemTags.INGOT_COPPER).define('W', CBCTags.CBCItemTags.DUSTS_REDSTONE)
.pattern("WIW")
.unlockedBy("has_redstone", has(CBCTags.CBCItemTags.DUSTS_REDSTONE))
.save(cons);

ShapelessRecipeBuilder.shapeless(RecipeCategory.MISC, CBCItems.TRACER_TIP.get(), 4)
.requires(CBCTags.CBCItemTags.DUST_GLOWSTONE).requires(Items.BLAZE_POWDER)
.unlockedBy("has_glowstone", has(CBCTags.CBCItemTags.DUST_GLOWSTONE))
Expand Down Expand Up @@ -354,6 +360,13 @@ public static void buildCraftingRecipes(Consumer<FinishedRecipe> cons) {
.unlockedBy(getHasName(CBCBlocks.CANNON_MOUNT.get()), has(CBCBlocks.CANNON_MOUNT.get()))
.save(cons);

ShapedRecipeBuilder.shaped(RecipeCategory.MISC, CBCBlocks.FIXED_CANNON_MOUNT.get())
.define('C', AllBlocks.ANDESITE_CASING.get()).define('G', CBCTags.CBCItemTags.GUNPOWDER).define('I', CBCTags.CBCItemTags.SHEET_IRON)
.pattern(" I ")
.pattern("GCG")
.unlockedBy("has_gunpowder", has(CBCTags.CBCItemTags.GUNPOWDER))
.save(cons);

ShapedRecipeBuilder.shaped(RecipeCategory.MISC, CBCItems.CAST_IRON_SLIDING_BREECHBLOCK.get())
.define('I', CBCTags.CBCItemTags.INGOT_CAST_IRON).define('C', AllBlocks.COGWHEEL.get())
.pattern(" I ")
Expand Down

0 comments on commit 3750a52

Please sign in to comment.