From 7e8a65a9946697f52a2c1a747c6dd68661e35a25 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Sun, 29 May 2016 11:12:51 -0500 Subject: [PATCH 01/29] 1.9 update is done! --- build.gradle | 32 ++++++++++--------- .../tinkers_addons/TinkersAddons.java | 2 +- .../tinkers_addons/lib/Config.java | 18 +++++------ .../modifiers/ModAutoRepair.java | 10 ++++-- .../tinkers_addons/util/ClientProxy.java | 4 +-- 5 files changed, 36 insertions(+), 30 deletions(-) diff --git a/build.gradle b/build.gradle index 55bae83..be5c95c 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,3 @@ - -// For those who want the bleeding edge buildscript { repositories { jcenter() @@ -22,26 +20,27 @@ repositories { version = "1.0" group= "com.oitsjustjose.tinkers_addons" -archivesBaseName = "Tinkers' Addons-1.8.9" +archivesBaseName = "Tinkers' Addons-1.9" minecraft { - version = "1.8.9-11.15.1.1902-1.8.9" - if (file('../../run').exists()){ - runDir = "../../run" + version = "1.9-12.16.1.1923" + + if (file('../run').exists()){ + runDir = "../run" } else { runDir = "run" - } + } useDepAts = true replaceIn "lib/Lib.java" replace "@VERSION@", project.version - mappings = "stable_20" + mappings = "snapshot_20160312" } dependencies { - deobfCompile "mezz.jei:jei_1.8.9:2.28.9.176" - deobfCompile "slimeknights.mantle:Mantle:1.8.9-0.9.2.jenkins102" - deobfCompile "slimeknights:TConstruct:1.8.9-2.2.1.jenkins1005" + deobfCompile "mezz.jei:jei_1.9:3.3.3.200" + deobfCompile "slimeknights.mantle:Mantle:1.9-0.10.1.jenkins140" + deobfCompile "slimeknights:TConstruct:1.9-2.3.1.jenkins226" } task deobfJar(type: Jar) { @@ -50,16 +49,19 @@ task deobfJar(type: Jar) { } artifacts{ - archives deobfJar + archives deobfJar } -processResources{ +processResources +{ + // this will ensure that this task is redone when the versions change. inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version + // replace stuff in mcmod.info, nothing else from(sourceSets.main.resources.srcDirs) { - include 'mcmod.info' - expand 'version':project.version, 'mcversion':project.minecraft.version + include 'mcmod.info' + expand 'version':project.version, 'mcversion':project.minecraft.version } from(sourceSets.main.resources.srcDirs) { diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java b/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java index b6c69c9..ff5e551 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java @@ -17,7 +17,7 @@ import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; -@Mod(modid = Lib.MODID, name = Lib.NAME, version = Lib.VERSION, guiFactory = Lib.GUI_FACTORY, acceptedMinecraftVersions = "1.8.9", dependencies = "required-after:tconstruct@[1.8.9-2.2.1,);" + "required-after:mantle@[1.8.9-0.9.0,)") +@Mod(modid = Lib.MODID, name = Lib.NAME, version = Lib.VERSION, guiFactory = Lib.GUI_FACTORY, acceptedMinecraftVersions = "1.9", dependencies = "required-after:tconstruct@[1.9-2.3.1,);" + "required-after:mantle@[1.9-0.10.1,)") public class TinkersAddons { @Instance(Lib.MODID) diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/lib/Config.java b/src/main/java/com/oitsjustjose/tinkers_addons/lib/Config.java index c95bc23..c2cd58a 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/lib/Config.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/lib/Config.java @@ -26,20 +26,20 @@ public class Config { Property property; - property = config.get(config.CATEGORY_GENERAL, "Enable Auto-Repair", true).setRequiresMcRestart(true); - property.comment = "Allows you to enable or disable the auto-repair trait"; + property = config.get(Configuration.CATEGORY_GENERAL, "Enable Auto-Repair", true).setRequiresMcRestart(true); + property.setComment("Allows you to enable or disable the auto-repair trait"); enableAutoRepair = property.getBoolean(); - property = config.get(config.CATEGORY_GENERAL, "Enable 1st bonus modifier mod for tools", true).setRequiresMcRestart(true); - property.comment = "Re-adds the diamond + gold block recipe to increase modifiers on a tool if enabled"; + property = config.get(Configuration.CATEGORY_GENERAL, "Enable 1st bonus modifier mod for tools", true).setRequiresMcRestart(true); + property.setComment("Re-adds the diamond + gold block recipe to increase modifiers on a tool if enabled"); enableExtraModifierLvl1 = property.getBoolean(); - property = config.get(config.CATEGORY_GENERAL, "Enable 2nd bonus modifier mod for tools", true).setRequiresMcRestart(true); - property.comment = "Re-adds the diamond block + gold apple recipe to increase modifiers on a tool if enabled"; + property = config.get(Configuration.CATEGORY_GENERAL, "Enable 2nd bonus modifier mod for tools", true).setRequiresMcRestart(true); + property.setComment("Re-adds the diamond block + gold apple recipe to increase modifiers on a tool if enabled"); enableExtraModifierLvl2 = property.getBoolean(); - property = config.get(config.CATEGORY_GENERAL, "Enable 3rd bonus modifier mod for tools", true).setRequiresMcRestart(true); - property.comment = "Re-adds the nether star recipe to increase modifiers on a tool if enabled"; + property = config.get(Configuration.CATEGORY_GENERAL, "Enable 3rd bonus modifier mod for tools", true).setRequiresMcRestart(true); + property.setComment("Re-adds the nether star recipe to increase modifiers on a tool if enabled"); enableExtraModifierLvl3 = property.getBoolean(); if (config.hasChanged()) @@ -49,7 +49,7 @@ public class Config @SubscribeEvent public void onConfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event) { - if (event.modID.equalsIgnoreCase(Lib.MODID)) + if (event.getModID().equalsIgnoreCase(Lib.MODID)) initialize(); } } diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java b/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java index 6e7dd16..74f5065 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java @@ -43,16 +43,20 @@ public class ModAutoRepair extends Modifier @SubscribeEvent(priority = EventPriority.HIGHEST) public void onUpdate(PlayerEvent event) { - if (event.entityPlayer == null) + if (event.getEntityPlayer() == null) return; - EntityPlayer player = event.entityPlayer; + EntityPlayer player = event.getEntityPlayer(); ArrayList tinkersTools = new ArrayList(); int autoRepairLevel = 0; for (ItemStack iterStack : player.inventory.mainInventory) if (iterStack != null && iterStack.getItem() instanceof ToolCore) tinkersTools.add(iterStack); + // Works to include items held in the second hand + if (player.getHeldItemOffhand() != null && player.getHeldItemOffhand().getItem() instanceof ToolCore) + tinkersTools.add(player.getHeldItemOffhand()); + for (ItemStack iterStack : tinkersTools) { NBTTagCompound tag = TagUtil.getToolTag(iterStack.getTagCompound()); @@ -73,7 +77,7 @@ public class ModAutoRepair extends Modifier // Calculates that the last repair time stored minus the current time is less than or equal to 30 seconds divided by auto-repair level if ((System.currentTimeMillis() - lastRepairTime) >= (getRepairCooldown(player)) && autoRepairLevel > 0) { - ToolHelper.healTool(iterStack, autoRepairLevel, event.entityPlayer); + ToolHelper.healTool(iterStack, autoRepairLevel, player); tag.setLong(Lib.TAG_AUTO_REPAIR_COOLDOWN, System.currentTimeMillis()); } } diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/util/ClientProxy.java b/src/main/java/com/oitsjustjose/tinkers_addons/util/ClientProxy.java index bc5430b..8a4595a 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/util/ClientProxy.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/util/ClientProxy.java @@ -22,8 +22,8 @@ import com.oitsjustjose.tinkers_addons.lib.Lib; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; -import net.minecraft.client.resources.model.ModelBakery; -import net.minecraft.client.resources.model.ModelResourceLocation; +import net.minecraft.client.renderer.block.model.ModelBakery; +import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; From b7d346b29c5911a5220e828f7c361e3524339098 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Sun, 29 May 2016 11:16:09 -0500 Subject: [PATCH 02/29] Implemented time check to make sure there is sunlight --- .../tinkers_addons/modifiers/ModAutoRepair.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java b/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java index 74f5065..5deaad3 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java @@ -53,7 +53,7 @@ public class ModAutoRepair extends Modifier if (iterStack != null && iterStack.getItem() instanceof ToolCore) tinkersTools.add(iterStack); - // Works to include items held in the second hand + // Works to include items held in the second hand if (player.getHeldItemOffhand() != null && player.getHeldItemOffhand().getItem() instanceof ToolCore) tinkersTools.add(player.getHeldItemOffhand()); @@ -90,8 +90,9 @@ public class ModAutoRepair extends Modifier if (player.dimension == -1) return 10000 + rand; if (world.canSeeSky(player.getPosition()) && !world.isRaining()) - return 12500 + rand; - else - return 15000 + rand; + if (world.getWorldTime() >= 0 && world.getWorldTime() <= 13000) + return 12500 + rand; + + return 15000 + rand; } } From c29ad62d962008d6bd7acd64b793d9b8c96ec37a Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Sun, 29 May 2016 11:25:11 -0500 Subject: [PATCH 03/29] Cleanup --- .../oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java b/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java index 5deaad3..57a375f 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java @@ -74,7 +74,7 @@ public class ModAutoRepair extends Modifier } long lastRepairTime = tag.getLong(Lib.TAG_AUTO_REPAIR_COOLDOWN); - // Calculates that the last repair time stored minus the current time is less than or equal to 30 seconds divided by auto-repair level + if ((System.currentTimeMillis() - lastRepairTime) >= (getRepairCooldown(player)) && autoRepairLevel > 0) { ToolHelper.healTool(iterStack, autoRepairLevel, player); From 34661d123adee9418af927198610ea733213069a Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Sun, 29 May 2016 23:56:45 -0500 Subject: [PATCH 04/29] Trying to work this stuff out... :/ --- .../tinkers_addons/TinkersAddons.java | 19 ++++++++++++++++++ .../tinkers_addons/lib/LibModifiers.java | 15 ++++---------- .../models/item/modifiers/auto-repair.json | 19 ++++++++++++++++++ .../textures/modifiers/battleaxe.png | Bin 0 -> 157 bytes .../textures/modifiers/battlesign.png | Bin 0 -> 189 bytes .../textures/modifiers/broadsword.png | Bin 0 -> 128 bytes .../textures/modifiers/cleaver.png | Bin 0 -> 232 bytes .../textures/modifiers/excavator.png | Bin 0 -> 222 bytes .../textures/modifiers/frypan.png | Bin 0 -> 190 bytes .../textures/modifiers/hammer.png | Bin 0 -> 131 bytes .../textures/modifiers/hatchet.png | Bin 0 -> 133 bytes .../textures/modifiers/longsword.png | Bin 0 -> 123 bytes .../textures/modifiers/lumberaxe.png | Bin 0 -> 168 bytes .../textures/modifiers/mattock.png | Bin 0 -> 149 bytes .../textures/modifiers/pickaxe.png | Bin 0 -> 155 bytes .../textures/modifiers/rapier.png | Bin 0 -> 109 bytes .../textures/modifiers/shovel.png | Bin 0 -> 123 bytes .../textures/modifiers/shuriken.png | Bin 0 -> 286 bytes 18 files changed, 42 insertions(+), 11 deletions(-) create mode 100644 src/main/resources/assets/tinkersaddons/models/item/modifiers/auto-repair.json create mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/battleaxe.png create mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/battlesign.png create mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/broadsword.png create mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/cleaver.png create mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/excavator.png create mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/frypan.png create mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/hammer.png create mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/hatchet.png create mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/longsword.png create mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/lumberaxe.png create mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/mattock.png create mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/pickaxe.png create mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/rapier.png create mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/shovel.png create mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/shuriken.png diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java b/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java index ff5e551..11cd481 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java @@ -8,6 +8,8 @@ import com.oitsjustjose.tinkers_addons.modifiers.ModAutoRepair; import com.oitsjustjose.tinkers_addons.util.ClientProxy; import com.oitsjustjose.tinkers_addons.util.CommonProxy; +import net.minecraft.util.ResourceLocation; +import net.minecraftforge.client.model.ModelLoaderRegistry; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; @@ -16,6 +18,8 @@ import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; +import slimeknights.tconstruct.library.client.model.ModifierModelLoader; +import slimeknights.tconstruct.library.modifiers.IModifier; @Mod(modid = Lib.MODID, name = Lib.NAME, version = Lib.VERSION, guiFactory = Lib.GUI_FACTORY, acceptedMinecraftVersions = "1.9", dependencies = "required-after:tconstruct@[1.9-2.3.1,);" + "required-after:mantle@[1.9-0.10.1,)") public class TinkersAddons @@ -28,12 +32,21 @@ public class TinkersAddons public static Config modConfig; public static LibItems modItems; public static LibModifiers modModifiers; + public static ModifierModelLoader modifierLoader; @EventHandler public void preInit(FMLPreInitializationEvent event) { CommonProxy.preInit(); + modifierLoader = new ModifierModelLoader() + { + @Override + public boolean accepts(ResourceLocation modelLocation) + { + return (modelLocation.getResourceDomain().equalsIgnoreCase(Lib.MODID) && modelLocation.getResourcePath().contains("modifiers")); + } + }; modConfig = new Config(event.getSuggestedConfigurationFile()); modItems = new LibItems(); modModifiers = new LibModifiers(); @@ -53,6 +66,12 @@ public class TinkersAddons { if (event.getSide().isClient()) ClientProxy.init(); + ModelLoaderRegistry.registerLoader(modifierLoader); + registerModifierModel(modModifiers.auto_repair, new ResourceLocation(Lib.MODID.toLowerCase(), "models/item/modifiers/auto-repair")); } + public void registerModifierModel(IModifier modifier, ResourceLocation location) + { + modifierLoader.registerModifierFile(modifier.getIdentifier(), location); + } } \ No newline at end of file diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibModifiers.java b/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibModifiers.java index 297faaa..2eccdbb 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibModifiers.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibModifiers.java @@ -4,18 +4,14 @@ import com.oitsjustjose.tinkers_addons.TinkersAddons; import com.oitsjustjose.tinkers_addons.modifiers.ModAutoRepair; import com.oitsjustjose.tinkers_addons.modifiers.ModExtraModifier; -import net.minecraft.init.Blocks; -import net.minecraft.init.Items; -import net.minecraft.item.ItemStack; -import slimeknights.mantle.util.RecipeMatch; import slimeknights.tconstruct.library.modifiers.Modifier; public class LibModifiers { - public static Modifier auto_repair; - public static Modifier extra_modifier_lvl1; - public static Modifier extra_modifier_lvl2; - public static Modifier extra_modifier_lvl3; + public Modifier auto_repair; + public Modifier extra_modifier_lvl1; + public Modifier extra_modifier_lvl2; + public Modifier extra_modifier_lvl3; public LibModifiers() { @@ -26,17 +22,14 @@ public class LibModifiers if (TinkersAddons.modConfig.enableExtraModifierLvl1) { extra_modifier_lvl1 = new ModExtraModifier(1); - extra_modifier_lvl1.addRecipeMatch(new RecipeMatch.ItemCombination(1, new ItemStack(Items.diamond, 1, 0), new ItemStack(Blocks.gold_block))); } if (TinkersAddons.modConfig.enableExtraModifierLvl2) { extra_modifier_lvl2 = new ModExtraModifier(2); - extra_modifier_lvl2.addRecipeMatch(new RecipeMatch.ItemCombination(1, new ItemStack(Items.golden_apple, 1, 1), new ItemStack(Blocks.diamond_block))); } if (TinkersAddons.modConfig.enableExtraModifierLvl3) { extra_modifier_lvl3 = new ModExtraModifier(3); - extra_modifier_lvl3.addItem(Items.nether_star); } } } \ No newline at end of file diff --git a/src/main/resources/assets/tinkersaddons/models/item/modifiers/auto-repair.json b/src/main/resources/assets/tinkersaddons/models/item/modifiers/auto-repair.json new file mode 100644 index 0000000..18b0a75 --- /dev/null +++ b/src/main/resources/assets/tinkersaddons/models/item/modifiers/auto-repair.json @@ -0,0 +1,19 @@ +{ + "textures": { + "battleaxe": "tinkersaddons:modifiers/battleaxe", + "battlesign": "tinkersaddons:modifiers/battlesign", + "broadsword": "tinkersaddons:modifiers/broadsword", + "rapier": "tinkersaddons:modifiers/rapier", + "cleaver": "tinkersaddons:modifiers/cleaver", + "excavator": "tinkersaddons:modifiers/excavator", + "frypan": "tinkersaddons:modifiers/frypan", + "hammer": "tinkersaddons:modifiers/hammer", + "hatchet": "tinkersaddons:modifiers/hatchet", + "longsword": "tinkersaddons:modifiers/longsword", + "lumberaxe": "tinkersaddons:modifiers/lumberaxe", + "mattock": "tinkersaddons:modifiers/mattock", + "pickaxe": "tinkersaddons:modifiers/pickaxe", + "shovel": "tinkersaddons:modifiers/shovel", + "shuriken": "tinkersaddons:modifiers/shuriken" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/battleaxe.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/battleaxe.png new file mode 100644 index 0000000000000000000000000000000000000000..b20e3d124cf6b0f4e366eccf7ceca2ee249d7f7d GIT binary patch literal 157 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`DV{ElAr-fh6C_wG8u#q}Q!k(v zy*PLJ+xoXDZ~spdo%Y}J63-=$ODu;J%zF5ZdNgJywkhmxSdf;})@ULq%Xea1v%!h5 zNz4K_|EFZO{hX?D)Ti zwzr%9uAjTccNgQbsmuO5&f+cN{nvaWW#@rShd$Y#QP{MX!Kg(=f6DY}|IF8$vft*p z#9`E+BYxnIUywqRi9$9@qQLAI4lJ5YnGKn3OBomOGW?W$!X=<~^1i}Rh5d(^de&q# o?`%*yo1z;1q+yZ9V*zf4-QP;q=)8H)3Um*Hr>mdKI;Vst0H>@<8vpP){z>_n0_HG=?d63_TK|{4x5<=4UeJDjKtTU;@s;-J&_cgUs zOP&SeCumJYJOMx~zP$-FV-sTvW)<*YlwSnf@{8b9!?NJuY<|j&&A}WhDjSEEKXvxmG+8_G>0000}1e~7VYWo+YQ6c-ow zaZEBfWb*(2fBDM-Nx5v9`wAbkl{t4@t@-f4(Ln8_Kq0F>+tW?EdG-XhODyx9&1Tk+ zF}=aWeO(p*wKFNk(muj#Bk#rjv*$T%(j4P7>9gakt&_JNY-@;NDiVx4dtzJDhSXNo z9^VM#O^VxMw`t7kWHX3PJf{|E?4f+3Y?8_2PsXuxc+ayvxz#tRKjEH2m@*GDL#ET@ Vg?1{jvw;p~@O1TaS?83{1OQuMQyKsO literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/frypan.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/frypan.png new file mode 100644 index 0000000000000000000000000000000000000000..bc3758e216313fb0fbcc46fb6861ededca5f45a6 GIT binary patch literal 190 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`t)4E9Ar-gYPIBaGP!Mt1+sU5s z*zHK`YradnYIS!xOgEcn@L-X~=F~$9HP6o0cqRY){OiWWXL=TThUV=I3lgP@Ze9M& z(3n@Ybf$DH8^?q{ueduh>~hyL_Bd=w5IgZ|*8FY8M>-U97T#gt+SzJ&F({vzr^6)s p*QU}N-~WehxK{UfRn@$wj0w_BU(>kuO#nKG!PC{xWt~$(695ejPA>oe literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/hammer.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/hammer.png new file mode 100644 index 0000000000000000000000000000000000000000..9d330cb43aa042a66a73db8adf20a63c6b297dcb GIT binary patch literal 131 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`UY;(FAr-fh6C_v<%bwVM`u}ym zYybQ=sYz^myXkL!Wa7{HIkO!lj;Ngs6JWc^b;u>t&79*|&L)#)6QQ>`IdyC|{o>OX evnyC;vND)Gv@I50$ln4qmBG{1&t;ucLK6UyLM)U3 literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/hatchet.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/hatchet.png new file mode 100644 index 0000000000000000000000000000000000000000..01f371733318036bcec61e746754851daa37ce6a GIT binary patch literal 133 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`KAtX)Ar-fh6C_x_uuc=5_J8Z- zt^ZH&KK)-k+PFjQB*TQH8EXxE0+@}|Zo17-+!nj-Nw%8yh6F#hOqQE|VIGs;rhmDh hrae(W)O8C3!}AFaVt->4TY%;=c)I$ztaD0e0sy7mEo=Y) literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/longsword.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/longsword.png new file mode 100644 index 0000000000000000000000000000000000000000..3841e214c706702109e69fbe860275a3400a98b6 GIT binary patch literal 123 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`PM$7~Ar-fh6C_v{H_URl7yHki zWAfTa>qzOIlV%6Do&L5zwN>?LTLTY+q|2mohpxm~3F{PYG0ga%DCNQD)8!=3!La*+ W&i2iGITb+D7(8A5T-G@yGywpZa40_j literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/lumberaxe.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/lumberaxe.png new file mode 100644 index 0000000000000000000000000000000000000000..5f75a267aaeb25ce9afc3684089c5b4d8107ee8e GIT binary patch literal 168 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%``JOJ0Ar-fhKg3wHGPa#$O37Yw zg`u+i=l_)GtjNTl@z#;Q?Qgc-D7zVy#^7OmLR3YXVe`zCvkFH~NOfM~3FbJYF#BYY z(V4VG%se;41lVqRZ9AJ{DSb0-(j&=O}C_M;!TE>+nr`CH}@Oxp2(Tt=pxzlF1@6=;8s_#pvVIrpCl&k x^pZ)kp$3-|7WxD_DMlOL)a1Fz{p1BJgM~+q`&2cnRX}?fJYD@<);T3K0RRD0GkX94 literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/pickaxe.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/pickaxe.png new file mode 100644 index 0000000000000000000000000000000000000000..f6d96315484451793f541b7a3fd7dbdf2317a2b5 GIT binary patch literal 155 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`NuDl_Ar-fh6C@%X?#2GI=a{_q z=C;${_NTV0R<<>mWU6O3^D5qAm@(N=BF(siP10qOq5-c#&vnrgToZHM___D!9S}{} z!E^M2&x!dFPZO32b7iKyf4F7tqKai2ODC?KDa62#&XLjI5bpgEXd8p4tDnm{r-UW| DttU1K literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/rapier.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/rapier.png new file mode 100644 index 0000000000000000000000000000000000000000..9c8ddae6f280c27fe91f8892fc63b5b2420985c0 GIT binary patch literal 109 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`CY~;iAr-fh6C_v{Cp=-OEdTlc z*2!D{b9d+bpS)JmMR{}QHJ-yKlBS7HJ0jh5+F?>m(|H4iSqqhUbyl!`0P1J(boFyt I=akR{00QzQ@c;k- literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/shovel.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/shovel.png new file mode 100644 index 0000000000000000000000000000000000000000..9e99949df612834ed992832bdc6817d0e966895e GIT binary patch literal 123 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`PM$7~Ar-fh6C_xhWlroq{l7i2 zi|3->HMM&JDbbEMHXWK&BHmzfqwMCS^^!{_s-!ReEuLcSIZN}Kapc0@^QtAjISlhZ Vn!VmzmJ2eJ!PC{xWt~$(695aOD_;Nr literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/shuriken.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/shuriken.png new file mode 100644 index 0000000000000000000000000000000000000000..ec267b9db792e19f5d64dba677e8a3b27d095797 GIT binary patch literal 286 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85p>QL70(Y)*K0-AbW|YuPggKE*T*?vF;VOKsx7nx;TbdoPIlT zFITgHNUOc-;uMY@9-WJe=O0{n{*EI5rHd1MPYArz*b>}5i{%%?y^lrbcRpudm+5u- zqv5{nhNnAa3|6tc%adi;b)8{}DWig;kyGfeMb*7VT<>id%C@z$SBvI$Dy-#v|Hpq_ z`Me)p9uv+uMF$sr%Ta5dn>($4m8Qfy<^vBax^LG@dI+d++&4IzvPx`LRP0u*^DNg7 Zu#4t8N38!@eG2GO22WQ%mvv4FO#rGgY4rdA literal 0 HcmV?d00001 From a6c35a4a071b20a09c7d45026349161b7e5f9b1f Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Mon, 30 May 2016 10:00:18 -0500 Subject: [PATCH 05/29] Giving up for now. I don't think there's a way to do this with Tinkers' private methods --- .../tinkers_addons/TinkersAddons.java | 20 ------------------- .../tinkers_addons/items/ItemModMaterial.java | 5 +++-- .../tinkers_addons/util/ClientProxy.java | 2 ++ .../tinkers_addons/{lib => util}/Log.java | 4 +++- 4 files changed, 8 insertions(+), 23 deletions(-) rename src/main/java/com/oitsjustjose/tinkers_addons/{lib => util}/Log.java (81%) diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java b/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java index 11cd481..bd25fb5 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java @@ -8,8 +8,6 @@ import com.oitsjustjose.tinkers_addons.modifiers.ModAutoRepair; import com.oitsjustjose.tinkers_addons.util.ClientProxy; import com.oitsjustjose.tinkers_addons.util.CommonProxy; -import net.minecraft.util.ResourceLocation; -import net.minecraftforge.client.model.ModelLoaderRegistry; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; @@ -18,8 +16,6 @@ import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; -import slimeknights.tconstruct.library.client.model.ModifierModelLoader; -import slimeknights.tconstruct.library.modifiers.IModifier; @Mod(modid = Lib.MODID, name = Lib.NAME, version = Lib.VERSION, guiFactory = Lib.GUI_FACTORY, acceptedMinecraftVersions = "1.9", dependencies = "required-after:tconstruct@[1.9-2.3.1,);" + "required-after:mantle@[1.9-0.10.1,)") public class TinkersAddons @@ -32,21 +28,12 @@ public class TinkersAddons public static Config modConfig; public static LibItems modItems; public static LibModifiers modModifiers; - public static ModifierModelLoader modifierLoader; @EventHandler public void preInit(FMLPreInitializationEvent event) { CommonProxy.preInit(); - modifierLoader = new ModifierModelLoader() - { - @Override - public boolean accepts(ResourceLocation modelLocation) - { - return (modelLocation.getResourceDomain().equalsIgnoreCase(Lib.MODID) && modelLocation.getResourcePath().contains("modifiers")); - } - }; modConfig = new Config(event.getSuggestedConfigurationFile()); modItems = new LibItems(); modModifiers = new LibModifiers(); @@ -66,12 +53,5 @@ public class TinkersAddons { if (event.getSide().isClient()) ClientProxy.init(); - ModelLoaderRegistry.registerLoader(modifierLoader); - registerModifierModel(modModifiers.auto_repair, new ResourceLocation(Lib.MODID.toLowerCase(), "models/item/modifiers/auto-repair")); - } - - public void registerModifierModel(IModifier modifier, ResourceLocation location) - { - modifierLoader.registerModifierFile(modifier.getIdentifier(), location); } } \ No newline at end of file diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java b/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java index 7acc16d..1ac818c 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java @@ -9,6 +9,7 @@ import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; +import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; @@ -23,7 +24,7 @@ public class ItemModMaterial extends Item { this.setHasSubtypes(true); this.setCreativeTab(TinkerRegistry.tabGeneral); - GameRegistry.registerItem(this, "modifier_item"); + GameRegistry.register(this, new ResourceLocation(Lib.MODID.toLowerCase(), "modifier_item")); registerRecipes(); Lib.MOD_ITEMS.add(this); } @@ -42,7 +43,7 @@ public class ItemModMaterial extends Item @Override @SideOnly(Side.CLIENT) - public void getSubItems(Item item, CreativeTabs tab, List list) + public void getSubItems(Item item, CreativeTabs tab, List list) { for (int i = 0; i < materials.length; i++) list.add(new ItemStack(item, 1, i)); diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/util/ClientProxy.java b/src/main/java/com/oitsjustjose/tinkers_addons/util/ClientProxy.java index 8a4595a..ecbcf44 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/util/ClientProxy.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/util/ClientProxy.java @@ -31,11 +31,13 @@ import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import slimeknights.tconstruct.library.TinkerRegistry; +import slimeknights.tconstruct.library.client.model.ModifierModelLoader; public class ClientProxy extends CommonProxy { static CreativeTabs tab = TinkerRegistry.tabParts; static String MODID = Lib.MODID; + static ModifierModelLoader modifierLoader; /** * Grabs all the items from my stored arraylist and registers them Super convenient, I'd suggest doing similar things, and adding a similar block variant if you need it (I didn't) diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/lib/Log.java b/src/main/java/com/oitsjustjose/tinkers_addons/util/Log.java similarity index 81% rename from src/main/java/com/oitsjustjose/tinkers_addons/lib/Log.java rename to src/main/java/com/oitsjustjose/tinkers_addons/util/Log.java index edb6e3e..43e018e 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/lib/Log.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/util/Log.java @@ -1,8 +1,10 @@ -package com.oitsjustjose.tinkers_addons.lib; +package com.oitsjustjose.tinkers_addons.util; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import com.oitsjustjose.tinkers_addons.lib.Lib; + public class Log { private static Logger LOGGER = LogManager.getLogger(Lib.MODID); From b145d080e54fea8186487e84fc87928d23561623 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Tue, 31 May 2016 17:06:14 -0500 Subject: [PATCH 06/29] Create GNU LESSER GENERAL PUBLIC LICENSE.md --- GNU LESSER GENERAL PUBLIC LICENSE.md | 165 +++++++++++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 GNU LESSER GENERAL PUBLIC LICENSE.md diff --git a/GNU LESSER GENERAL PUBLIC LICENSE.md b/GNU LESSER GENERAL PUBLIC LICENSE.md new file mode 100644 index 0000000..4fdfe74 --- /dev/null +++ b/GNU LESSER GENERAL PUBLIC LICENSE.md @@ -0,0 +1,165 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. From 639be847ff506f52de29a80f7d996d2c8ed20f79 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Tue, 31 May 2016 17:06:27 -0500 Subject: [PATCH 07/29] Create GNU GENERAL PUBLIC LICENSE.md --- GNU GENERAL PUBLIC LICENSE.md | 674 ++++++++++++++++++++++++++++++++++ 1 file changed, 674 insertions(+) create mode 100644 GNU GENERAL PUBLIC LICENSE.md diff --git a/GNU GENERAL PUBLIC LICENSE.md b/GNU GENERAL PUBLIC LICENSE.md new file mode 100644 index 0000000..278383a --- /dev/null +++ b/GNU GENERAL PUBLIC LICENSE.md @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. From 09a7b4c492ccafcbf44f6fbf7fa579899c6475de Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Wed, 1 Jun 2016 07:08:54 -0500 Subject: [PATCH 08/29] Fix #1 for 1.9 Branch --- .../oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java b/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java index 57a375f..7795ad6 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java @@ -48,7 +48,7 @@ public class ModAutoRepair extends Modifier EntityPlayer player = event.getEntityPlayer(); ArrayList tinkersTools = new ArrayList(); - int autoRepairLevel = 0; + int autoRepairLevel; for (ItemStack iterStack : player.inventory.mainInventory) if (iterStack != null && iterStack.getItem() instanceof ToolCore) tinkersTools.add(iterStack); @@ -59,6 +59,7 @@ public class ModAutoRepair extends Modifier for (ItemStack iterStack : tinkersTools) { + autoRepairLevel = 0; NBTTagCompound tag = TagUtil.getToolTag(iterStack.getTagCompound()); NBTTagList tagList = TagUtil.getModifiersTagList(iterStack); for (int i = 0; i < tagList.tagCount(); i++) @@ -75,7 +76,7 @@ public class ModAutoRepair extends Modifier long lastRepairTime = tag.getLong(Lib.TAG_AUTO_REPAIR_COOLDOWN); - if ((System.currentTimeMillis() - lastRepairTime) >= (getRepairCooldown(player)) && autoRepairLevel > 0) + if (autoRepairLevel > 0 && (System.currentTimeMillis() - lastRepairTime) >= (getRepairCooldown(player))) { ToolHelper.healTool(iterStack, autoRepairLevel, player); tag.setLong(Lib.TAG_AUTO_REPAIR_COOLDOWN, System.currentTimeMillis()); From 1bf3ebc3650dd40c92bb1d1ecd0796b06afefece Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Wed, 1 Jun 2016 07:40:47 -0500 Subject: [PATCH 09/29] 1.9.4 Port Finished --- build.gradle | 14 +++++++------- .../oitsjustjose/tinkers_addons/TinkersAddons.java | 2 +- .../tinkers_addons/items/ItemModMaterial.java | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/build.gradle b/build.gradle index be5c95c..7586109 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { } } dependencies { - classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT' + classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT' } } apply plugin: 'net.minecraftforge.gradle.forge' @@ -20,10 +20,10 @@ repositories { version = "1.0" group= "com.oitsjustjose.tinkers_addons" -archivesBaseName = "Tinkers' Addons-1.9" +archivesBaseName = "Tinkers' Addons-1.9.4" minecraft { - version = "1.9-12.16.1.1923" + version = "1.9.4-12.17.0.1937" if (file('../run').exists()){ runDir = "../run" @@ -34,13 +34,13 @@ minecraft { replaceIn "lib/Lib.java" replace "@VERSION@", project.version - mappings = "snapshot_20160312" + mappings = "snapshot_20160518" } dependencies { - deobfCompile "mezz.jei:jei_1.9:3.3.3.200" - deobfCompile "slimeknights.mantle:Mantle:1.9-0.10.1.jenkins140" - deobfCompile "slimeknights:TConstruct:1.9-2.3.1.jenkins226" + deobfCompile "mezz.jei:jei_1.9.4:3.4.2.206" + deobfCompile "slimeknights.mantle:Mantle:1.9.4-0.10.1.jenkins142" + deobfCompile "slimeknights:TConstruct:1.9.4-2.3.1.jenkins229" } task deobfJar(type: Jar) { diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java b/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java index bd25fb5..c69469d 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java @@ -17,7 +17,7 @@ import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; -@Mod(modid = Lib.MODID, name = Lib.NAME, version = Lib.VERSION, guiFactory = Lib.GUI_FACTORY, acceptedMinecraftVersions = "1.9", dependencies = "required-after:tconstruct@[1.9-2.3.1,);" + "required-after:mantle@[1.9-0.10.1,)") +@Mod(modid = Lib.MODID, name = Lib.NAME, version = Lib.VERSION, guiFactory = Lib.GUI_FACTORY, acceptedMinecraftVersions = "1.9.4", dependencies = "required-after:tconstruct@[1.9.4-2.3.1,);" + "required-after:mantle@[1.9.4-0.10.1,)") public class TinkersAddons { @Instance(Lib.MODID) diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java b/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java index 1ac818c..fc6e74d 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java @@ -51,9 +51,9 @@ public class ItemModMaterial extends Item void registerRecipes() { - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(this, 1, 0), Blocks.mossy_cobblestone, Blocks.mossy_cobblestone, Blocks.mossy_cobblestone, Blocks.mossy_cobblestone, Blocks.mossy_cobblestone, Blocks.mossy_cobblestone, Blocks.mossy_cobblestone, Blocks.mossy_cobblestone, Blocks.mossy_cobblestone)); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(this, 1, 0), Blocks.MOSSY_COBBLESTONE, Blocks.MOSSY_COBBLESTONE, Blocks.MOSSY_COBBLESTONE, Blocks.MOSSY_COBBLESTONE, Blocks.MOSSY_COBBLESTONE, Blocks.MOSSY_COBBLESTONE, Blocks.MOSSY_COBBLESTONE, Blocks.MOSSY_COBBLESTONE, Blocks.MOSSY_COBBLESTONE)); GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(this, 1, 1), "gemDiamond", "blockGold")); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(this, 1, 2), "blockDiamond", new ItemStack(Items.golden_apple, 1, 1))); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(this, 1, 3), Items.nether_star, new ItemStack(Items.skull, 1, Short.MAX_VALUE))); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(this, 1, 2), "blockDiamond", new ItemStack(Items.GOLDEN_APPLE, 1, 1))); + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(this, 1, 3), Items.NETHER_STAR, new ItemStack(Items.SKULL, 1, Short.MAX_VALUE))); } } \ No newline at end of file From 9c782f2a4fb06da157141caf8bb929ce449b3cf5 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Wed, 1 Jun 2016 07:43:08 -0500 Subject: [PATCH 10/29] Release Time --- CHANGELOG.txt | 2 ++ build.gradle | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 2c09039..c0a7054 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,5 @@ +1.0.1: +-Fixed: Auto-Repair Working on Multiple Tools Simultaneously 1.0: Initial Release: -Added: Auto-Repair Modifier diff --git a/build.gradle b/build.gradle index 7586109..6d3268e 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ repositories { } } -version = "1.0" +version = "1.0.1" group= "com.oitsjustjose.tinkers_addons" archivesBaseName = "Tinkers' Addons-1.9.4" From ff6ed4e3e18e9197ccb715a90a5b59ef6348a416 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Mon, 20 Jun 2016 23:46:34 -0500 Subject: [PATCH 11/29] Address #2 on 1.9.4 :) --- CHANGELOG.txt | 2 ++ build.gradle | 2 +- .../oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index c0a7054..0fe08af 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,5 @@ +1.0.2: +-Fixed: Auto-Repair interrupting block break / item use 1.0.1: -Fixed: Auto-Repair Working on Multiple Tools Simultaneously 1.0: diff --git a/build.gradle b/build.gradle index 6d3268e..f696a3c 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ repositories { } } -version = "1.0.1" +version = "1.0.2" group= "com.oitsjustjose.tinkers_addons" archivesBaseName = "Tinkers' Addons-1.9.4" diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java b/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java index 7795ad6..4f83927 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java @@ -76,7 +76,7 @@ public class ModAutoRepair extends Modifier long lastRepairTime = tag.getLong(Lib.TAG_AUTO_REPAIR_COOLDOWN); - if (autoRepairLevel > 0 && (System.currentTimeMillis() - lastRepairTime) >= (getRepairCooldown(player))) + if (autoRepairLevel > 0 && (System.currentTimeMillis() - lastRepairTime) >= (getRepairCooldown(player)) && !player.isSwingInProgress) { ToolHelper.healTool(iterStack, autoRepairLevel, player); tag.setLong(Lib.TAG_AUTO_REPAIR_COOLDOWN, System.currentTimeMillis()); From 393d9ff1b8554ac584cc3b4c7895a9b647a8d274 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Sat, 9 Jul 2016 16:37:25 -0500 Subject: [PATCH 12/29] New Textures --- .../models/item/extra_modifier_lvl1.json | 18 +++++++++++++++--- .../tinkersaddons/textures/items/Thumbs.db | Bin 4096 -> 0 bytes .../textures/items/extra_modifier_lvl1.png | Bin 3377 -> 3143 bytes .../textures/items/extra_modifier_lvl2.png | Bin 3161 -> 3138 bytes .../textures/items/extra_modifier_lvl3.png | Bin 2991 -> 3130 bytes .../textures/modifiers/battleaxe.png | Bin 157 -> 0 bytes .../textures/modifiers/battlesign.png | Bin 189 -> 0 bytes .../textures/modifiers/broadsword.png | Bin 128 -> 0 bytes .../textures/modifiers/cleaver.png | Bin 232 -> 0 bytes .../textures/modifiers/excavator.png | Bin 222 -> 0 bytes .../textures/modifiers/frypan.png | Bin 190 -> 0 bytes .../textures/modifiers/hammer.png | Bin 131 -> 0 bytes .../textures/modifiers/hatchet.png | Bin 133 -> 0 bytes .../textures/modifiers/longsword.png | Bin 123 -> 0 bytes .../textures/modifiers/lumberaxe.png | Bin 168 -> 0 bytes .../textures/modifiers/mattock.png | Bin 149 -> 0 bytes .../textures/modifiers/pickaxe.png | Bin 155 -> 0 bytes .../textures/modifiers/rapier.png | Bin 109 -> 0 bytes .../textures/modifiers/shovel.png | Bin 123 -> 0 bytes .../textures/modifiers/shuriken.png | Bin 286 -> 0 bytes 20 files changed, 15 insertions(+), 3 deletions(-) delete mode 100644 src/main/resources/assets/tinkersaddons/textures/items/Thumbs.db delete mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/battleaxe.png delete mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/battlesign.png delete mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/broadsword.png delete mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/cleaver.png delete mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/excavator.png delete mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/frypan.png delete mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/hammer.png delete mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/hatchet.png delete mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/longsword.png delete mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/lumberaxe.png delete mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/mattock.png delete mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/pickaxe.png delete mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/rapier.png delete mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/shovel.png delete mode 100644 src/main/resources/assets/tinkersaddons/textures/modifiers/shuriken.png diff --git a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl1.json b/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl1.json index 68016d7..6103676 100644 --- a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl1.json +++ b/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl1.json @@ -1,6 +1,18 @@ { - "parent": "block/cube_all", + "parent": "builtin/generated", "textures": { - "all": "tinkersaddons:items/extra_modifier_lvl1" + "layer0": "tinkersaddons:items/extra_modifier_lvl1" + }, + "display": { + "thirdperson": { + "rotation": [ -90, 0, 0 ], + "translation": [ 0, 1, -3 ], + "scale": [ 0.55, 0.55, 0.55 ] + }, + "firstperson": { + "rotation": [ 0, -135, 25 ], + "translation": [ 0, 4, 2 ], + "scale": [ 1.7, 1.7, 1.7 ] + } } -} \ No newline at end of file +} diff --git a/src/main/resources/assets/tinkersaddons/textures/items/Thumbs.db b/src/main/resources/assets/tinkersaddons/textures/items/Thumbs.db deleted file mode 100644 index 46739d570b1753793db206f1a3e805a5f8b2d098..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4096 zcmca`Uhu)fjZzO8(10BSGsD0CoD6J8;*3Bx2!nwD0|OI~0pkDr|NlQkkbwcn90fxt z1pWfu3W`4vW&uVbD-eU?9K;_5!#@Oq81jLzgh7G9l_3vE7co@AvNBP$7%;`aLJ3|r z;L!OX+H%+D9Typyf$|5S1&a}bDT5h9JVO$L0YeId5rZW|8bc}&rU6CFfY^e;1jsYT zVIl*A76TI_$bL{+1fp>&M3YbjIRXe^_JeFSXE0YvBRAVU~g*w}bDc*J;k#6ILOnVE@&nU$3VnA#a@f$|J2f~-P{ zhK_8)fr;!&g(60c6BlwQJ8e8D8g%i4ig8j=6DOCLxP+vXs+zinrk07RnYo3fm9vYh zo4bdnS8zyZSa?KaRB}pcT6#uiR&hybS$RceRdY*gTYE=m*QCi)rcRqaW9F9X@jO*zpr5PhGlv=!0ld(M2vX6_bamA32DX%|C|!dnNj_wl5#eKco2vYr#O9{PX>Nm%NCbM#g^z5tIK6 zY(LEXH%)h*cIw`%U%y`6tE@Z!?7U6xXLlRH2Ib}=<(e}$L-pRvq&Hrv&*bmg_Rr$O z->K`SFF*NEw(8SCp$E6me(QL!dt%6Y&0-aA1*ap1zFm)bT5|Q?-!c#WxOM%}T)k_T z4_}}4z4__ow`WheFF#q%Q~dM0#yQEriK-EExn&Pt<=Sv+(xgh&w)r2qU4OJc+|OH) zeYk4w^0r)4TaEbm`c!X$oq}HTQZ9RLoSMWHdoukVEXw q?f$CO+cxIjJ6*k6yLz2{=Fak{lD%)%T+Xe>n;&uI(@}BkApiiI*48Be diff --git a/src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl1.png b/src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl1.png index 1a459a3e4169b5702f5bbe3588c5ec7355ba5252..92c3fd5a9f0a325a98f6a4ab0594a911fc471611 100644 GIT binary patch delta 403 zcmV;E0c`%U8pjy0zY2c=a!Eu%RCwB?lEF#>Q5c2K>m&t1w30#^f)Y2js7(+>)Fu#J z7?Bih-1I~ZLJLWfoN?}*xpS}MsM!NVZ*bb!P&ti@emJ|!cmH$F50dzg7Cva2DVt_W z0Dl8M-XG>f5>*-VT8-J52>`UPND{VfX9H?7=CNZ~5kuBw%({O+V$)0+1$#8I$c2E4 z81ks6dFBpS5kp@3Bi@D+-bZi5Y%&1=aL`pe=qjE#hE*A}CSx|#_(vw0007v1k}N$* z9=?P;cL%)mN4(Roya^{<7@`*2jDj-D&jI(I1D-l2*`n@`vH_u2;J`0Y3yT17t;Vd$ zm=|8es*JNOgkFDvQBbB97H!*3>|6z7UU*STuDShRCwBSlfh0CK>&vL0s019IC>~{6=7*XgFrzlflxr8 z9t_IGkPs6tB%HW=-XFd;2OA0c{cbUxp z%|DYFE%T~{%*z(OhFkct>fzV>RMl1fD^D1^Y825Sec7uJ3q(=LCY@2uf6bfndfEc%f}KO*5p6Nz4w3L)iKJ#5;AdKe&(GYRC(s=yw? zISb&F2N9+ZZ9myf#R*~C;|;slL^T3A^Snj5A64i<#M;rasXIvd_)_@!>CXn5SC-FP zl)7xK zDl@nYy`gsU#p?F14?EL=lQuYb<3!X{! z*VoYUncL*IyU3@z$fr8VC4A&eAII?y^3gVqq6U9WA2Qkwkv90$hTLeSvVH^mozA}j Y08nb>x`hH4BLDyZ07*qoM6N<$g8O1G(*OVf diff --git a/src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl2.png b/src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl2.png index 9fd229a5661694697fd508917b801b8d20cf6f2f..d4f0ffc5adf77eabb6124db6bc93ce5b7968adbd 100644 GIT binary patch delta 397 zcmV;80doG?7{VB^zzTnDNklduM;au8{0Gk^?_u65KKJ z+B^ujcNV;wCT!=Bz9aeKW_%0Qb^ufZ06?3>)Fv^nt&|-h+0CtNdU6l|0QIk!C!Z0U zKQV8ulzm6?)zA3sWjxr#&}}gZ3^pb)&%YwxOp~IDo+GOPbJ1k%-!gP{0>EQ#!LZkM zDlN=KlSyDObaj84rdil|5E%_St!`rE-4vq=tTR|2b?iGko4ENLx_Xg0up01wjsbvs zR0hm!jgi;p%+_dq)FHl)F?TMCgxmLOIot(=uAZ0N;CNKScvQp8*0#r44M=AlhVCWD rqZ;0aNARbo+xt+mPy+l%zXJfYb!ijtOzo8b0000M=_~1LY-{G9^1c1PQ z;xif3WLX|r@Ml1lW&RELjgJ79Wqk=v2s9y>iN(;Og75P`0+N5KAgKz;2Z!L|0>Q-v zpV4AGne*!Mh{RkJx zbUVyloiclRz?6S4AOx$mJJQV>nQrH2;5f^auKNH{LGtN_RHMpP+Z(yU^6fS8^E{!# zp8pjFk0|UC=~kW1wl{plr8|dtyM%Dczf?h0h@9mxoig!@Jc&w?M5RdlvVduq`(;$e z00U%lf16M~%S6;*B5Dvi++i}eJ3M_XU|Cimtm}jggD)I?-N5fFzYhTG%0epxuNDgc O00002M+Txd^2Yb0ia8CazOV3=zf5fEEfZ|8|9w> zkZN++*%EfPgeDxcWSKmxjV?Z-fyF)9QE;x>BEz_Yon1W~3^UY(uN}pPVhzLd61MrE2 zKs3N75;V0;{q7Z6Qz>6~sOJFBsv{5$jP)v%PKlIGiTFgK?M68d5P1)9%o>zViC$ky jq<>U$TW49gM1KPS7gB5{^q%&800000NkvXXu0mjfCbX`! delta 249 zcmV@=h4 zhnJ8|fM6!UOtOFjyoC_KPAdDWLrNisE-|&Tmc9u%lFtDERhlJZI&^(t00000NkvXXu0mjf-mP&F diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/battleaxe.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/battleaxe.png deleted file mode 100644 index b20e3d124cf6b0f4e366eccf7ceca2ee249d7f7d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 157 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`DV{ElAr-fh6C_wG8u#q}Q!k(v zy*PLJ+xoXDZ~spdo%Y}J63-=$ODu;J%zF5ZdNgJywkhmxSdf;})@ULq%Xea1v%!h5 zNz4K_|EFZO{hX?D)Ti zwzr%9uAjTccNgQbsmuO5&f+cN{nvaWW#@rShd$Y#QP{MX!Kg(=f6DY}|IF8$vft*p z#9`E+BYxnIUywqRi9$9@qQLAI4lJ5YnGKn3OBomOGW?W$!X=<~^1i}Rh5d(^de&q# o?`%*yo1z;1q+yZ9V*zf4-QP;q=)8H)3Um*Hr>mdKI;Vst0H>@<8vpP){z>_n0_HG=?d63_TK|{4x5<=4UeJDjKtTU;@s;-J&_cgUs zOP&SeCumJYJOMx~zP$-FV-sTvW)<*YlwSnf@{8b9!?NJuY<|j&&A}WhDjSEEKXvxmG+8_G>0000}1e~7VYWo+YQ6c-ow zaZEBfWb*(2fBDM-Nx5v9`wAbkl{t4@t@-f4(Ln8_Kq0F>+tW?EdG-XhODyx9&1Tk+ zF}=aWeO(p*wKFNk(muj#Bk#rjv*$T%(j4P7>9gakt&_JNY-@;NDiVx4dtzJDhSXNo z9^VM#O^VxMw`t7kWHX3PJf{|E?4f+3Y?8_2PsXuxc+ayvxz#tRKjEH2m@*GDL#ET@ Vg?1{jvw;p~@O1TaS?83{1OQuMQyKsO diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/frypan.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/frypan.png deleted file mode 100644 index bc3758e216313fb0fbcc46fb6861ededca5f45a6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 190 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`t)4E9Ar-gYPIBaGP!Mt1+sU5s z*zHK`YradnYIS!xOgEcn@L-X~=F~$9HP6o0cqRY){OiWWXL=TThUV=I3lgP@Ze9M& z(3n@Ybf$DH8^?q{ueduh>~hyL_Bd=w5IgZ|*8FY8M>-U97T#gt+SzJ&F({vzr^6)s p*QU}N-~WehxK{UfRn@$wj0w_BU(>kuO#nKG!PC{xWt~$(695ejPA>oe diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/hammer.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/hammer.png deleted file mode 100644 index 9d330cb43aa042a66a73db8adf20a63c6b297dcb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 131 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`UY;(FAr-fh6C_v<%bwVM`u}ym zYybQ=sYz^myXkL!Wa7{HIkO!lj;Ngs6JWc^b;u>t&79*|&L)#)6QQ>`IdyC|{o>OX evnyC;vND)Gv@I50$ln4qmBG{1&t;ucLK6UyLM)U3 diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/hatchet.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/hatchet.png deleted file mode 100644 index 01f371733318036bcec61e746754851daa37ce6a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 133 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`KAtX)Ar-fh6C_x_uuc=5_J8Z- zt^ZH&KK)-k+PFjQB*TQH8EXxE0+@}|Zo17-+!nj-Nw%8yh6F#hOqQE|VIGs;rhmDh hrae(W)O8C3!}AFaVt->4TY%;=c)I$ztaD0e0sy7mEo=Y) diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/longsword.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/longsword.png deleted file mode 100644 index 3841e214c706702109e69fbe860275a3400a98b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 123 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`PM$7~Ar-fh6C_v{H_URl7yHki zWAfTa>qzOIlV%6Do&L5zwN>?LTLTY+q|2mohpxm~3F{PYG0ga%DCNQD)8!=3!La*+ W&i2iGITb+D7(8A5T-G@yGywpZa40_j diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/lumberaxe.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/lumberaxe.png deleted file mode 100644 index 5f75a267aaeb25ce9afc3684089c5b4d8107ee8e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 168 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%``JOJ0Ar-fhKg3wHGPa#$O37Yw zg`u+i=l_)GtjNTl@z#;Q?Qgc-D7zVy#^7OmLR3YXVe`zCvkFH~NOfM~3FbJYF#BYY z(V4VG%se;41lVqRZ9AJ{DSb0-(j&=O}C_M;!TE>+nr`CH}@Oxp2(Tt=pxzlF1@6=;8s_#pvVIrpCl&k x^pZ)kp$3-|7WxD_DMlOL)a1Fz{p1BJgM~+q`&2cnRX}?fJYD@<);T3K0RRD0GkX94 diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/pickaxe.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/pickaxe.png deleted file mode 100644 index f6d96315484451793f541b7a3fd7dbdf2317a2b5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 155 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`NuDl_Ar-fh6C@%X?#2GI=a{_q z=C;${_NTV0R<<>mWU6O3^D5qAm@(N=BF(siP10qOq5-c#&vnrgToZHM___D!9S}{} z!E^M2&x!dFPZO32b7iKyf4F7tqKai2ODC?KDa62#&XLjI5bpgEXd8p4tDnm{r-UW| DttU1K diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/rapier.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/rapier.png deleted file mode 100644 index 9c8ddae6f280c27fe91f8892fc63b5b2420985c0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 109 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`CY~;iAr-fh6C_v{Cp=-OEdTlc z*2!D{b9d+bpS)JmMR{}QHJ-yKlBS7HJ0jh5+F?>m(|H4iSqqhUbyl!`0P1J(boFyt I=akR{00QzQ@c;k- diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/shovel.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/shovel.png deleted file mode 100644 index 9e99949df612834ed992832bdc6817d0e966895e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 123 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`PM$7~Ar-fh6C_xhWlroq{l7i2 zi|3->HMM&JDbbEMHXWK&BHmzfqwMCS^^!{_s-!ReEuLcSIZN}Kapc0@^QtAjISlhZ Vn!VmzmJ2eJ!PC{xWt~$(695aOD_;Nr diff --git a/src/main/resources/assets/tinkersaddons/textures/modifiers/shuriken.png b/src/main/resources/assets/tinkersaddons/textures/modifiers/shuriken.png deleted file mode 100644 index ec267b9db792e19f5d64dba677e8a3b27d095797..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 286 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85p>QL70(Y)*K0-AbW|YuPggKE*T*?vF;VOKsx7nx;TbdoPIlT zFITgHNUOc-;uMY@9-WJe=O0{n{*EI5rHd1MPYArz*b>}5i{%%?y^lrbcRpudm+5u- zqv5{nhNnAa3|6tc%adi;b)8{}DWig;kyGfeMb*7VT<>id%C@z$SBvI$Dy-#v|Hpq_ z`Me)p9uv+uMF$sr%Ta5dn>($4m8Qfy<^vBax^LG@dI+d++&4IzvPx`LRP0u*^DNg7 Zu#4t8N38!@eG2GO22WQ%mvv4FO#rGgY4rdA From a4d401b1e1e5196fc052b57db3549364a1bab1fc Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Sat, 9 Jul 2016 22:18:35 -0500 Subject: [PATCH 13/29] Nothing actually changing, but some things are --- .../tinkers_addons/TinkersAddons.java | 5 +- .../tinkers_addons/items/ItemModMaterial.java | 17 +--- .../tinkers_addons/lib/Config.java | 8 +- .../tinkers_addons/lib/LibModifiers.java | 2 +- .../util/ModRecipeAmelioration.java | 90 ++++++++++++++++++ .../tinkers_addons/util/ModRecipes.java | 52 ++++++++++ .../assets/tinkersaddons/lang/en_US.lang | 6 +- .../models/item/amelioration_kit.json | 6 ++ .../models/item/extra_modifier_lvl1.json | 14 +-- .../models/item/extra_modifier_lvl2.json | 14 +-- .../models/item/extra_modifier_lvl3.json | 14 +-- .../models/item/modifiers/auto-repair.json | 19 ---- .../tinkersaddons/models/item/moss_ball.json | 18 ---- .../textures/items/amelioration_kit.png | Bin 0 -> 3158 bytes .../textures/items/moss_ball.png | Bin 207 -> 0 bytes 15 files changed, 166 insertions(+), 99 deletions(-) create mode 100644 src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipeAmelioration.java create mode 100644 src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipes.java create mode 100644 src/main/resources/assets/tinkersaddons/models/item/amelioration_kit.json delete mode 100644 src/main/resources/assets/tinkersaddons/models/item/modifiers/auto-repair.json delete mode 100644 src/main/resources/assets/tinkersaddons/models/item/moss_ball.json create mode 100644 src/main/resources/assets/tinkersaddons/textures/items/amelioration_kit.png delete mode 100644 src/main/resources/assets/tinkersaddons/textures/items/moss_ball.png diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java b/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java index c69469d..65ae4b3 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java @@ -7,6 +7,7 @@ import com.oitsjustjose.tinkers_addons.lib.LibModifiers; import com.oitsjustjose.tinkers_addons.modifiers.ModAutoRepair; import com.oitsjustjose.tinkers_addons.util.ClientProxy; import com.oitsjustjose.tinkers_addons.util.CommonProxy; +import com.oitsjustjose.tinkers_addons.util.ModRecipes; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.Mod; @@ -17,7 +18,7 @@ import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; -@Mod(modid = Lib.MODID, name = Lib.NAME, version = Lib.VERSION, guiFactory = Lib.GUI_FACTORY, acceptedMinecraftVersions = "1.9.4", dependencies = "required-after:tconstruct@[1.9.4-2.3.1,);" + "required-after:mantle@[1.9.4-0.10.1,)") +@Mod(modid = Lib.MODID, name = Lib.NAME, version = Lib.VERSION, guiFactory = Lib.GUI_FACTORY, dependencies = "required-after:tconstruct@[1.10-2.3.3,);" + "required-after:mantle@[1.10-0.10.3,)") public class TinkersAddons { @Instance(Lib.MODID) @@ -28,6 +29,7 @@ public class TinkersAddons public static Config modConfig; public static LibItems modItems; public static LibModifiers modModifiers; + public ModRecipes recipes; @EventHandler public void preInit(FMLPreInitializationEvent event) @@ -53,5 +55,6 @@ public class TinkersAddons { if (event.getSide().isClient()) ClientProxy.init(); + recipes = new ModRecipes(); } } \ No newline at end of file diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java b/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java index fc6e74d..2d22d63 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java @@ -2,37 +2,34 @@ package com.oitsjustjose.tinkers_addons.items; import java.util.List; +import com.oitsjustjose.tinkers_addons.TinkersAddons; import com.oitsjustjose.tinkers_addons.lib.Lib; import net.minecraft.creativetab.CreativeTabs; -import net.minecraft.init.Blocks; -import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; -import net.minecraftforge.oredict.ShapelessOreRecipe; import slimeknights.tconstruct.library.TinkerRegistry; public class ItemModMaterial extends Item { - String[] materials = new String[] { "MOSS_BALL", "EXTRA_MODIFIER_LVL1", "EXTRA_MODIFIER_LVL2", "EXTRA_MODIFIER_LVL3" }; + String[] materials = new String[] { "AMELIORATION_KIT", "EXTRA_MODIFIER_LVL1", "EXTRA_MODIFIER_LVL2", "EXTRA_MODIFIER_LVL3" }; public ItemModMaterial() { this.setHasSubtypes(true); this.setCreativeTab(TinkerRegistry.tabGeneral); GameRegistry.register(this, new ResourceLocation(Lib.MODID.toLowerCase(), "modifier_item")); - registerRecipes(); Lib.MOD_ITEMS.add(this); } @Override public boolean hasEffect(ItemStack itemstack) { - return itemstack.getItemDamage() >= 2 ? true : false; + return (itemstack.getItemDamage() == 0 && TinkersAddons.modConfig.autoRepairRecipeType == 2) ? true : itemstack.getItemDamage() >= 2 ? true : false; } @Override @@ -48,12 +45,4 @@ public class ItemModMaterial extends Item for (int i = 0; i < materials.length; i++) list.add(new ItemStack(item, 1, i)); } - - void registerRecipes() - { - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(this, 1, 0), Blocks.MOSSY_COBBLESTONE, Blocks.MOSSY_COBBLESTONE, Blocks.MOSSY_COBBLESTONE, Blocks.MOSSY_COBBLESTONE, Blocks.MOSSY_COBBLESTONE, Blocks.MOSSY_COBBLESTONE, Blocks.MOSSY_COBBLESTONE, Blocks.MOSSY_COBBLESTONE, Blocks.MOSSY_COBBLESTONE)); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(this, 1, 1), "gemDiamond", "blockGold")); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(this, 1, 2), "blockDiamond", new ItemStack(Items.GOLDEN_APPLE, 1, 1))); - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(this, 1, 3), Items.NETHER_STAR, new ItemStack(Items.SKULL, 1, Short.MAX_VALUE))); - } } \ No newline at end of file diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/lib/Config.java b/src/main/java/com/oitsjustjose/tinkers_addons/lib/Config.java index c2cd58a..369eb91 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/lib/Config.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/lib/Config.java @@ -11,7 +11,7 @@ public class Config { public Configuration config; - public boolean enableAutoRepair; + public int autoRepairRecipeType; public boolean enableExtraModifierLvl1; public boolean enableExtraModifierLvl2; public boolean enableExtraModifierLvl3; @@ -26,9 +26,9 @@ public class Config { Property property; - property = config.get(Configuration.CATEGORY_GENERAL, "Enable Auto-Repair", true).setRequiresMcRestart(true); - property.setComment("Allows you to enable or disable the auto-repair trait"); - enableAutoRepair = property.getBoolean(); + property = config.get(Configuration.CATEGORY_GENERAL, "Auto-Repair Recipe Type", 2).setRequiresMcRestart(true); + property.setComment("Allows you to modify the auto-repair recipe. 0 disables the feature, 1 enables the easier recipe, 2 enables a harder one."); + autoRepairRecipeType = property.getInt(); property = config.get(Configuration.CATEGORY_GENERAL, "Enable 1st bonus modifier mod for tools", true).setRequiresMcRestart(true); property.setComment("Re-adds the diamond + gold block recipe to increase modifiers on a tool if enabled"); diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibModifiers.java b/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibModifiers.java index 2eccdbb..136e7c6 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibModifiers.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibModifiers.java @@ -15,7 +15,7 @@ public class LibModifiers public LibModifiers() { - if (TinkersAddons.modConfig.enableAutoRepair) + if (TinkersAddons.modConfig.autoRepairRecipeType > 0) { auto_repair = new ModAutoRepair(); } diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipeAmelioration.java b/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipeAmelioration.java new file mode 100644 index 0000000..e629b07 --- /dev/null +++ b/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipeAmelioration.java @@ -0,0 +1,90 @@ +package com.oitsjustjose.tinkers_addons.util; + +import com.oitsjustjose.tinkers_addons.TinkersAddons; + +import net.minecraft.enchantment.Enchantment; +import net.minecraft.enchantment.EnchantmentHelper; +import net.minecraft.init.Blocks; +import net.minecraft.inventory.InventoryCrafting; +import net.minecraft.item.Item; +import net.minecraft.item.ItemEnchantedBook; +import net.minecraft.item.ItemStack; +import net.minecraft.item.crafting.RecipesMapCloning; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.world.World; + +public class ModRecipeAmelioration extends RecipesMapCloning +{ + @Override + public boolean matches(InventoryCrafting invCraft, World world) + { + boolean mending = false; + int numMoss = 0; + + for (int x = 0; x < 3; x++) + { + for (int y = 0; y < 3; y++) + { + ItemStack temp = invCraft.getStackInRowAndColumn(x, y); + if (temp == null) + { + return false; + } + + // Checks for center item slot + if (x == 1 && y == 1) + { + if (temp.getItem() instanceof ItemEnchantedBook) + { + if (temp.getTagCompound() != null) + { + NBTTagCompound comp = temp.getTagCompound(); + mending = comp.getTag("StoredEnchantments").toString().contains("id:70s"); + + if (!world.isRemote) + System.out.println(comp.getTag("StoredEnchantments").toString()); + + } + } + // Checks if the center item slot has mending on it + if (EnchantmentHelper.getEnchantmentLevel(Enchantment.getEnchantmentByID(70), temp) > 0) + mending = true; + } + // Else not the center slot it drops out if the block isn't mossy cobble + else if ((temp.getItem() == Item.getItemFromBlock(Blocks.MOSSY_COBBLESTONE))) + { + ++numMoss; + } + } + + } + return mending && numMoss == 8; + } + + // DONE + @Override + public ItemStack getCraftingResult(InventoryCrafting invCraft) + { + return new ItemStack(TinkersAddons.modItems.materials, 1, 0); + } + + // DONE + @Override + public int getRecipeSize() + { + return 10; + } + + // DONE + @Override + public ItemStack getRecipeOutput() + { + return null; + } + + @Override + public ItemStack[] getRemainingItems(InventoryCrafting invCraft) + { + return new ItemStack[] { null, null, null, null, null, null, null, null, null }; + } +} diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipes.java b/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipes.java new file mode 100644 index 0000000..32e04b2 --- /dev/null +++ b/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipes.java @@ -0,0 +1,52 @@ +package com.oitsjustjose.tinkers_addons.util; + +import com.oitsjustjose.tinkers_addons.TinkersAddons; +import com.oitsjustjose.tinkers_addons.lib.Lib; + +import net.minecraft.init.Blocks; +import net.minecraft.init.Items; +import net.minecraft.item.ItemStack; +import net.minecraft.item.crafting.CraftingManager; +import net.minecraftforge.fml.common.registry.GameRegistry; +import net.minecraftforge.oredict.RecipeSorter; +import net.minecraftforge.oredict.RecipeSorter.Category; +import net.minecraftforge.oredict.ShapelessOreRecipe; + +public class ModRecipes +{ + public ModRecipes() + { + registerAutoRepairRecipe(); + registerBonusModRecipes(); + } + + public void registerAutoRepairRecipe() + { + if (TinkersAddons.modConfig.autoRepairRecipeType == 1) + { + GameRegistry.addRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 0), new Object[] { "MMM", "MEM", "MMM", 'M', Blocks.MOSSY_COBBLESTONE, 'E', Items.BOOK }); + } + else if (TinkersAddons.modConfig.autoRepairRecipeType == 2) + { + CraftingManager.getInstance().getRecipeList().add(new ModRecipeAmelioration()); + RecipeSorter.register(Lib.MODID + ":Amelioration", ModRecipeAmelioration.class, Category.SHAPED, ""); + } + } + + public void registerBonusModRecipes() + { + if (TinkersAddons.modConfig.enableExtraModifierLvl1) + { + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 1), "gemDiamond", "blockGold")); + } + if (TinkersAddons.modConfig.enableExtraModifierLvl2) + { + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 2), "blockDiamond", new ItemStack(Items.GOLDEN_APPLE, 1, 1))); + } + if (TinkersAddons.modConfig.enableExtraModifierLvl3) + { + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 3), Items.NETHER_STAR, new ItemStack(Items.SKULL, 1, Short.MAX_VALUE))); + } + + } +} \ No newline at end of file diff --git a/src/main/resources/assets/tinkersaddons/lang/en_US.lang b/src/main/resources/assets/tinkersaddons/lang/en_US.lang index af529ff..2987692 100644 --- a/src/main/resources/assets/tinkersaddons/lang/en_US.lang +++ b/src/main/resources/assets/tinkersaddons/lang/en_US.lang @@ -1,12 +1,12 @@ #Items -item.TinkersAddons.MOSS_BALL.name=Moss Ball +item.TinkersAddons.AMELIORATION_KIT.name=Amelioration Kit item.TinkersAddons.EXTRA_MODIFIER_LVL1.name=Bonus Tool Modifier item.TinkersAddons.EXTRA_MODIFIER_LVL2.name=Bonus Tool Modifier item.TinkersAddons.EXTRA_MODIFIER_LVL3.name=Bonus Tool Modifier #Modifiers -modifier.auto-repair.name=Auto-Repair +modifier.auto-repair.name=Amelioration modifier.bonus-modifier_1.name=Diamond Bonus Modifier modifier.bonus-modifier_2.name=Notch Apple Bonus Modifier modifier.bonus-modifier_3.name=Nether Star Bonus Modifier -modifier.auto-repair.desc=§oFree Repair Like the Old Days §r\nYou didn't realize you missed this, did you? \ No newline at end of file +modifier.auto-repair.desc=§oAuto-Repair Like the Old Days §r\nYou didn't realize you missed this, did you? \ No newline at end of file diff --git a/src/main/resources/assets/tinkersaddons/models/item/amelioration_kit.json b/src/main/resources/assets/tinkersaddons/models/item/amelioration_kit.json new file mode 100644 index 0000000..c5f2420 --- /dev/null +++ b/src/main/resources/assets/tinkersaddons/models/item/amelioration_kit.json @@ -0,0 +1,6 @@ +{ + "parent": "item/handheld", + "textures": { + "layer0": "tinkersaddons:items/amelioration_kit" + } +} diff --git a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl1.json b/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl1.json index 6103676..1c35dcf 100644 --- a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl1.json +++ b/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl1.json @@ -1,18 +1,6 @@ { - "parent": "builtin/generated", + "parent": "item/handheld", "textures": { "layer0": "tinkersaddons:items/extra_modifier_lvl1" - }, - "display": { - "thirdperson": { - "rotation": [ -90, 0, 0 ], - "translation": [ 0, 1, -3 ], - "scale": [ 0.55, 0.55, 0.55 ] - }, - "firstperson": { - "rotation": [ 0, -135, 25 ], - "translation": [ 0, 4, 2 ], - "scale": [ 1.7, 1.7, 1.7 ] - } } } diff --git a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl2.json b/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl2.json index d6b0ab5..44acef9 100644 --- a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl2.json +++ b/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl2.json @@ -1,18 +1,6 @@ { - "parent": "builtin/generated", + "parent": "item/handheld", "textures": { "layer0": "tinkersaddons:items/extra_modifier_lvl2" - }, - "display": { - "thirdperson": { - "rotation": [ -90, 0, 0 ], - "translation": [ 0, 1, -3 ], - "scale": [ 0.55, 0.55, 0.55 ] - }, - "firstperson": { - "rotation": [ 0, -135, 25 ], - "translation": [ 0, 4, 2 ], - "scale": [ 1.7, 1.7, 1.7 ] - } } } diff --git a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl3.json b/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl3.json index 8c265f4..4ffef58 100644 --- a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl3.json +++ b/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl3.json @@ -1,18 +1,6 @@ { - "parent": "builtin/generated", + "parent": "item/handheld", "textures": { "layer0": "tinkersaddons:items/extra_modifier_lvl3" - }, - "display": { - "thirdperson": { - "rotation": [ -90, 0, 0 ], - "translation": [ 0, 1, -3 ], - "scale": [ 0.55, 0.55, 0.55 ] - }, - "firstperson": { - "rotation": [ 0, -135, 25 ], - "translation": [ 0, 4, 2 ], - "scale": [ 1.7, 1.7, 1.7 ] - } } } diff --git a/src/main/resources/assets/tinkersaddons/models/item/modifiers/auto-repair.json b/src/main/resources/assets/tinkersaddons/models/item/modifiers/auto-repair.json deleted file mode 100644 index 18b0a75..0000000 --- a/src/main/resources/assets/tinkersaddons/models/item/modifiers/auto-repair.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "textures": { - "battleaxe": "tinkersaddons:modifiers/battleaxe", - "battlesign": "tinkersaddons:modifiers/battlesign", - "broadsword": "tinkersaddons:modifiers/broadsword", - "rapier": "tinkersaddons:modifiers/rapier", - "cleaver": "tinkersaddons:modifiers/cleaver", - "excavator": "tinkersaddons:modifiers/excavator", - "frypan": "tinkersaddons:modifiers/frypan", - "hammer": "tinkersaddons:modifiers/hammer", - "hatchet": "tinkersaddons:modifiers/hatchet", - "longsword": "tinkersaddons:modifiers/longsword", - "lumberaxe": "tinkersaddons:modifiers/lumberaxe", - "mattock": "tinkersaddons:modifiers/mattock", - "pickaxe": "tinkersaddons:modifiers/pickaxe", - "shovel": "tinkersaddons:modifiers/shovel", - "shuriken": "tinkersaddons:modifiers/shuriken" - } -} \ No newline at end of file diff --git a/src/main/resources/assets/tinkersaddons/models/item/moss_ball.json b/src/main/resources/assets/tinkersaddons/models/item/moss_ball.json deleted file mode 100644 index acba4cc..0000000 --- a/src/main/resources/assets/tinkersaddons/models/item/moss_ball.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parent": "builtin/generated", - "textures": { - "layer0": "tinkersaddons:items/moss_ball" - }, - "display": { - "thirdperson": { - "rotation": [ -90, 0, 0 ], - "translation": [ 0, 1, -3 ], - "scale": [ 0.55, 0.55, 0.55 ] - }, - "firstperson": { - "rotation": [ 0, -135, 25 ], - "translation": [ 0, 4, 2 ], - "scale": [ 1.7, 1.7, 1.7 ] - } - } -} diff --git a/src/main/resources/assets/tinkersaddons/textures/items/amelioration_kit.png b/src/main/resources/assets/tinkersaddons/textures/items/amelioration_kit.png new file mode 100644 index 0000000000000000000000000000000000000000..d6bf794476b90c2cb5d9384658650949e3d93032 GIT binary patch literal 3158 zcmV-c45{;pP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?D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0S<)2 Date: Sat, 9 Jul 2016 22:22:37 -0500 Subject: [PATCH 14/29] Updoot --- CHANGELOG.txt | 13 +++++++++++++ build.gradle | 12 ++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 0fe08af..78fc85f 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,16 @@ +1.0.3: +-Changed: Auto-Repair is now Amelioration (a synonym for "improving"). The mechanics work the same, but recipe has changed +-Changed: Textures for all items + proper 1.9.x+ model support +-Changed: "Officially" supporting 1.10.x+, but also works on 1.9.4 :) +-Removed: Moss Ball in place for the Amelioration Kit. +-NOTE: Working on a JEI plugin. Until then, to craft the Amelioration Kit with default recipe, do such: + +[M] [M] [M] +[M] [E] [M] +[M] [M] [M] + +Where [M] is Moss Stone, and E is an enchanted book or item with Mending on it + 1.0.2: -Fixed: Auto-Repair interrupting block break / item use 1.0.1: diff --git a/build.gradle b/build.gradle index f696a3c..6d42153 100644 --- a/build.gradle +++ b/build.gradle @@ -18,12 +18,12 @@ repositories { } } -version = "1.0.2" +version = "1.0.3" group= "com.oitsjustjose.tinkers_addons" -archivesBaseName = "Tinkers' Addons-1.9.4" +archivesBaseName = "Tinkers' Addons-1.10.x" minecraft { - version = "1.9.4-12.17.0.1937" + version = "1.10.2-12.18.0.2010" if (file('../run').exists()){ runDir = "../run" @@ -38,9 +38,9 @@ minecraft { } dependencies { - deobfCompile "mezz.jei:jei_1.9.4:3.4.2.206" - deobfCompile "slimeknights.mantle:Mantle:1.9.4-0.10.1.jenkins142" - deobfCompile "slimeknights:TConstruct:1.9.4-2.3.1.jenkins229" + deobfCompile "mezz.jei:jei_1.10.2:3.7.5.227" + deobfCompile "slimeknights.mantle:Mantle:1.10-0.10.3.jenkins158" + deobfCompile "slimeknights:TConstruct:1.10-2.3.3a.jenkins289" } task deobfJar(type: Jar) { From 3511e8f5b0ce7b63bf82f731f919c381d884f3df Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Sun, 10 Jul 2016 14:02:39 -0500 Subject: [PATCH 15/29] Fix #5 --- .../java/com/oitsjustjose/tinkers_addons/TinkersAddons.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java b/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java index 65ae4b3..c91b837 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java @@ -18,7 +18,7 @@ import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; -@Mod(modid = Lib.MODID, name = Lib.NAME, version = Lib.VERSION, guiFactory = Lib.GUI_FACTORY, dependencies = "required-after:tconstruct@[1.10-2.3.3,);" + "required-after:mantle@[1.10-0.10.3,)") +@Mod(modid = Lib.MODID, name = Lib.NAME, version = Lib.VERSION, guiFactory = Lib.GUI_FACTORY, dependencies = "required-after:tconstruct@[1.10-2.3.3,);" + "required-after:mantle@[1.10-0.10.3,)", acceptedMinecraftVersions = "1.9.4") public class TinkersAddons { @Instance(Lib.MODID) From 85abe191122e154422530d7a262f8968fb2fafd6 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Thu, 25 Aug 2016 05:36:08 -0400 Subject: [PATCH 16/29] 4th Level of Modifier --- .../tinkers_addons/items/ItemModMaterial.java | 4 ++-- .../oitsjustjose/tinkers_addons/lib/Config.java | 5 +++++ .../tinkers_addons/lib/LibModifiers.java | 6 ++++++ .../util/ModRecipeAmelioration.java | 4 ---- .../tinkers_addons/util/ModRecipes.java | 6 +++++- .../assets/tinkersaddons/lang/en_US.lang | 10 ++++++---- .../models/item/extra_modifier_lvl4.json | 6 ++++++ .../textures/items/extra_modifier_lvl4.png | Bin 0 -> 3086 bytes 8 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl4.json create mode 100644 src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl4.png diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java b/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java index 2d22d63..0589635 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java @@ -16,7 +16,7 @@ import slimeknights.tconstruct.library.TinkerRegistry; public class ItemModMaterial extends Item { - String[] materials = new String[] { "AMELIORATION_KIT", "EXTRA_MODIFIER_LVL1", "EXTRA_MODIFIER_LVL2", "EXTRA_MODIFIER_LVL3" }; + String[] materials = new String[] { "AMELIORATION_KIT", "EXTRA_MODIFIER_LVL1", "EXTRA_MODIFIER_LVL2", "EXTRA_MODIFIER_LVL3", "EXTRA_MODIFIER_LVL4" }; public ItemModMaterial() { @@ -29,7 +29,7 @@ public class ItemModMaterial extends Item @Override public boolean hasEffect(ItemStack itemstack) { - return (itemstack.getItemDamage() == 0 && TinkersAddons.modConfig.autoRepairRecipeType == 2) ? true : itemstack.getItemDamage() >= 2 ? true : false; + return (itemstack.getItemDamage() == 0 && TinkersAddons.modConfig.autoRepairRecipeType == 2) ? true : itemstack.getItemDamage() == 4 ? false : itemstack.getItemDamage() >= 2 ? true : false; } @Override diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/lib/Config.java b/src/main/java/com/oitsjustjose/tinkers_addons/lib/Config.java index 369eb91..4698609 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/lib/Config.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/lib/Config.java @@ -15,6 +15,7 @@ public class Config public boolean enableExtraModifierLvl1; public boolean enableExtraModifierLvl2; public boolean enableExtraModifierLvl3; + public boolean enableExtraModifierLvl4; public Config(File file) { @@ -42,6 +43,10 @@ public class Config property.setComment("Re-adds the nether star recipe to increase modifiers on a tool if enabled"); enableExtraModifierLvl3 = property.getBoolean(); + property = config.get(Configuration.CATEGORY_GENERAL, "Enable 4th bonus modifier mod for tools", true).setRequiresMcRestart(true); + property.setComment("Adds a new Dragon Egg based Bonus Modifier if enabled"); + enableExtraModifierLvl4 = property.getBoolean(); + if (config.hasChanged()) config.save(); } diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibModifiers.java b/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibModifiers.java index 136e7c6..a0a8d69 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibModifiers.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibModifiers.java @@ -12,6 +12,8 @@ public class LibModifiers public Modifier extra_modifier_lvl1; public Modifier extra_modifier_lvl2; public Modifier extra_modifier_lvl3; + public Modifier extra_modifier_lvl4; + public LibModifiers() { @@ -31,5 +33,9 @@ public class LibModifiers { extra_modifier_lvl3 = new ModExtraModifier(3); } + if(TinkersAddons.modConfig.enableExtraModifierLvl4) + { + extra_modifier_lvl4 = new ModExtraModifier(4); + } } } \ No newline at end of file diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipeAmelioration.java b/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipeAmelioration.java index e629b07..19b6f38 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipeAmelioration.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipeAmelioration.java @@ -40,10 +40,6 @@ public class ModRecipeAmelioration extends RecipesMapCloning { NBTTagCompound comp = temp.getTagCompound(); mending = comp.getTag("StoredEnchantments").toString().contains("id:70s"); - - if (!world.isRemote) - System.out.println(comp.getTag("StoredEnchantments").toString()); - } } // Checks if the center item slot has mending on it diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipes.java b/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipes.java index 32e04b2..5e1942d 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipes.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipes.java @@ -10,6 +10,7 @@ import net.minecraft.item.crafting.CraftingManager; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.oredict.RecipeSorter; import net.minecraftforge.oredict.RecipeSorter.Category; +import net.minecraftforge.oredict.ShapedOreRecipe; import net.minecraftforge.oredict.ShapelessOreRecipe; public class ModRecipes @@ -47,6 +48,9 @@ public class ModRecipes { GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 3), Items.NETHER_STAR, new ItemStack(Items.SKULL, 1, Short.MAX_VALUE))); } - + if (TinkersAddons.modConfig.enableExtraModifierLvl4) + { + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 4, 4), new Object[] { "PPP", "PEP", "PPP", 'P', Items.ENDER_PEARL, 'E', Blocks.DRAGON_EGG })); + } } } \ No newline at end of file diff --git a/src/main/resources/assets/tinkersaddons/lang/en_US.lang b/src/main/resources/assets/tinkersaddons/lang/en_US.lang index 2987692..e801717 100644 --- a/src/main/resources/assets/tinkersaddons/lang/en_US.lang +++ b/src/main/resources/assets/tinkersaddons/lang/en_US.lang @@ -3,10 +3,12 @@ item.TinkersAddons.AMELIORATION_KIT.name=Amelioration Kit item.TinkersAddons.EXTRA_MODIFIER_LVL1.name=Bonus Tool Modifier item.TinkersAddons.EXTRA_MODIFIER_LVL2.name=Bonus Tool Modifier item.TinkersAddons.EXTRA_MODIFIER_LVL3.name=Bonus Tool Modifier +item.TinkersAddons.EXTRA_MODIFIER_LVL4.name=Bonus Tool Modifier #Modifiers modifier.auto-repair.name=Amelioration -modifier.bonus-modifier_1.name=Diamond Bonus Modifier -modifier.bonus-modifier_2.name=Notch Apple Bonus Modifier -modifier.bonus-modifier_3.name=Nether Star Bonus Modifier -modifier.auto-repair.desc=§oAuto-Repair Like the Old Days §r\nYou didn't realize you missed this, did you? \ No newline at end of file +modifier.bonus-modifier_1.name=Miner's Bonus Modifier +modifier.bonus-modifier_2.name=Overpowered Bonus Modifier +modifier.bonus-modifier_3.name=Wither Bonus Modifier +modifier.bonus-modifier_4.name=Ender Bonus Modifier +modifier.auto-repair.desc=§oAuto-Repair Like the Old Days §r\nYou didn't realize you missed this, did you? diff --git a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl4.json b/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl4.json new file mode 100644 index 0000000..ec08a09 --- /dev/null +++ b/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl4.json @@ -0,0 +1,6 @@ +{ + "parent": "item/handheld", + "textures": { + "layer0": "tinkersaddons:items/extra_modifier_lvl4" + } +} diff --git a/src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl4.png b/src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl4.png new file mode 100644 index 0000000000000000000000000000000000000000..3216ce50e03811b7f12126a97eecad8f0330ca91 GIT binary patch literal 3086 zcmV+p4Ds`cP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQ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uS64wkBy=9dm`4cXeX z4c}I@?e+FW+b@^RDBHV(wnMq2zdX3SWv9u`%{xC-q*U}&`cyXV(%rRT*Z6MH?i+i& z_B8C(+grT%{XWUQ+f@NoP1R=AW&26{v-dx)iK^-Nmiuj8txj!m?Z*Ss1N{dh4z}01 z)YTo*JycSU)+_5r4#yw9{+;i4Ee$peRgIj+;v;ZGdF1K$3E%e~4LaI(jC-u%2h$&R z9cLXcYC@Xwnns&bn)_Q~Te?roKGD|d-g^8;+aC{{G(1^(O7m37Y1-+6)01cN&y1aw zoqc{T`P^XJqPBbIW6s}d4{z_f5Om?vMgNQEJG?v2T=KYd^0M3I6IZxbny)%vZR&LD zJpPl@Psh8QyPB@KTx+@RdcC!KX7}kEo;S|j^u2lU7XQ}Oo;f|;z4Ll+_r>@1-xl3| zawq-H%e&ckC+@AhPrP6BKT#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z0003wNkl2*yb(N_Q?!ypSfbMVL|0kOeBvGd7oJb7ML-wut`! ztGA2TL7O_GiRI z)k$g=a5aIW1gfHwe)5RftqboyKro1r40C);zF_w})E?qlWTTY|^iQ8*_dMB2Y8DuG z_+bGHEL#8;dCAe3> zLSCs%MA(d~=tM-QJfwy{MRPSr!=F|vm%#5)3RuX0;P*)dt^gZzDYz*@u;pwoyemil c#=3kD0L5}U6lUH!%>V!Z07*qoM6N<$f)O#lB>(^b literal 0 HcmV?d00001 From 4a561bbeac5173921dbbb738b243fa7b5ff7cc55 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Fri, 14 Oct 2016 20:10:05 -0700 Subject: [PATCH 17/29] Updated Forge Version for Build --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 6d42153..a912cc4 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ group= "com.oitsjustjose.tinkers_addons" archivesBaseName = "Tinkers' Addons-1.10.x" minecraft { - version = "1.10.2-12.18.0.2010" + version = "1.10.2-12.18.2.2102" if (file('../run').exists()){ runDir = "../run" From 6a06ab7a59f234fdf594cb0c02a14f5b7e7cc521 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Sun, 4 Dec 2016 13:00:02 -0500 Subject: [PATCH 18/29] Forge Update --- CHANGELOG.txt | 23 ----------------------- build.gradle | 2 +- changelog.md | 23 +++++++++++++++++++++++ 3 files changed, 24 insertions(+), 24 deletions(-) delete mode 100644 CHANGELOG.txt create mode 100644 changelog.md diff --git a/CHANGELOG.txt b/CHANGELOG.txt deleted file mode 100644 index 78fc85f..0000000 --- a/CHANGELOG.txt +++ /dev/null @@ -1,23 +0,0 @@ -1.0.3: --Changed: Auto-Repair is now Amelioration (a synonym for "improving"). The mechanics work the same, but recipe has changed --Changed: Textures for all items + proper 1.9.x+ model support --Changed: "Officially" supporting 1.10.x+, but also works on 1.9.4 :) --Removed: Moss Ball in place for the Amelioration Kit. --NOTE: Working on a JEI plugin. Until then, to craft the Amelioration Kit with default recipe, do such: - -[M] [M] [M] -[M] [E] [M] -[M] [M] [M] - -Where [M] is Moss Stone, and E is an enchanted book or item with Mending on it - -1.0.2: --Fixed: Auto-Repair interrupting block break / item use -1.0.1: --Fixed: Auto-Repair Working on Multiple Tools Simultaneously -1.0: -Initial Release: --Added: Auto-Repair Modifier --Added: Ability to increase modifiers like older Tinkers' Versions --Added: Moss Ball and Bonus Tool Modifiers for all 3 tiers --Added: Config options to disable any or all modifiers \ No newline at end of file diff --git a/build.gradle b/build.gradle index a912cc4..cc53ab1 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ group= "com.oitsjustjose.tinkers_addons" archivesBaseName = "Tinkers' Addons-1.10.x" minecraft { - version = "1.10.2-12.18.2.2102" + version = "1.10.2-12.18.2.2125" if (file('../run').exists()){ runDir = "../run" diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..c1d13bf --- /dev/null +++ b/changelog.md @@ -0,0 +1,23 @@ +1.0.3: +* Changed: Auto-Repair is now Amelioration (a synonym for "improving"). The mechanics work the same, but recipe has changed +* Changed: Textures for all items + proper 1.9.x+ model support +* Changed: "Officially" supporting 1.10.x+, but also works on 1.9.4 :) +* Removed: Moss Ball in place for the Amelioration Kit. +* NOTE: Working on a JEI plugin. Until then, to craft the Amelioration Kit with default recipe, do such: + +[M] [M] [M] +[M] [E] [M] +[M] [M] [M] + +Where [M] is Moss Stone, and E is an enchanted book or item with Mending on it + +1.0.2: +* Fixed: Auto-Repair interrupting block break / item use +1.0.1: +* Fixed: Auto-Repair Working on Multiple Tools Simultaneously +1.0: +Initial Release: +* Added: Auto-Repair Modifier +* Added: Ability to increase modifiers like older Tinkers' Versions +* Added: Moss Ball and Bonus Tool Modifiers for all 3 tiers +* Added: Config options to disable any or all modifiers \ No newline at end of file From 9aa4375cb6b8d6f016be8bfc35a3e8e9621c3036 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Sun, 26 Feb 2017 14:13:12 -0500 Subject: [PATCH 19/29] Haven't updated in unreasonably long --- build.gradle | 2 +- changelog.md | 7 ++ .../tinkers_addons/items/ItemModMaterial.java | 3 +- .../tinkers_addons/lib/Config.java | 10 +-- .../tinkers_addons/lib/LibModifiers.java | 5 +- .../util/ModRecipeAmelioration.java | 86 ------------------- .../tinkers_addons/util/ModRecipes.java | 23 ++--- 7 files changed, 21 insertions(+), 115 deletions(-) delete mode 100644 src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipeAmelioration.java diff --git a/build.gradle b/build.gradle index cc53ab1..8cb4690 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ repositories { } } -version = "1.0.3" +version = "1.0.4" group= "com.oitsjustjose.tinkers_addons" archivesBaseName = "Tinkers' Addons-1.10.x" diff --git a/changelog.md b/changelog.md index c1d13bf..fa2dceb 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +1.0.4: +* Changed: Recipe for Amelioration Kit again +* Added: Tier IV Bonus Modifier + 1.0.3: * Changed: Auto-Repair is now Amelioration (a synonym for "improving"). The mechanics work the same, but recipe has changed * Changed: Textures for all items + proper 1.9.x+ model support @@ -11,10 +15,13 @@ Where [M] is Moss Stone, and E is an enchanted book or item with Mending on it + 1.0.2: * Fixed: Auto-Repair interrupting block break / item use + 1.0.1: * Fixed: Auto-Repair Working on Multiple Tools Simultaneously + 1.0: Initial Release: * Added: Auto-Repair Modifier diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java b/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java index 0589635..a449a43 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java @@ -2,7 +2,6 @@ package com.oitsjustjose.tinkers_addons.items; import java.util.List; -import com.oitsjustjose.tinkers_addons.TinkersAddons; import com.oitsjustjose.tinkers_addons.lib.Lib; import net.minecraft.creativetab.CreativeTabs; @@ -29,7 +28,7 @@ public class ItemModMaterial extends Item @Override public boolean hasEffect(ItemStack itemstack) { - return (itemstack.getItemDamage() == 0 && TinkersAddons.modConfig.autoRepairRecipeType == 2) ? true : itemstack.getItemDamage() == 4 ? false : itemstack.getItemDamage() >= 2 ? true : false; + return itemstack.getItemDamage() == 0 ? true : itemstack.getItemDamage() == 4 ? false : itemstack.getItemDamage() >= 2 ? true : false; } @Override diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/lib/Config.java b/src/main/java/com/oitsjustjose/tinkers_addons/lib/Config.java index 4698609..b37216c 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/lib/Config.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/lib/Config.java @@ -11,7 +11,7 @@ public class Config { public Configuration config; - public int autoRepairRecipeType; + public boolean enableAmelioration; public boolean enableExtraModifierLvl1; public boolean enableExtraModifierLvl2; public boolean enableExtraModifierLvl3; @@ -27,10 +27,10 @@ public class Config { Property property; - property = config.get(Configuration.CATEGORY_GENERAL, "Auto-Repair Recipe Type", 2).setRequiresMcRestart(true); - property.setComment("Allows you to modify the auto-repair recipe. 0 disables the feature, 1 enables the easier recipe, 2 enables a harder one."); - autoRepairRecipeType = property.getInt(); - + property = config.get(Configuration.CATEGORY_GENERAL, "Enable Amelioration Kit mod for tools", true).setRequiresMcRestart(true); + property.setComment("Amelioration Kits are the method of getting Pre-TiCon 2 auto-repair"); + enableAmelioration = property.getBoolean(); + property = config.get(Configuration.CATEGORY_GENERAL, "Enable 1st bonus modifier mod for tools", true).setRequiresMcRestart(true); property.setComment("Re-adds the diamond + gold block recipe to increase modifiers on a tool if enabled"); enableExtraModifierLvl1 = property.getBoolean(); diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibModifiers.java b/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibModifiers.java index a0a8d69..e2884e0 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibModifiers.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibModifiers.java @@ -14,10 +14,9 @@ public class LibModifiers public Modifier extra_modifier_lvl3; public Modifier extra_modifier_lvl4; - public LibModifiers() { - if (TinkersAddons.modConfig.autoRepairRecipeType > 0) + if (TinkersAddons.modConfig.enableAmelioration) { auto_repair = new ModAutoRepair(); } @@ -33,7 +32,7 @@ public class LibModifiers { extra_modifier_lvl3 = new ModExtraModifier(3); } - if(TinkersAddons.modConfig.enableExtraModifierLvl4) + if (TinkersAddons.modConfig.enableExtraModifierLvl4) { extra_modifier_lvl4 = new ModExtraModifier(4); } diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipeAmelioration.java b/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipeAmelioration.java deleted file mode 100644 index 19b6f38..0000000 --- a/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipeAmelioration.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.oitsjustjose.tinkers_addons.util; - -import com.oitsjustjose.tinkers_addons.TinkersAddons; - -import net.minecraft.enchantment.Enchantment; -import net.minecraft.enchantment.EnchantmentHelper; -import net.minecraft.init.Blocks; -import net.minecraft.inventory.InventoryCrafting; -import net.minecraft.item.Item; -import net.minecraft.item.ItemEnchantedBook; -import net.minecraft.item.ItemStack; -import net.minecraft.item.crafting.RecipesMapCloning; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.world.World; - -public class ModRecipeAmelioration extends RecipesMapCloning -{ - @Override - public boolean matches(InventoryCrafting invCraft, World world) - { - boolean mending = false; - int numMoss = 0; - - for (int x = 0; x < 3; x++) - { - for (int y = 0; y < 3; y++) - { - ItemStack temp = invCraft.getStackInRowAndColumn(x, y); - if (temp == null) - { - return false; - } - - // Checks for center item slot - if (x == 1 && y == 1) - { - if (temp.getItem() instanceof ItemEnchantedBook) - { - if (temp.getTagCompound() != null) - { - NBTTagCompound comp = temp.getTagCompound(); - mending = comp.getTag("StoredEnchantments").toString().contains("id:70s"); - } - } - // Checks if the center item slot has mending on it - if (EnchantmentHelper.getEnchantmentLevel(Enchantment.getEnchantmentByID(70), temp) > 0) - mending = true; - } - // Else not the center slot it drops out if the block isn't mossy cobble - else if ((temp.getItem() == Item.getItemFromBlock(Blocks.MOSSY_COBBLESTONE))) - { - ++numMoss; - } - } - - } - return mending && numMoss == 8; - } - - // DONE - @Override - public ItemStack getCraftingResult(InventoryCrafting invCraft) - { - return new ItemStack(TinkersAddons.modItems.materials, 1, 0); - } - - // DONE - @Override - public int getRecipeSize() - { - return 10; - } - - // DONE - @Override - public ItemStack getRecipeOutput() - { - return null; - } - - @Override - public ItemStack[] getRemainingItems(InventoryCrafting invCraft) - { - return new ItemStack[] { null, null, null, null, null, null, null, null, null }; - } -} diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipes.java b/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipes.java index 5e1942d..a39cd1e 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipes.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipes.java @@ -1,41 +1,28 @@ package com.oitsjustjose.tinkers_addons.util; import com.oitsjustjose.tinkers_addons.TinkersAddons; -import com.oitsjustjose.tinkers_addons.lib.Lib; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; -import net.minecraft.item.crafting.CraftingManager; import net.minecraftforge.fml.common.registry.GameRegistry; -import net.minecraftforge.oredict.RecipeSorter; -import net.minecraftforge.oredict.RecipeSorter.Category; import net.minecraftforge.oredict.ShapedOreRecipe; import net.minecraftforge.oredict.ShapelessOreRecipe; +import slimeknights.tconstruct.shared.TinkerCommons; public class ModRecipes { public ModRecipes() { - registerAutoRepairRecipe(); registerBonusModRecipes(); } - public void registerAutoRepairRecipe() - { - if (TinkersAddons.modConfig.autoRepairRecipeType == 1) - { - GameRegistry.addRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 0), new Object[] { "MMM", "MEM", "MMM", 'M', Blocks.MOSSY_COBBLESTONE, 'E', Items.BOOK }); - } - else if (TinkersAddons.modConfig.autoRepairRecipeType == 2) - { - CraftingManager.getInstance().getRecipeList().add(new ModRecipeAmelioration()); - RecipeSorter.register(Lib.MODID + ":Amelioration", ModRecipeAmelioration.class, Category.SHAPED, ""); - } - } - public void registerBonusModRecipes() { + if (TinkersAddons.modConfig.enableAmelioration) + { + GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 0), new Object[] { new ItemStack(TinkerCommons.materials, 1, 19), new ItemStack(TinkerCommons.materials, 1, 19), new ItemStack(TinkerCommons.materials, 1, 19), Items.BOOK })); + } if (TinkersAddons.modConfig.enableExtraModifierLvl1) { GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 1), "gemDiamond", "blockGold")); From b0a819aa60517707a5146745a8daa70ef2c45084 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Sat, 18 Mar 2017 08:33:18 -0500 Subject: [PATCH 20/29] Externalizing Gradle --- build.gradle | 24 ++++++++++++------------ gradle.properties | 7 +++++++ 2 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 gradle.properties diff --git a/build.gradle b/build.gradle index 8cb4690..e78fac4 100644 --- a/build.gradle +++ b/build.gradle @@ -14,33 +14,33 @@ apply plugin: 'net.minecraftforge.gradle.forge' repositories { maven { - url "http://dvs1.progwml6.com/files/maven" + url = "http://dvs1.progwml6.com/files/maven" } } -version = "1.0.4" +version = mod_version group= "com.oitsjustjose.tinkers_addons" archivesBaseName = "Tinkers' Addons-1.10.x" minecraft { - version = "1.10.2-12.18.2.2125" + version = "${minecraft_version}-${forge_version}" if (file('../run').exists()){ runDir = "../run" } else { runDir = "run" - } + } useDepAts = true - replaceIn "lib/Lib.java" - replace "@VERSION@", project.version - + replaceIn "lib/Lib.java" + replace "@VERSION@", mod_version + mappings = "snapshot_20160518" } dependencies { - deobfCompile "mezz.jei:jei_1.10.2:3.7.5.227" - deobfCompile "slimeknights.mantle:Mantle:1.10-0.10.3.jenkins158" - deobfCompile "slimeknights:TConstruct:1.10-2.3.3a.jenkins289" + deobfCompile "mezz.jei:jei_${minecraft_version}:${jei_version}" + deobfCompile "slimeknights.mantle:Mantle:1.10-${mantle_version}" + deobfCompile "slimeknights:TConstruct:1.10-${ticon_version}" } task deobfJar(type: Jar) { @@ -63,8 +63,8 @@ processResources include 'mcmod.info' expand 'version':project.version, 'mcversion':project.minecraft.version } - + from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } -} \ No newline at end of file +} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..6d9b414 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,7 @@ +mod_version=1.0.4 +minecraft_version=1.10.2 +forge_version=12.18.2.2125 + +jei_version=3.14.7.416 +mantle_version=0.10.3.jenkins158 +ticon_version=2.3.3a.jenkins289 From 048c5281c833381b323fd48e8798065d36fd321d Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Sun, 19 Mar 2017 07:08:32 -0500 Subject: [PATCH 21/29] New textures by CyanideX! :D --- .../textures/items/amelioration_kit.png | Bin 3158 -> 1566 bytes .../textures/items/extra_modifier_lvl1.png | Bin 3143 -> 18759 bytes .../textures/items/extra_modifier_lvl2.png | Bin 3138 -> 17873 bytes .../textures/items/extra_modifier_lvl3.png | Bin 3130 -> 17815 bytes .../textures/items/extra_modifier_lvl4.png | Bin 3086 -> 17853 bytes 5 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 src/main/resources/assets/tinkersaddons/textures/items/amelioration_kit.png mode change 100644 => 100755 src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl1.png mode change 100644 => 100755 src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl2.png mode change 100644 => 100755 src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl3.png mode change 100644 => 100755 src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl4.png diff --git a/src/main/resources/assets/tinkersaddons/textures/items/amelioration_kit.png b/src/main/resources/assets/tinkersaddons/textures/items/amelioration_kit.png old mode 100644 new mode 100755 index d6bf794476b90c2cb5d9384658650949e3d93032..3092d98a0808240175e8d1199c1a5e5eb3f4504e GIT binary patch literal 1566 zcmbVMdrT8|9KQ%Yz%h-84`6s6j$xqpXlbD*EwCP}6^dAz2_s`%uSYqccir6qg~>$3 zMI76rYzmo#YM2@_j3ho`3mY;Yna}y0alDK}gn@=FAlYPBpl*K{v+S4rp7;HHzn|~x zs?$>6^79S!1pvU$peIbyzSun%%#+qtV^gHGtrQb8#B?rKEFpOsNU(Ai8Z_8R8*QRV zYw7zJ=vV;oDrU?XVumpVr#L%Ix@BOe-65d?AU4kFAgKac1TD0UVKvZbdj|wERt>aC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q3aT%s$c9>fU<%N829{oHRUHc}nwC$!Xf@g42^{^3RN&m7RTlF8SPG+oHC6 z=YM0)-)awU@466l;nGF_i|0GMJI-A4xODQe+vO8ixL2C5I$v$-bm~0*lhaSfyPUh4 zuDM)mx$b(swR>jw=^LIm&fWCAdGQwi*43UlJ>9+YdT;l|_x0Zv-F|W>{m#p~*>@-I zt-MdXU-UrjLD@syht)q@{@mE_+<$7ocYmPs(cDM(28Dyq{*m>M4?_iynUBkc4TkHU zI6gT!;y-fz>HMcd&t%Ugo)`Y2{>!cx7B7DI)$7;J(U{Spm-3gBzioV_{p!H$8L!*M z!p0uH$#^p{Ui4P`?ZJ24cOCDe-w#jZd?0@)|7iKK^;6KN`;!@ylm7$*nDhK&Gk-1H z0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F}0004jNklj!?)K0Z$P;+*C&D>i<+gjDvDbhQ5fLX06SQ#J@$htWjWS3vRed*H2aJXa!XDn9{WSnY7e|}m zgrRedXcA#GRH*zIQ`JZ1$6p}!zB*g%gzRuQ4q*xd$poXJ!c_G!Reh8}x_>fCI1Zt6 z4dR3$nZOjrL2OeQq$qLD1)z7hh#;9DnnVc4VMD3%W4u1>;^p3l z>9tW8luSMy=v>1T20GU+l2tT?!QgJ-Y}-Cg7;XogFic@Eo6Q=LY}qASxXv|Bcw@^s z=%{r_CYaCX4iZfwNG4xwTT0Q!Kd|?5Bu*G*kfQFCh)6QQ%AdF#i4(@-xwxUa*tY=5 r1f89A)CcNL?O6#}jzm8k0Q4~cG05&Xs_`n>00000NkvXXu0mjfG+yWd diff --git a/src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl1.png b/src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl1.png old mode 100644 new mode 100755 index 92c3fd5a9f0a325a98f6a4ab0594a911fc471611..b88462151129f1e85b2cff7c8048838f257b712d GIT binary patch literal 18759 zcmeI4c|4Te+rV$}*tbel(leGM8M9zC(-<+jxq~(+Bj9g8kIxthd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ZUyg}z#BH?k2|(scG{19@W1>qGo$~dDnyH)1OkM&$;ZW; z55&vI1p&g_KzN&cT)g=}ynI{`AiPaJF5Y|~ zUOp}e5Z)#q7jHfgFCP~K2yc^*i#H#LmyZhqgty7Z#hVYr%f|%)!rSEI;>`!*<>P_? z;cfD9@#X{Z@^L|c@HTnk5}A1ilI9J*_{as{aO^EiwE*9agi+0GtpFfM1pq?#0l?=8 z@VgHH{80e#W(NS^lK@}|>&W)ICIBE1V{T+X4rqPQ++fk{yR^)ALIJ)rr|!^aWk&^R zWJIF@>V7$FJ-HksX6dGO<4^>`MaciUN^7iwm`!+y{-#0+|HBgfLg5P!x;JIl3U|vJ zaNhqzBt$jzhY1nk?w?ON|EqfVb-(}HrWRe5FG2a+){Sw~gQ@l-o9)kBb{GjV_Vak$ zSSNEeU*)}>?vZ}ly?mi@;mVcBn$zJjkN%OWtqYXK9UMEC?JNt#UQUElUXRB1-ni*9 zG4^TqShk2D@phugIkNB^g|&H@faZ2*1GPjyl(t$_CY>2RXgxnHKwEipa-)5!^jeyc zh1}_{;$E2s@pt7qUn<0#s%({)NzHD7No`HT#u;mL%C$z0=5HI+d6}ZL4a<78Elpz1 zfT)wx$2M+Txd^2Yb0ia8CazOV3=zf5fEEfZ| z8|9w>kZN++*%EfPgeDxcWSKmxjBEz_Yon1W~3^UY(uN}pPVhzLd6 z1MrE2Ks3N75;V0;{q7Z6Qz>6~sOJFBsv{5$jP)v%PKlIGiTFgK?M68d5P1)9%o>zV niC$kyq<>U$TW49gM1KPS7gB5{^q%&800000NkvXXu0mjfF$=J= diff --git a/src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl4.png b/src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl4.png old mode 100644 new mode 100755 index 3216ce50e03811b7f12126a97eecad8f0330ca91..d05fd73f40ff060aa9ce210264dbe45b56928ac8 GIT binary patch literal 17853 zcmeI4c|4R|8^>=c`_e+2^o%7Wvss3j##qK0k}acs%#1NvW|%2kd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1g;~;9)d`!Mz_dL`d z;#p*)l?wDvpJDer*-2^^7;^L`0}Oq=r95b2Uf9pH?cD!0%BCSjd0i v_elk=02^~DxG6%g Date: Sun, 19 Mar 2017 22:26:00 -0400 Subject: [PATCH 22/29] Huge restructure thanks to CyanideX :D --- .gitignore | 14 ++++ changelog.md | 10 ++- gradle.properties | 2 +- .../tinkers_addons/TinkersAddons.java | 6 +- .../tinkers_addons/items/ItemModMaterial.java | 47 ----------- .../tinkers_addons/items/ItemModifier.java | 73 ++++++++++++++++++ .../tinkers_addons/lib/LibItems.java | 4 +- .../util/{ModRecipes.java => Recipes.java} | 17 ++-- .../assets/tinkersaddons/lang/en_US.lang | 23 +++--- .../models/item/amelioration_tome.json | 6 ++ ...ioration_kit.json => diamond_toolkit.json} | 2 +- .../models/item/ender_toolkit.json | 6 ++ .../models/item/extra_modifier_lvl1.json | 6 -- .../models/item/extra_modifier_lvl2.json | 6 -- .../models/item/extra_modifier_lvl3.json | 6 -- .../models/item/extra_modifier_lvl4.json | 6 -- .../models/item/gold_toolkit.json | 6 ++ .../models/item/iron_toolkit.json | 6 ++ ...ioration_kit.png => amelioration_tome.png} | Bin ..._modifier_lvl3.png => diamond_toolkit.png} | Bin ...ra_modifier_lvl4.png => ender_toolkit.png} | Bin ...tra_modifier_lvl2.png => gold_toolkit.png} | Bin ...tra_modifier_lvl1.png => iron_toolkit.png} | Bin 23 files changed, 151 insertions(+), 95 deletions(-) create mode 100644 .gitignore delete mode 100644 src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java create mode 100644 src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModifier.java rename src/main/java/com/oitsjustjose/tinkers_addons/util/{ModRecipes.java => Recipes.java} (52%) create mode 100644 src/main/resources/assets/tinkersaddons/models/item/amelioration_tome.json rename src/main/resources/assets/tinkersaddons/models/item/{amelioration_kit.json => diamond_toolkit.json} (50%) create mode 100644 src/main/resources/assets/tinkersaddons/models/item/ender_toolkit.json delete mode 100644 src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl1.json delete mode 100644 src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl2.json delete mode 100644 src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl3.json delete mode 100644 src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl4.json create mode 100644 src/main/resources/assets/tinkersaddons/models/item/gold_toolkit.json create mode 100644 src/main/resources/assets/tinkersaddons/models/item/iron_toolkit.json rename src/main/resources/assets/tinkersaddons/textures/items/{amelioration_kit.png => amelioration_tome.png} (100%) mode change 100755 => 100644 rename src/main/resources/assets/tinkersaddons/textures/items/{extra_modifier_lvl3.png => diamond_toolkit.png} (100%) mode change 100755 => 100644 rename src/main/resources/assets/tinkersaddons/textures/items/{extra_modifier_lvl4.png => ender_toolkit.png} (100%) mode change 100755 => 100644 rename src/main/resources/assets/tinkersaddons/textures/items/{extra_modifier_lvl2.png => gold_toolkit.png} (100%) mode change 100755 => 100644 rename src/main/resources/assets/tinkersaddons/textures/items/{extra_modifier_lvl1.png => iron_toolkit.png} (100%) mode change 100755 => 100644 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0000689 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +.gradle +/build/ + +# Ignore Gradle GUI config +gradle-app.setting + +# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) +!gradle-wrapper.jar + +# Cache of project +.gradletasknamecache + +# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 +# gradle/wrapper/gradle-wrapper.properties \ No newline at end of file diff --git a/changelog.md b/changelog.md index fa2dceb..ebc4c3f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,9 @@ +1.0.5: +* Added: Modifier Item Tooltips +* Changed: New Textures!! +* Changed: New Recipes (No, I'm not adding a config option, CraftTweaker is an option!) +* Changed: Item Names. Functionality is identical. + 1.0.4: * Changed: Recipe for Amelioration Kit again * Added: Tier IV Bonus Modifier @@ -6,7 +12,7 @@ * Changed: Auto-Repair is now Amelioration (a synonym for "improving"). The mechanics work the same, but recipe has changed * Changed: Textures for all items + proper 1.9.x+ model support * Changed: "Officially" supporting 1.10.x+, but also works on 1.9.4 :) -* Removed: Moss Ball in place for the Amelioration Kit. +* Removed: Moss Ball in place for the Amelioration Kit. * NOTE: Working on a JEI plugin. Until then, to craft the Amelioration Kit with default recipe, do such: [M] [M] [M] @@ -27,4 +33,4 @@ Initial Release: * Added: Auto-Repair Modifier * Added: Ability to increase modifiers like older Tinkers' Versions * Added: Moss Ball and Bonus Tool Modifiers for all 3 tiers -* Added: Config options to disable any or all modifiers \ No newline at end of file +* Added: Config options to disable any or all modifiers diff --git a/gradle.properties b/gradle.properties index 6d9b414..95ab385 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -mod_version=1.0.4 +mod_version=1.0.5 minecraft_version=1.10.2 forge_version=12.18.2.2125 diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java b/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java index c91b837..6d415b0 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/TinkersAddons.java @@ -7,7 +7,7 @@ import com.oitsjustjose.tinkers_addons.lib.LibModifiers; import com.oitsjustjose.tinkers_addons.modifiers.ModAutoRepair; import com.oitsjustjose.tinkers_addons.util.ClientProxy; import com.oitsjustjose.tinkers_addons.util.CommonProxy; -import com.oitsjustjose.tinkers_addons.util.ModRecipes; +import com.oitsjustjose.tinkers_addons.util.Recipes; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.Mod; @@ -29,7 +29,7 @@ public class TinkersAddons public static Config modConfig; public static LibItems modItems; public static LibModifiers modModifiers; - public ModRecipes recipes; + public Recipes recipes; @EventHandler public void preInit(FMLPreInitializationEvent event) @@ -55,6 +55,6 @@ public class TinkersAddons { if (event.getSide().isClient()) ClientProxy.init(); - recipes = new ModRecipes(); + recipes = new Recipes(); } } \ No newline at end of file diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java b/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java deleted file mode 100644 index a449a43..0000000 --- a/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModMaterial.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.oitsjustjose.tinkers_addons.items; - -import java.util.List; - -import com.oitsjustjose.tinkers_addons.lib.Lib; - -import net.minecraft.creativetab.CreativeTabs; -import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; -import net.minecraft.util.ResourceLocation; -import net.minecraftforge.fml.common.registry.GameRegistry; -import net.minecraftforge.fml.relauncher.Side; -import net.minecraftforge.fml.relauncher.SideOnly; -import slimeknights.tconstruct.library.TinkerRegistry; - -public class ItemModMaterial extends Item -{ - String[] materials = new String[] { "AMELIORATION_KIT", "EXTRA_MODIFIER_LVL1", "EXTRA_MODIFIER_LVL2", "EXTRA_MODIFIER_LVL3", "EXTRA_MODIFIER_LVL4" }; - - public ItemModMaterial() - { - this.setHasSubtypes(true); - this.setCreativeTab(TinkerRegistry.tabGeneral); - GameRegistry.register(this, new ResourceLocation(Lib.MODID.toLowerCase(), "modifier_item")); - Lib.MOD_ITEMS.add(this); - } - - @Override - public boolean hasEffect(ItemStack itemstack) - { - return itemstack.getItemDamage() == 0 ? true : itemstack.getItemDamage() == 4 ? false : itemstack.getItemDamage() >= 2 ? true : false; - } - - @Override - public String getUnlocalizedName(ItemStack itemStack) - { - return "item." + Lib.MODID + "." + materials[itemStack.getItemDamage()]; - } - - @Override - @SideOnly(Side.CLIENT) - public void getSubItems(Item item, CreativeTabs tab, List list) - { - for (int i = 0; i < materials.length; i++) - list.add(new ItemStack(item, 1, i)); - } -} \ No newline at end of file diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModifier.java b/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModifier.java new file mode 100644 index 0000000..9294523 --- /dev/null +++ b/src/main/java/com/oitsjustjose/tinkers_addons/items/ItemModifier.java @@ -0,0 +1,73 @@ +package com.oitsjustjose.tinkers_addons.items; + +import java.util.List; + +import com.oitsjustjose.tinkers_addons.lib.Lib; + +import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.util.ResourceLocation; +import net.minecraft.util.text.translation.I18n; +import net.minecraftforge.fml.common.registry.GameRegistry; +import net.minecraftforge.fml.relauncher.Side; +import net.minecraftforge.fml.relauncher.SideOnly; +import slimeknights.tconstruct.library.TinkerRegistry; + +@SuppressWarnings("deprecation") +public class ItemModifier extends Item +{ + private final String[] TYPES = new String[] { "AMELIORATION_TOME", "IRON_TOOLKIT", "GOLD_TOOLKIT", "DIAMOND_TOOLKIT", "ENDER_TOOLKIT" }; + + public ItemModifier() + { + this.setHasSubtypes(true); + this.setCreativeTab(TinkerRegistry.tabGeneral); + GameRegistry.register(this, new ResourceLocation(Lib.MODID.toLowerCase(), "modifier_item")); + Lib.MOD_ITEMS.add(this); + } + + @Override + public boolean hasEffect(ItemStack itemstack) + { + return itemstack.getItemDamage() == 0; + } + + @Override + public String getUnlocalizedName(ItemStack itemStack) + { + return "item." + Lib.MODID + "." + TYPES[itemStack.getItemDamage()]; + } + + @Override + @SideOnly(Side.CLIENT) + public void getSubItems(Item item, CreativeTabs tab, List list) + { + for (int i = 0; i < TYPES.length; i++) + list.add(new ItemStack(item, 1, i)); + } + + @SideOnly(Side.CLIENT) + public void addInformation(ItemStack stack, EntityPlayer playerIn, List tooltip, boolean advanced) + { + switch (stack.getItemDamage()) + { + case 0: + tooltip.add(I18n.translateToLocal("item.TinkersAddons.AMELIORATION_TOME.description")); + return; + case 1: + tooltip.add(I18n.translateToLocal("item.TinkersAddons.IRON_TOOLKIT.description")); + return; + case 2: + tooltip.add(I18n.translateToLocal("item.TinkersAddons.GOLD_TOOLKIT.description")); + return; + case 3: + tooltip.add(I18n.translateToLocal("item.TinkersAddons.DIAMOND_TOOLKIT.description")); + return; + case 4: + tooltip.add(I18n.translateToLocal("item.TinkersAddons.ENDER_TOOLKIT.description")); + return; + } + } +} \ No newline at end of file diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibItems.java b/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibItems.java index 2122fd2..2320d4f 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibItems.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/lib/LibItems.java @@ -1,6 +1,6 @@ package com.oitsjustjose.tinkers_addons.lib; -import com.oitsjustjose.tinkers_addons.items.ItemModMaterial; +import com.oitsjustjose.tinkers_addons.items.ItemModifier; import net.minecraft.item.Item; @@ -10,6 +10,6 @@ public class LibItems public LibItems() { - materials = new ItemModMaterial(); + materials = new ItemModifier(); } } diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipes.java b/src/main/java/com/oitsjustjose/tinkers_addons/util/Recipes.java similarity index 52% rename from src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipes.java rename to src/main/java/com/oitsjustjose/tinkers_addons/util/Recipes.java index a39cd1e..e6164c5 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/util/ModRecipes.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/util/Recipes.java @@ -9,10 +9,12 @@ import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.oredict.ShapedOreRecipe; import net.minecraftforge.oredict.ShapelessOreRecipe; import slimeknights.tconstruct.shared.TinkerCommons; +import slimeknights.tconstruct.tools.TinkerMaterials; +import slimeknights.tconstruct.tools.TinkerTools; -public class ModRecipes +public class Recipes { - public ModRecipes() + public Recipes() { registerBonusModRecipes(); } @@ -25,19 +27,22 @@ public class ModRecipes } if (TinkersAddons.modConfig.enableExtraModifierLvl1) { - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 1), "gemDiamond", "blockGold")); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 1), new Object[] { "#S#", "###", '#', TinkerTools.largePlate.getItemstackWithMaterial(TinkerMaterials.iron), 'S', TinkerCommons.blockPigIron })); } if (TinkersAddons.modConfig.enableExtraModifierLvl2) { - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 2), "blockDiamond", new ItemStack(Items.GOLDEN_APPLE, 1, 1))); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 2), new Object[] { "#S#", "###", '#', TinkerTools.largePlate.getItemstackWithMaterial(TinkerMaterials.ardite), 'S', Blocks.GOLD_BLOCK })); + } if (TinkersAddons.modConfig.enableExtraModifierLvl3) { - GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 3), Items.NETHER_STAR, new ItemStack(Items.SKULL, 1, Short.MAX_VALUE))); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 3), new Object[] { "#S#", "###", '#', TinkerTools.largePlate.getItemstackWithMaterial(TinkerMaterials.prismarine), 'S', Blocks.DIAMOND_BLOCK })); + } if (TinkersAddons.modConfig.enableExtraModifierLvl4) { - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 4, 4), new Object[] { "PPP", "PEP", "PPP", 'P', Items.ENDER_PEARL, 'E', Blocks.DRAGON_EGG })); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 4), new Object[] { "#S#", "###", '#', TinkerTools.largePlate.getItemstackWithMaterial(TinkerMaterials.obsidian), 'S', Items.ENDER_PEARL })); + } } } \ No newline at end of file diff --git a/src/main/resources/assets/tinkersaddons/lang/en_US.lang b/src/main/resources/assets/tinkersaddons/lang/en_US.lang index e801717..da6f097 100644 --- a/src/main/resources/assets/tinkersaddons/lang/en_US.lang +++ b/src/main/resources/assets/tinkersaddons/lang/en_US.lang @@ -1,14 +1,19 @@ #Items -item.TinkersAddons.AMELIORATION_KIT.name=Amelioration Kit -item.TinkersAddons.EXTRA_MODIFIER_LVL1.name=Bonus Tool Modifier -item.TinkersAddons.EXTRA_MODIFIER_LVL2.name=Bonus Tool Modifier -item.TinkersAddons.EXTRA_MODIFIER_LVL3.name=Bonus Tool Modifier -item.TinkersAddons.EXTRA_MODIFIER_LVL4.name=Bonus Tool Modifier +item.TinkersAddons.AMELIORATION_TOME.name=Amelioration Tome +item.TinkersAddons.AMELIORATION_TOME.description=§2Auto-Repair Modifier§r +item.TinkersAddons.IRON_TOOLKIT.name=Iron Toolkit +item.TinkersAddons.IRON_TOOLKIT.description=§3Grants an Extra Modifier§r +item.TinkersAddons.GOLD_TOOLKIT.name=Gold Toolkit +item.TinkersAddons.GOLD_TOOLKIT.description=§3Grants an Extra Modifier§r +item.TinkersAddons.DIAMOND_TOOLKIT.name=Diamond Toolkit +item.TinkersAddons.DIAMOND_TOOLKIT.description=§3Grants an Extra Modifier§r +item.TinkersAddons.ENDER_TOOLKIT.name=Ender Toolkit +item.TinkersAddons.ENDER_TOOLKIT.description=§3Grants an Extra Modifier§r #Modifiers modifier.auto-repair.name=Amelioration -modifier.bonus-modifier_1.name=Miner's Bonus Modifier -modifier.bonus-modifier_2.name=Overpowered Bonus Modifier -modifier.bonus-modifier_3.name=Wither Bonus Modifier -modifier.bonus-modifier_4.name=Ender Bonus Modifier +modifier.bonus-modifier_1.name=This Modifier Toolkit +modifier.bonus-modifier_2.name=This Modifier Toolkit +modifier.bonus-modifier_3.name=This Modifier Toolkit +modifier.bonus-modifier_4.name=This Modifier Toolkit modifier.auto-repair.desc=§oAuto-Repair Like the Old Days §r\nYou didn't realize you missed this, did you? diff --git a/src/main/resources/assets/tinkersaddons/models/item/amelioration_tome.json b/src/main/resources/assets/tinkersaddons/models/item/amelioration_tome.json new file mode 100644 index 0000000..9172595 --- /dev/null +++ b/src/main/resources/assets/tinkersaddons/models/item/amelioration_tome.json @@ -0,0 +1,6 @@ +{ + "parent": "item/handheld", + "textures": { + "layer0": "tinkersaddons:items/amelioration_tome" + } +} diff --git a/src/main/resources/assets/tinkersaddons/models/item/amelioration_kit.json b/src/main/resources/assets/tinkersaddons/models/item/diamond_toolkit.json similarity index 50% rename from src/main/resources/assets/tinkersaddons/models/item/amelioration_kit.json rename to src/main/resources/assets/tinkersaddons/models/item/diamond_toolkit.json index c5f2420..9491aa2 100644 --- a/src/main/resources/assets/tinkersaddons/models/item/amelioration_kit.json +++ b/src/main/resources/assets/tinkersaddons/models/item/diamond_toolkit.json @@ -1,6 +1,6 @@ { "parent": "item/handheld", "textures": { - "layer0": "tinkersaddons:items/amelioration_kit" + "layer0": "tinkersaddons:items/diamond_toolkit" } } diff --git a/src/main/resources/assets/tinkersaddons/models/item/ender_toolkit.json b/src/main/resources/assets/tinkersaddons/models/item/ender_toolkit.json new file mode 100644 index 0000000..30fe50b --- /dev/null +++ b/src/main/resources/assets/tinkersaddons/models/item/ender_toolkit.json @@ -0,0 +1,6 @@ +{ + "parent": "item/handheld", + "textures": { + "layer0": "tinkersaddons:items/ender_toolkit" + } +} diff --git a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl1.json b/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl1.json deleted file mode 100644 index 1c35dcf..0000000 --- a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl1.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "parent": "item/handheld", - "textures": { - "layer0": "tinkersaddons:items/extra_modifier_lvl1" - } -} diff --git a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl2.json b/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl2.json deleted file mode 100644 index 44acef9..0000000 --- a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl2.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "parent": "item/handheld", - "textures": { - "layer0": "tinkersaddons:items/extra_modifier_lvl2" - } -} diff --git a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl3.json b/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl3.json deleted file mode 100644 index 4ffef58..0000000 --- a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl3.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "parent": "item/handheld", - "textures": { - "layer0": "tinkersaddons:items/extra_modifier_lvl3" - } -} diff --git a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl4.json b/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl4.json deleted file mode 100644 index ec08a09..0000000 --- a/src/main/resources/assets/tinkersaddons/models/item/extra_modifier_lvl4.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "parent": "item/handheld", - "textures": { - "layer0": "tinkersaddons:items/extra_modifier_lvl4" - } -} diff --git a/src/main/resources/assets/tinkersaddons/models/item/gold_toolkit.json b/src/main/resources/assets/tinkersaddons/models/item/gold_toolkit.json new file mode 100644 index 0000000..058332d --- /dev/null +++ b/src/main/resources/assets/tinkersaddons/models/item/gold_toolkit.json @@ -0,0 +1,6 @@ +{ + "parent": "item/handheld", + "textures": { + "layer0": "tinkersaddons:items/gold_toolkit" + } +} diff --git a/src/main/resources/assets/tinkersaddons/models/item/iron_toolkit.json b/src/main/resources/assets/tinkersaddons/models/item/iron_toolkit.json new file mode 100644 index 0000000..1324409 --- /dev/null +++ b/src/main/resources/assets/tinkersaddons/models/item/iron_toolkit.json @@ -0,0 +1,6 @@ +{ + "parent": "item/handheld", + "textures": { + "layer0": "tinkersaddons:items/iron_toolkit" + } +} diff --git a/src/main/resources/assets/tinkersaddons/textures/items/amelioration_kit.png b/src/main/resources/assets/tinkersaddons/textures/items/amelioration_tome.png old mode 100755 new mode 100644 similarity index 100% rename from src/main/resources/assets/tinkersaddons/textures/items/amelioration_kit.png rename to src/main/resources/assets/tinkersaddons/textures/items/amelioration_tome.png diff --git a/src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl3.png b/src/main/resources/assets/tinkersaddons/textures/items/diamond_toolkit.png old mode 100755 new mode 100644 similarity index 100% rename from src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl3.png rename to src/main/resources/assets/tinkersaddons/textures/items/diamond_toolkit.png diff --git a/src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl4.png b/src/main/resources/assets/tinkersaddons/textures/items/ender_toolkit.png old mode 100755 new mode 100644 similarity index 100% rename from src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl4.png rename to src/main/resources/assets/tinkersaddons/textures/items/ender_toolkit.png diff --git a/src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl2.png b/src/main/resources/assets/tinkersaddons/textures/items/gold_toolkit.png old mode 100755 new mode 100644 similarity index 100% rename from src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl2.png rename to src/main/resources/assets/tinkersaddons/textures/items/gold_toolkit.png diff --git a/src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl1.png b/src/main/resources/assets/tinkersaddons/textures/items/iron_toolkit.png old mode 100755 new mode 100644 similarity index 100% rename from src/main/resources/assets/tinkersaddons/textures/items/extra_modifier_lvl1.png rename to src/main/resources/assets/tinkersaddons/textures/items/iron_toolkit.png From 3cea141d10c999b309c7ee2c4a295da05fbc87e1 Mon Sep 17 00:00:00 2001 From: jiuyaolx <252879950@qq.com> Date: Sun, 26 Mar 2017 16:56:09 +0800 Subject: [PATCH 23/29] Create ZH_CN.lang --- .../assets/tinkersaddons/lang/ZH_CN.lang | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/main/resources/assets/tinkersaddons/lang/ZH_CN.lang diff --git a/src/main/resources/assets/tinkersaddons/lang/ZH_CN.lang b/src/main/resources/assets/tinkersaddons/lang/ZH_CN.lang new file mode 100644 index 0000000..9493f3a --- /dev/null +++ b/src/main/resources/assets/tinkersaddons/lang/ZH_CN.lang @@ -0,0 +1,19 @@ +#Items +item.TinkersAddons.AMELIORATION_TOME.name=修复之书 +item.TinkersAddons.AMELIORATION_TOME.description=§2给与自动修复§r +item.TinkersAddons.IRON_TOOLKIT.name=铁质工具包 +item.TinkersAddons.IRON_TOOLKIT.description=§3给予额外强化次数§r +item.TinkersAddons.GOLD_TOOLKIT.name=黄金工具包 +item.TinkersAddons.GOLD_TOOLKIT.description=§3给予额外强化次数§r +item.TinkersAddons.DIAMOND_TOOLKIT.name=钻石工具包 +item.TinkersAddons.DIAMOND_TOOLKIT.description=§3给予额外强化次数§r +item.TinkersAddons.ENDER_TOOLKIT.name=末影工具包t +item.TinkersAddons.ENDER_TOOLKIT.description=§3给予额外强化次数§r + +#Modifiers +modifier.auto-repair.name=自动修复 +modifier.bonus-modifier_1.name=强化工具包 +modifier.bonus-modifier_2.name=强化工具包 +modifier.bonus-modifier_3.name=强化工具包 +modifier.bonus-modifier_4.name=强化工具包 +modifier.auto-repair.desc=§o自动修复就像以前的日子 §r\n你没有意识到你错过了这个,是吗? From be8825806119e39d03b9b8e96b25df8be973ae83 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Tue, 20 Jun 2017 08:36:51 -0400 Subject: [PATCH 24/29] Make buildscript more generic. --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index e78fac4..355da85 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ repositories { version = mod_version group= "com.oitsjustjose.tinkers_addons" -archivesBaseName = "Tinkers' Addons-1.10.x" +archivesBaseName = "Tinkers' Addons-${forge_version}" minecraft { version = "${minecraft_version}-${forge_version}" From ccff65a05e53e9d0175ea9e961d171f6438c227e Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Tue, 20 Jun 2017 08:38:03 -0400 Subject: [PATCH 25/29] Fix #9 NBT Insensitive Recipes --- .../tinkers_addons/util/Recipes.java | 126 ++++++++++++++++-- 1 file changed, 118 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/util/Recipes.java b/src/main/java/com/oitsjustjose/tinkers_addons/util/Recipes.java index e6164c5..dfbdb08 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/util/Recipes.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/util/Recipes.java @@ -4,9 +4,11 @@ import com.oitsjustjose.tinkers_addons.TinkersAddons; import net.minecraft.init.Blocks; import net.minecraft.init.Items; +import net.minecraft.inventory.InventoryCrafting; import net.minecraft.item.ItemStack; +import net.minecraft.item.crafting.ShapedRecipes; +import net.minecraft.world.World; import net.minecraftforge.fml.common.registry.GameRegistry; -import net.minecraftforge.oredict.ShapedOreRecipe; import net.minecraftforge.oredict.ShapelessOreRecipe; import slimeknights.tconstruct.shared.TinkerCommons; import slimeknights.tconstruct.tools.TinkerMaterials; @@ -21,28 +23,136 @@ public class Recipes public void registerBonusModRecipes() { + ItemStack plateItem = null; + ItemStack centerItem = null; + if (TinkersAddons.modConfig.enableAmelioration) { GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 0), new Object[] { new ItemStack(TinkerCommons.materials, 1, 19), new ItemStack(TinkerCommons.materials, 1, 19), new ItemStack(TinkerCommons.materials, 1, 19), Items.BOOK })); } if (TinkersAddons.modConfig.enableExtraModifierLvl1) { - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 1), new Object[] { "#S#", "###", '#', TinkerTools.largePlate.getItemstackWithMaterial(TinkerMaterials.iron), 'S', TinkerCommons.blockPigIron })); + plateItem = TinkerTools.largePlate.getItemstackWithMaterial(TinkerMaterials.iron); + centerItem = TinkerCommons.blockPigIron; + GameRegistry.addRecipe(new NBTShapedRecipe(3, 2, new ItemStack[] { plateItem, centerItem, plateItem, plateItem, plateItem, plateItem }, new ItemStack(TinkersAddons.modItems.materials, 1, 1))); } if (TinkersAddons.modConfig.enableExtraModifierLvl2) { - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 2), new Object[] { "#S#", "###", '#', TinkerTools.largePlate.getItemstackWithMaterial(TinkerMaterials.ardite), 'S', Blocks.GOLD_BLOCK })); - + plateItem = TinkerTools.largePlate.getItemstackWithMaterial(TinkerMaterials.ardite); + centerItem = new ItemStack(Blocks.GOLD_BLOCK); + GameRegistry.addRecipe(new NBTShapedRecipe(3, 2, new ItemStack[] { plateItem, centerItem, plateItem, plateItem, plateItem, plateItem }, new ItemStack(TinkersAddons.modItems.materials, 1, 2))); } if (TinkersAddons.modConfig.enableExtraModifierLvl3) { - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 3), new Object[] { "#S#", "###", '#', TinkerTools.largePlate.getItemstackWithMaterial(TinkerMaterials.prismarine), 'S', Blocks.DIAMOND_BLOCK })); - + plateItem = TinkerTools.largePlate.getItemstackWithMaterial(TinkerMaterials.prismarine); + centerItem = new ItemStack(Blocks.DIAMOND_BLOCK); + GameRegistry.addRecipe(new NBTShapedRecipe(3, 2, new ItemStack[] { plateItem, centerItem, plateItem, plateItem, plateItem, plateItem }, new ItemStack(TinkersAddons.modItems.materials, 1, 3))); } if (TinkersAddons.modConfig.enableExtraModifierLvl4) { - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(TinkersAddons.modItems.materials, 1, 4), new Object[] { "#S#", "###", '#', TinkerTools.largePlate.getItemstackWithMaterial(TinkerMaterials.obsidian), 'S', Items.ENDER_PEARL })); - + plateItem = TinkerTools.largePlate.getItemstackWithMaterial(TinkerMaterials.obsidian); + centerItem = new ItemStack(Items.ENDER_PEARL); + GameRegistry.addRecipe(new NBTShapedRecipe(3, 2, new ItemStack[] { plateItem, centerItem, plateItem, plateItem, plateItem, plateItem }, new ItemStack(TinkersAddons.modItems.materials, 1, 4))); } } + + /** + * + * @author BloodWorkXGaming : https://github.com/BloodWorkXGaming + * + * An inner class for adding NBT-Sensitive recipes. All credit to BloodWorkXGaming for finding and fixing this bug for me. ORIGINAL CLASS: https://github.com/AllTheMods/OreExcavationIntegration/blob/master/src/main/java/atm/bloodworkxgaming/oei/Crafting/NBTShapedRecipe.java + * + */ + public class NBTShapedRecipe extends ShapedRecipes + { + + public NBTShapedRecipe(int width, int height, ItemStack[] IngredientArray, ItemStack output) + { + super(width, height, IngredientArray, output); + } + + /** + * Used to check if a recipe matches current crafting inventory + */ + @Override + public boolean matches(InventoryCrafting inv, World worldIn) + { + for (int i = 0; i <= 3 - this.recipeWidth; ++i) + { + for (int j = 0; j <= 3 - this.recipeHeight; ++j) + { + if (this.checkMatch(inv, i, j, true)) + { + return true; + } + + if (this.checkMatch(inv, i, j, false)) + { + return true; + } + } + } + + return false; + } + + /** + * Checks if the region of a crafting inventory is match for the recipe. + */ + private boolean checkMatch(InventoryCrafting inventoryCrafting, int horizontal, int vertical, boolean p_77573_4_) + { + for (int i = 0; i < 3; ++i) + { + for (int j = 0; j < 3; ++j) + { + int k = i - horizontal; + int l = j - vertical; + ItemStack itemStackRecipe = null; + + if (k >= 0 && l >= 0 && k < this.recipeWidth && l < this.recipeHeight) + { + if (p_77573_4_) + { + itemStackRecipe = this.recipeItems[this.recipeWidth - k - 1 + l * this.recipeWidth]; + } + else + { + itemStackRecipe = this.recipeItems[k + l * this.recipeWidth]; + } + } + + ItemStack input = inventoryCrafting.getStackInRowAndColumn(i, j); + + if (input != null || itemStackRecipe != null) + { + if ((input == null) != (itemStackRecipe == null)) + { + return false; + } + + if (itemStackRecipe.getItem() != input.getItem()) + { + return false; + } + + if (itemStackRecipe.getMetadata() != 32767 && itemStackRecipe.getMetadata() != input.getMetadata()) + { + return false; + } + + if (itemStackRecipe.hasTagCompound() && input.hasTagCompound()) + { + if (!itemStackRecipe.getTagCompound().equals(input.getTagCompound())) + { + return false; + } + } + } + } + } + + return true; + } + + } } \ No newline at end of file From a95f5578fb884f21a5041b1705e7cfb97b0ed43a Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Tue, 20 Jun 2017 08:38:08 -0400 Subject: [PATCH 26/29] Version Bump --- changelog.md | 3 +++ gradle.properties | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index ebc4c3f..a925c76 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +1.0.6: +* Fixed: Recipes being NBT insensitive. + 1.0.5: * Added: Modifier Item Tooltips * Changed: New Textures!! diff --git a/gradle.properties b/gradle.properties index 95ab385..491ac64 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -mod_version=1.0.5 +mod_version=1.0.6 minecraft_version=1.10.2 forge_version=12.18.2.2125 From e9bbecd0a3f1e3e7736e35ed687b27eb494e2c23 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Tue, 20 Jun 2017 08:40:12 -0400 Subject: [PATCH 27/29] Whoops! --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 355da85..8226235 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ repositories { version = mod_version group= "com.oitsjustjose.tinkers_addons" -archivesBaseName = "Tinkers' Addons-${forge_version}" +archivesBaseName = "Tinkers' Addons-${minecraft_version}" minecraft { version = "${minecraft_version}-${forge_version}" From 7052b44fcb24a0f678af53d03b471e0c4a547dec Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Tue, 11 Jul 2017 23:22:11 -0400 Subject: [PATCH 28/29] Update gitignore --- .gitignore | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0000689..a078032 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,12 @@ .gradle /build/ +/run/ +/out/ +*.DS_STORE +*.iml +*.ipr +*.launch +*.iws # Ignore Gradle GUI config gradle-app.setting @@ -11,4 +18,4 @@ gradle-app.setting .gradletasknamecache # # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 -# gradle/wrapper/gradle-wrapper.properties \ No newline at end of file +# gradle/wrapper/gradle-wrapper.properties From 9de1f3fc5b2e6fa77f7b521dd04a841f2515ba64 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 20 Sep 2017 12:52:55 -0400 Subject: [PATCH 29/29] Fix #16 - I forgot about this being a thing... --- .../oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java b/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java index 4f83927..750d443 100644 --- a/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java +++ b/src/main/java/com/oitsjustjose/tinkers_addons/modifiers/ModAutoRepair.java @@ -91,7 +91,7 @@ public class ModAutoRepair extends Modifier if (player.dimension == -1) return 10000 + rand; if (world.canSeeSky(player.getPosition()) && !world.isRaining()) - if (world.getWorldTime() >= 0 && world.getWorldTime() <= 13000) + if ((world.getWorldTime() % 24000) >= 0 && (world.getWorldTime() % 24000) <= 13000) return 12500 + rand; return 15000 + rand;