From b585ebf03dd146ae7bf09b1b30df763175acbac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Zi=C4=99ciak?= Date: Fri, 5 Apr 2024 08:46:58 +0200 Subject: [PATCH] Add rose gold tools --- gradle.properties | 2 +- .../9adbe1c44971b18122390f472ecf7bb970889f75 | 11 ++++++--- .../models/item/rose_gold_axe.json | 6 +++++ .../models/item/rose_gold_hoe.json | 6 +++++ .../models/item/rose_gold_pickaxe.json | 6 +++++ .../models/item/rose_gold_shovel.json | 6 +++++ .../models/item/rose_gold_sword.json | 6 +++++ .../datagen/ModModelProvider.java | 5 ++++ .../squaredadditions/item/ModItems.java | 22 ++++++++++++++++-- .../item/ModToolMaterial.java | 3 ++- .../assets/squaredadditions/lang/en_us.json | 7 +++++- .../assets/squaredadditions/lang/pl_pl.json | 7 +++++- .../textures/item/rose_gold_axe.png | Bin 0 -> 303 bytes .../textures/item/rose_gold_hoe.png | Bin 0 -> 282 bytes .../textures/item/rose_gold_pickaxe.png | Bin 0 -> 306 bytes .../textures/item/rose_gold_shovel.png | Bin 0 -> 282 bytes .../textures/item/rose_gold_sword.png | Bin 0 -> 336 bytes .../recipes/rose_gold_axe.json | 20 ++++++++++++++++ .../recipes/rose_gold_hoe.json | 20 ++++++++++++++++ .../recipes/rose_gold_pickaxe.json | 20 ++++++++++++++++ .../recipes/rose_gold_shovel.json | 20 ++++++++++++++++ .../recipes/rose_gold_sword.json | 20 ++++++++++++++++ 22 files changed, 178 insertions(+), 9 deletions(-) create mode 100644 src/main/generated/assets/squaredadditions/models/item/rose_gold_axe.json create mode 100644 src/main/generated/assets/squaredadditions/models/item/rose_gold_hoe.json create mode 100644 src/main/generated/assets/squaredadditions/models/item/rose_gold_pickaxe.json create mode 100644 src/main/generated/assets/squaredadditions/models/item/rose_gold_shovel.json create mode 100644 src/main/generated/assets/squaredadditions/models/item/rose_gold_sword.json create mode 100644 src/main/resources/assets/squaredadditions/textures/item/rose_gold_axe.png create mode 100644 src/main/resources/assets/squaredadditions/textures/item/rose_gold_hoe.png create mode 100644 src/main/resources/assets/squaredadditions/textures/item/rose_gold_pickaxe.png create mode 100644 src/main/resources/assets/squaredadditions/textures/item/rose_gold_shovel.png create mode 100644 src/main/resources/assets/squaredadditions/textures/item/rose_gold_sword.png create mode 100644 src/main/resources/data/squaredadditions/recipes/rose_gold_axe.json create mode 100644 src/main/resources/data/squaredadditions/recipes/rose_gold_hoe.json create mode 100644 src/main/resources/data/squaredadditions/recipes/rose_gold_pickaxe.json create mode 100644 src/main/resources/data/squaredadditions/recipes/rose_gold_shovel.json create mode 100644 src/main/resources/data/squaredadditions/recipes/rose_gold_sword.json diff --git a/gradle.properties b/gradle.properties index f741bd2..41441e9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ yarn_mappings=1.20.1+build.10 loader_version=0.15.9 # Mod Properties -mod_version=0.5.0 +mod_version=0.6.0 maven_group=pl.xyundy.squaredadditions archives_base_name=squaredadditions diff --git a/src/main/generated/.cache/9adbe1c44971b18122390f472ecf7bb970889f75 b/src/main/generated/.cache/9adbe1c44971b18122390f472ecf7bb970889f75 index c3b0d93..131814c 100644 --- a/src/main/generated/.cache/9adbe1c44971b18122390f472ecf7bb970889f75 +++ b/src/main/generated/.cache/9adbe1c44971b18122390f472ecf7bb970889f75 @@ -1,14 +1,19 @@ -// 1.20.1 2024-04-02T21:58:30.934128 Squared Additions/Model Definitions +// 1.20.1 2024-04-05T08:43:00.272929 Squared Additions/Model Definitions 3ceb6fe4e90e966a3f55f5738ca042b18f9a0ca1 assets/squaredadditions/models/block/rose_gold_block.json 6f15bf8607ada3d987a355d2f2a351969840e7e1 assets/squaredadditions/models/item/emerald_sword.json -cbae0d76c7081cc2a6373ced0f6186dc4551aa9d assets/squaredadditions/models/item/emerald_axe.json f6d93aff2c2a7ee3e0f25897e8bd9c986ae407d5 assets/squaredadditions/blockstates/rose_gold_block.json +cbae0d76c7081cc2a6373ced0f6186dc4551aa9d assets/squaredadditions/models/item/emerald_axe.json 176ad04c6ba42342adc0e6c5fd107be0e63c65b6 assets/squaredadditions/models/item/emerald_hoe.json -0aa7b4259ef0cf273586e6aa78649b2887b01a87 assets/squaredadditions/models/item/rose_gold_ingot.json 5dc59b79a3e713f07045de3613f4ed4b3e29befc assets/squaredadditions/models/item/copper_sword.json +0aa7b4259ef0cf273586e6aa78649b2887b01a87 assets/squaredadditions/models/item/rose_gold_ingot.json +12047fd9df8844630b95d8484150f8da8291f3eb assets/squaredadditions/models/item/rose_gold_hoe.json +c6e40631f77833c121192098a1fe019f0572a914 assets/squaredadditions/models/item/rose_gold_axe.json +853303f1702ea6f952ad21034610a267e3cd5e1b assets/squaredadditions/models/item/rose_gold_sword.json +d78948e974a2e61bfaa7452b3087855095fda779 assets/squaredadditions/models/item/rose_gold_shovel.json 71776dfec5b5f01ce4a9d3b3e000c3bf53bd5bf5 assets/squaredadditions/models/item/copper_shovel.json 39afaac6b756f9390a49ed7cc14c1988f5027523 assets/squaredadditions/models/item/rose_gold_block.json d12673ccac5079afad74fa93feb5535be7cbcb26 assets/squaredadditions/models/item/emerald_shovel.json +b365b18395cbd842714e2bfba774cb4db1810954 assets/squaredadditions/models/item/rose_gold_pickaxe.json 9011be1ee37f6ae56b0d484b34eac096b9f6e907 assets/squaredadditions/models/item/emerald_pickaxe.json 32fe678c1527b64ea225930db2db5251c0a7ba7a assets/squaredadditions/models/item/copper_pickaxe.json e707267f36198cf7a546e3b58db73fa98b8e056a assets/squaredadditions/models/item/copper_axe.json diff --git a/src/main/generated/assets/squaredadditions/models/item/rose_gold_axe.json b/src/main/generated/assets/squaredadditions/models/item/rose_gold_axe.json new file mode 100644 index 0000000..b89e360 --- /dev/null +++ b/src/main/generated/assets/squaredadditions/models/item/rose_gold_axe.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/handheld", + "textures": { + "layer0": "squaredadditions:item/rose_gold_axe" + } +} \ No newline at end of file diff --git a/src/main/generated/assets/squaredadditions/models/item/rose_gold_hoe.json b/src/main/generated/assets/squaredadditions/models/item/rose_gold_hoe.json new file mode 100644 index 0000000..15170ab --- /dev/null +++ b/src/main/generated/assets/squaredadditions/models/item/rose_gold_hoe.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/handheld", + "textures": { + "layer0": "squaredadditions:item/rose_gold_hoe" + } +} \ No newline at end of file diff --git a/src/main/generated/assets/squaredadditions/models/item/rose_gold_pickaxe.json b/src/main/generated/assets/squaredadditions/models/item/rose_gold_pickaxe.json new file mode 100644 index 0000000..fdabb75 --- /dev/null +++ b/src/main/generated/assets/squaredadditions/models/item/rose_gold_pickaxe.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/handheld", + "textures": { + "layer0": "squaredadditions:item/rose_gold_pickaxe" + } +} \ No newline at end of file diff --git a/src/main/generated/assets/squaredadditions/models/item/rose_gold_shovel.json b/src/main/generated/assets/squaredadditions/models/item/rose_gold_shovel.json new file mode 100644 index 0000000..8225520 --- /dev/null +++ b/src/main/generated/assets/squaredadditions/models/item/rose_gold_shovel.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/handheld", + "textures": { + "layer0": "squaredadditions:item/rose_gold_shovel" + } +} \ No newline at end of file diff --git a/src/main/generated/assets/squaredadditions/models/item/rose_gold_sword.json b/src/main/generated/assets/squaredadditions/models/item/rose_gold_sword.json new file mode 100644 index 0000000..f4c7132 --- /dev/null +++ b/src/main/generated/assets/squaredadditions/models/item/rose_gold_sword.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/handheld", + "textures": { + "layer0": "squaredadditions:item/rose_gold_sword" + } +} \ No newline at end of file diff --git a/src/main/java/pl/xyundy/squaredadditions/datagen/ModModelProvider.java b/src/main/java/pl/xyundy/squaredadditions/datagen/ModModelProvider.java index 90f6006..b1ba099 100644 --- a/src/main/java/pl/xyundy/squaredadditions/datagen/ModModelProvider.java +++ b/src/main/java/pl/xyundy/squaredadditions/datagen/ModModelProvider.java @@ -29,6 +29,11 @@ public void generateItemModels(ItemModelGenerator itemModelGenerator) { itemModelGenerator.register(ModItems.EMERALD_SHOVEL, Models.HANDHELD); itemModelGenerator.register(ModItems.EMERALD_AXE, Models.HANDHELD); itemModelGenerator.register(ModItems.EMERALD_HOE, Models.HANDHELD); + itemModelGenerator.register(ModItems.ROSE_GOLD_SWORD, Models.HANDHELD); + itemModelGenerator.register(ModItems.ROSE_GOLD_PICKAXE, Models.HANDHELD); + itemModelGenerator.register(ModItems.ROSE_GOLD_SHOVEL, Models.HANDHELD); + itemModelGenerator.register(ModItems.ROSE_GOLD_AXE, Models.HANDHELD); + itemModelGenerator.register(ModItems.ROSE_GOLD_HOE, Models.HANDHELD); itemModelGenerator.register(ModItems.ROSE_GOLD_INGOT, Models.GENERATED); } diff --git a/src/main/java/pl/xyundy/squaredadditions/item/ModItems.java b/src/main/java/pl/xyundy/squaredadditions/item/ModItems.java index a0f9556..9aabce1 100644 --- a/src/main/java/pl/xyundy/squaredadditions/item/ModItems.java +++ b/src/main/java/pl/xyundy/squaredadditions/item/ModItems.java @@ -36,6 +36,16 @@ public class ModItems { public static final Item ROSE_GOLD_INGOT = registerItem("rose_gold_ingot", new Item(new FabricItemSettings())); + public static final Item ROSE_GOLD_SWORD = registerItem("rose_gold_sword", + new SwordItem(ModToolMaterial.ROSE_GOLD_INGOT, 3, -2.4F, new FabricItemSettings())); + public static final Item ROSE_GOLD_PICKAXE = registerItem("rose_gold_pickaxe", + new PickaxeItem(ModToolMaterial.ROSE_GOLD_INGOT, 1, -2.8F, new FabricItemSettings())); + public static final Item ROSE_GOLD_SHOVEL = registerItem("rose_gold_shovel", + new ShovelItem(ModToolMaterial.ROSE_GOLD_INGOT, 1.5F, -3.0F, new FabricItemSettings())); + public static final Item ROSE_GOLD_AXE = registerItem("rose_gold_axe", + new AxeItem(ModToolMaterial.ROSE_GOLD_INGOT, 6.0F, -3.0F, new FabricItemSettings())); + public static final Item ROSE_GOLD_HOE = registerItem("rose_gold_hoe", + new HoeItem(ModToolMaterial.ROSE_GOLD_INGOT, -1, -3.0F, new FabricItemSettings())); private static Item registerItem(String name, Item item) { return Registry.register(Registries.ITEM, new Identifier(SquaredAdditions.MOD_ID, name), item); @@ -44,10 +54,13 @@ private static Item registerItem(String name, Item item) { public static void itemGroupCombat(FabricItemGroupEntries entries) { entries.add(COPPER_SWORD); - entries.add(COPPER_PICKAXE); + entries.add(COPPER_AXE); entries.add(EMERALD_SWORD); - entries.add(EMERALD_PICKAXE); + entries.add(EMERALD_AXE); + + entries.add(ROSE_GOLD_SWORD); + entries.add(ROSE_GOLD_AXE); } public static void itemGroupTools(FabricItemGroupEntries entries) { entries.add(COPPER_PICKAXE); @@ -59,6 +72,11 @@ public static void itemGroupTools(FabricItemGroupEntries entries) { entries.add(EMERALD_SHOVEL); entries.add(EMERALD_AXE); entries.add(EMERALD_HOE); + + entries.add(ROSE_GOLD_PICKAXE); + entries.add(ROSE_GOLD_SHOVEL); + entries.add(ROSE_GOLD_AXE); + entries.add(ROSE_GOLD_HOE); } public static void itemGroupIngredient(FabricItemGroupEntries entries) { diff --git a/src/main/java/pl/xyundy/squaredadditions/item/ModToolMaterial.java b/src/main/java/pl/xyundy/squaredadditions/item/ModToolMaterial.java index 7617539..196ffcb 100644 --- a/src/main/java/pl/xyundy/squaredadditions/item/ModToolMaterial.java +++ b/src/main/java/pl/xyundy/squaredadditions/item/ModToolMaterial.java @@ -10,7 +10,8 @@ public enum ModToolMaterial implements ToolMaterial { COPPER_INGOT(ToolMaterials.STONE.getMiningLevel(), ToolMaterials.WOOD.getDurability(), ToolMaterials.IRON.getMiningSpeedMultiplier(), ToolMaterials.IRON.getAttackDamage(), ToolMaterials.STONE.getEnchantability(), () -> Ingredient.ofItems(Items.COPPER_INGOT)), - EMERALD(ToolMaterials.IRON.getMiningLevel(), ToolMaterials.DIAMOND.getDurability(), ToolMaterials.DIAMOND.getMiningSpeedMultiplier(), ToolMaterials.IRON.getAttackDamage(), ToolMaterials.DIAMOND.getEnchantability(), () -> Ingredient.ofItems(Items.EMERALD)); + EMERALD(ToolMaterials.IRON.getMiningLevel(), ToolMaterials.DIAMOND.getDurability(), ToolMaterials.DIAMOND.getMiningSpeedMultiplier(), ToolMaterials.IRON.getAttackDamage(), ToolMaterials.DIAMOND.getEnchantability(), () -> Ingredient.ofItems(Items.EMERALD)), + ROSE_GOLD_INGOT(ToolMaterials.GOLD.getMiningLevel(), ToolMaterials.GOLD.getDurability() + COPPER_INGOT.getDurability(), ToolMaterials.GOLD.getMiningSpeedMultiplier(), ToolMaterials.GOLD.getAttackDamage(), ToolMaterials.GOLD.getEnchantability(), () -> Ingredient.ofItems(ModItems.ROSE_GOLD_INGOT)); private final int miningLevel; private final int itemDurability; diff --git a/src/main/resources/assets/squaredadditions/lang/en_us.json b/src/main/resources/assets/squaredadditions/lang/en_us.json index 47372e2..cb12150 100644 --- a/src/main/resources/assets/squaredadditions/lang/en_us.json +++ b/src/main/resources/assets/squaredadditions/lang/en_us.json @@ -16,5 +16,10 @@ "item.squaredadditions.emerald_axe": "Emerald Axe", "item.squaredadditions.emerald_pickaxe": "Emerald Pickaxe", "item.squaredadditions.rose_gold_ingot": "Rose Gold Ingot", - "block.squaredadditions.rose_gold_block": "Rose Gold Block" + "block.squaredadditions.rose_gold_block": "Rose Gold Block", + "item.squaredadditions.rose_gold_sword": "Rose Gold Sword", + "item.squaredadditions.rose_gold_shovel": "Rose Gold Shovel", + "item.squaredadditions.rose_gold_hoe": "Rose Gold Hoe", + "item.squaredadditions.rose_gold_axe": "Rose Gold Axe", + "item.squaredadditions.rose_gold_pickaxe": "Rose Gold Pickaxe" } \ No newline at end of file diff --git a/src/main/resources/assets/squaredadditions/lang/pl_pl.json b/src/main/resources/assets/squaredadditions/lang/pl_pl.json index f184505..80eacc7 100644 --- a/src/main/resources/assets/squaredadditions/lang/pl_pl.json +++ b/src/main/resources/assets/squaredadditions/lang/pl_pl.json @@ -17,5 +17,10 @@ "item.squaredadditions.emerald_axe": "Szmaragdowa Siekiera", "item.squaredadditions.emerald_pickaxe": "Szmaragdowy Kilof", "item.squaredadditions.rose_gold_ingot": "Sztabka Różowego Złota", - "block.squaredadditions.rose_gold_block": "Blok Różowego Złota" + "block.squaredadditions.rose_gold_block": "Blok Różowego Złota", + "item.squaredadditions.rose_gold_sword": "Różowozłoty Miecz", + "item.squaredadditions.rose_gold_shovel": "Różowozłota Łopata", + "item.squaredadditions.rose_gold_hoe": "Różowozłota Motyka", + "item.squaredadditions.rose_gold_axe": "Różowozłota Siekiera", + "item.squaredadditions.rose_gold_pickaxe": "Różowozłoty Kilof" } \ No newline at end of file diff --git a/src/main/resources/assets/squaredadditions/textures/item/rose_gold_axe.png b/src/main/resources/assets/squaredadditions/textures/item/rose_gold_axe.png new file mode 100644 index 0000000000000000000000000000000000000000..e2334fd23a022accdebcf4be93b07aae6ee1bb89 GIT binary patch literal 303 zcmV+~0nq-5P)Px#=}AOER5(v#WS|f*5~F{Ci_3qIx`aJ@Fw_$?0His7@nWz&3u9w348dyvO!LRJ zYZ>@0EEpD6R1j|fvSye!BNsI?$V+fC%-Hk@ZZS?56o`oY@4tMRf#K;>hL0ysFuZy5 zhCxI`gu$Y#oZ-f!uY?T%*$OfQM00R(FjQ1jzzu0=XkeJ|<_*{of`RC1Ci)-b?C)Ej zGEAH}5$qeH4FG9&Fce~#zx@f=*)SKuY{%;Yn9T<+yhZUddb+{t1!6U0bpg7w38hpN z7m#8z%wV_yq}q&OfQB45IL?t12_febl@16Q0suowbP;mdbB_Q3002ovPDHLkV1jrB BbPfOj literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/squaredadditions/textures/item/rose_gold_hoe.png b/src/main/resources/assets/squaredadditions/textures/item/rose_gold_hoe.png new file mode 100644 index 0000000000000000000000000000000000000000..b15a3ad75109953d8feeea54c49442522476dac3 GIT binary patch literal 282 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|E_=E-hFJI~ zrz{XKcyxLHfum3Dee4p?%dN>Olw!Cfv%kWS`S4`*1Y@zVFrx%xmi63RE-nZ3GFGfl zf3ST6gY>3PmtEN^IsMusXUjEyePqh;tY(6vg0n-yv#FXqpSRm5?)dmZ`y*R}N!W=K zfAa5dXngqi<6|D)-d-NzdwUe`G58x_{I8H+Ec2VKjMc|DFpeR!%s|Ac(5&dpLtf?? zXW8}kwEmW~y;UgXa3XDnV+60lv9vjC0@=o4%pMyh4>JVi9y4%o?vtLAlc?Eq!^bNm e=vcZ0gVL8Y!IgdQ%z@rx@O1TaS?83{!~g*5F=;jc literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/squaredadditions/textures/item/rose_gold_pickaxe.png b/src/main/resources/assets/squaredadditions/textures/item/rose_gold_pickaxe.png new file mode 100644 index 0000000000000000000000000000000000000000..85de2049af73518a0d67123eaae96c17e6392b73 GIT binary patch literal 306 zcmV-20nPr2P)Px#>q$gGR5(v#WS|f*QmCH+rvVFGT>hgQp0H;RhI*_9fHcQ1Ud+Jo^eMx~6DPpt z@LO0gEUc(tSo!H9gS-SM!;DRjz00000NkvXXu0mjf E0L!j=xc~qF literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/squaredadditions/textures/item/rose_gold_shovel.png b/src/main/resources/assets/squaredadditions/textures/item/rose_gold_shovel.png new file mode 100644 index 0000000000000000000000000000000000000000..030481f49b77f2a8d0ceabe099eea80273582c06 GIT binary patch literal 282 zcmV+#0pPx#(n&-?R5(v#WS|f*QmCJSBm)+>xcmoMc;UhYh6!)pfb|k>07!HE;>BPGe_Xqk zp`oDxYzR>Xz%@U8%JA{T2?qY)V1`0nUE&PD&}?DBz#uJ6ya6C5SIEfxuc)YC;78L; zR2X=giT-ym6k@nG=MKYyCr{uu!(tC_7{D~o-~NQ*#-p!{1tKEAoQ-TSiWfBGxWTT#7ij3N gA}T54^9lgnSZoohz-d+h0000Px$3Q0skR5(v#WFP}9aB=w$)5b`uevsyRNLvStPu8HPd~9R`qQkT(b#fKM}u0kDuw*s}+2C`c@R$r1*JCr=pAZN`WN zkYXDf8-^oCjxc}>Ax1NX7eJZ<0s