Reformatting, updating, etc
This commit is contained in:
parent
d4bc1d32cf
commit
c950cbd481
22 changed files with 242 additions and 229 deletions
|
|
@ -37,7 +37,7 @@ minecraft {
|
|||
dependencies {
|
||||
deobfCompile "mezz.jei:jei_${minecraft_version}:${jei_version}"
|
||||
deobfCompile "slimeknights.mantle:Mantle:1.12-${mantle_version}"
|
||||
deobfCompile "slimeknights:TConstruct:1.12-${ticon_version}"
|
||||
deobfCompile "slimeknights:TConstruct:${minecraft_version}-${ticon_version}"
|
||||
}
|
||||
|
||||
task deobfJar(type: Jar) {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
mod_version=1.0.7
|
||||
minecraft_version=1.12.1
|
||||
forge_version=14.22.0.2467
|
||||
mappings_version=snapshot_20170626
|
||||
minecraft_version=1.12.2
|
||||
forge_version=14.23.3.2670
|
||||
mappings_version=snapshot_20180420
|
||||
|
||||
jei_version=4.7.8.92
|
||||
mantle_version=1.3.1.21
|
||||
ticon_version=2.7.3.30
|
||||
jei_version=4.9.1.165
|
||||
mantle_version=1.3.2.25
|
||||
ticon_version=2.9.1.70
|
||||
|
|
|
|||
|
|
@ -4,38 +4,33 @@ import com.oitsjustjose.tinkers_addons.lib.Config;
|
|||
import com.oitsjustjose.tinkers_addons.lib.Lib;
|
||||
import com.oitsjustjose.tinkers_addons.lib.LibItems;
|
||||
import com.oitsjustjose.tinkers_addons.lib.LibModifiers;
|
||||
import com.oitsjustjose.tinkers_addons.modifiers.ModAutoRepair;
|
||||
|
||||
import com.oitsjustjose.tinkers_addons.util.ClientRegistry;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import net.minecraftforge.fml.common.Mod.EventHandler;
|
||||
import net.minecraftforge.fml.common.Mod.Instance;
|
||||
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;
|
||||
|
||||
@Mod(modid = Lib.MODID, name = Lib.NAME, version = Lib.VERSION, guiFactory = Lib.GUI_FACTORY, dependencies = "required-after:tconstruct@[1.12-2.7.3.30,);" + "required-after:mantle@[1.12-1.3.1.21,)")
|
||||
public class TinkersAddons
|
||||
{
|
||||
@Instance(Lib.MODID)
|
||||
public static TinkersAddons instance;
|
||||
@Instance(Lib.MODID)
|
||||
public static TinkersAddons instance;
|
||||
|
||||
public static Config modConfig;
|
||||
public static LibItems modItems;
|
||||
public static LibModifiers modModifiers;
|
||||
public static ClientRegistry clientRegistry;
|
||||
public static Config modConfig;
|
||||
public static LibItems modItems;
|
||||
public static LibModifiers modModifiers;
|
||||
public static ClientRegistry clientRegistry;
|
||||
|
||||
@EventHandler
|
||||
public void preInit(FMLPreInitializationEvent event)
|
||||
{
|
||||
modConfig = new Config(event.getSuggestedConfigurationFile());
|
||||
MinecraftForge.EVENT_BUS.register(modConfig);
|
||||
clientRegistry = new ClientRegistry();
|
||||
MinecraftForge.EVENT_BUS.register(clientRegistry);
|
||||
modItems = new LibItems();
|
||||
modModifiers = new LibModifiers();
|
||||
}
|
||||
@EventHandler
|
||||
public void preInit(FMLPreInitializationEvent event)
|
||||
{
|
||||
modConfig = new Config(event.getSuggestedConfigurationFile());
|
||||
MinecraftForge.EVENT_BUS.register(modConfig);
|
||||
clientRegistry = new ClientRegistry();
|
||||
MinecraftForge.EVENT_BUS.register(clientRegistry);
|
||||
modItems = new LibItems();
|
||||
modModifiers = new LibModifiers();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,10 +1,7 @@
|
|||
package com.oitsjustjose.tinkers_addons.gui;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import com.oitsjustjose.tinkers_addons.TinkersAddons;
|
||||
import com.oitsjustjose.tinkers_addons.lib.Lib;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraftforge.common.config.ConfigElement;
|
||||
|
|
@ -12,6 +9,8 @@ import net.minecraftforge.common.config.Configuration;
|
|||
import net.minecraftforge.fml.client.IModGuiFactory;
|
||||
import net.minecraftforge.fml.client.config.GuiConfig;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
public class ConfigGUI extends GuiConfig
|
||||
{
|
||||
public ConfigGUI(GuiScreen guiScreen)
|
||||
|
|
|
|||
|
|
@ -1,14 +1,9 @@
|
|||
package com.oitsjustjose.tinkers_addons.items;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.oitsjustjose.tinkers_addons.TinkersAddons;
|
||||
import com.oitsjustjose.tinkers_addons.lib.Lib;
|
||||
|
||||
import com.oitsjustjose.tinkers_addons.util.ClientRegistry;
|
||||
import net.minecraft.client.util.ITooltipFlag;
|
||||
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.IStringSerializable;
|
||||
|
|
@ -17,12 +12,12 @@ import net.minecraft.util.ResourceLocation;
|
|||
import net.minecraft.util.text.translation.I18n;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.fml.common.registry.ForgeRegistries;
|
||||
import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import slimeknights.tconstruct.library.TinkerRegistry;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.List;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class ItemModifier extends Item
|
||||
|
|
@ -40,7 +35,9 @@ public class ItemModifier extends Item
|
|||
private void registerModels()
|
||||
{
|
||||
for (int i = 0; i < EnumType.values().length; i++)
|
||||
{
|
||||
TinkersAddons.clientRegistry.register(new ItemStack(this, 1, i), new ResourceLocation(Lib.MODID, EnumType.byMetadata(i).getName()), "inventory");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -60,8 +57,12 @@ public class ItemModifier extends Item
|
|||
public void getSubItems(CreativeTabs tab, NonNullList<ItemStack> items)
|
||||
{
|
||||
if (this.isInCreativeTab(tab))
|
||||
{
|
||||
for (int i = 0; i < EnumType.values().length; i++)
|
||||
{
|
||||
items.add(new ItemStack(this, 1, i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -80,6 +81,15 @@ public class ItemModifier extends Item
|
|||
ENDER_TOOLKIT(4, "ender_toolkit");
|
||||
|
||||
private static final EnumType[] META_LOOKUP = new EnumType[values().length];
|
||||
|
||||
static
|
||||
{
|
||||
for (EnumType type : values())
|
||||
{
|
||||
META_LOOKUP[type.getMetadata()] = type;
|
||||
}
|
||||
}
|
||||
|
||||
private final int meta;
|
||||
private final String serializedName;
|
||||
private final String unlocalizedName;
|
||||
|
|
@ -91,16 +101,6 @@ public class ItemModifier extends Item
|
|||
this.unlocalizedName = name;
|
||||
}
|
||||
|
||||
public int getMetadata()
|
||||
{
|
||||
return this.meta;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
return this.unlocalizedName;
|
||||
}
|
||||
|
||||
public static EnumType byMetadata(int meta)
|
||||
{
|
||||
if (meta < 0 || meta >= META_LOOKUP.length)
|
||||
|
|
@ -111,17 +111,19 @@ public class ItemModifier extends Item
|
|||
return META_LOOKUP[meta];
|
||||
}
|
||||
|
||||
public int getMetadata()
|
||||
{
|
||||
return this.meta;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
return this.unlocalizedName;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return this.serializedName;
|
||||
}
|
||||
|
||||
static
|
||||
{
|
||||
for (EnumType type : values())
|
||||
{
|
||||
META_LOOKUP[type.getMetadata()] = type;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,60 +1,62 @@
|
|||
package com.oitsjustjose.tinkers_addons.lib;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import net.minecraftforge.common.config.Property;
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
import net.minecraftforge.common.config.Property;
|
||||
import net.minecraftforge.fml.client.event.ConfigChangedEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class Config
|
||||
{
|
||||
public Configuration config;
|
||||
public Configuration config;
|
||||
|
||||
public boolean enableAmelioration;
|
||||
public boolean enableExtraModifierLvl1;
|
||||
public boolean enableExtraModifierLvl2;
|
||||
public boolean enableExtraModifierLvl3;
|
||||
public boolean enableExtraModifierLvl4;
|
||||
public boolean enableAmelioration;
|
||||
public boolean enableExtraModifierLvl1;
|
||||
public boolean enableExtraModifierLvl2;
|
||||
public boolean enableExtraModifierLvl3;
|
||||
public boolean enableExtraModifierLvl4;
|
||||
|
||||
public Config(File file)
|
||||
{
|
||||
config = new Configuration(file);
|
||||
initialize();
|
||||
}
|
||||
public Config(File file)
|
||||
{
|
||||
config = new Configuration(file);
|
||||
initialize();
|
||||
}
|
||||
|
||||
void initialize()
|
||||
{
|
||||
Property property;
|
||||
void initialize()
|
||||
{
|
||||
Property property;
|
||||
|
||||
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();
|
||||
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 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(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(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();
|
||||
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(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();
|
||||
}
|
||||
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();
|
||||
|
||||
@SubscribeEvent
|
||||
public void onConfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event)
|
||||
{
|
||||
if (event.getModID().equalsIgnoreCase(Lib.MODID))
|
||||
initialize();
|
||||
}
|
||||
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();
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onConfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event)
|
||||
{
|
||||
if (event.getModID().equalsIgnoreCase(Lib.MODID))
|
||||
{
|
||||
initialize();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,11 @@
|
|||
package com.oitsjustjose.tinkers_addons.lib;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
public class Lib
|
||||
{
|
||||
public static final String MODID = "tinkersaddons";
|
||||
public static final String NAME = "Tinkers' Addons";
|
||||
public static final String VERSION = "@VERSION@";
|
||||
public static final String GUI_FACTORY = "com.oitsjustjose.tinkers_addons.gui.ConfigGUI$GUIFactory";
|
||||
public static final String MODID = "tinkersaddons";
|
||||
public static final String NAME = "Tinkers' Addons";
|
||||
public static final String VERSION = "@VERSION@";
|
||||
public static final String GUI_FACTORY = "com.oitsjustjose.tinkers_addons.gui.ConfigGUI$GUIFactory";
|
||||
|
||||
public static final String TAG_AUTO_REPAIR_COOLDOWN = "Last Auto-Repair";
|
||||
public static final String TAG_AUTO_REPAIR_COOLDOWN = "Last Auto-Repair";
|
||||
}
|
||||
|
|
@ -1,15 +1,14 @@
|
|||
package com.oitsjustjose.tinkers_addons.lib;
|
||||
|
||||
import com.oitsjustjose.tinkers_addons.items.ItemModifier;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
public class LibItems
|
||||
{
|
||||
public Item MODIFIERS;
|
||||
public Item MODIFIERS;
|
||||
|
||||
public LibItems()
|
||||
{
|
||||
MODIFIERS = new ItemModifier();
|
||||
}
|
||||
public LibItems()
|
||||
{
|
||||
MODIFIERS = new ItemModifier();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,38 +3,37 @@ package com.oitsjustjose.tinkers_addons.lib;
|
|||
import com.oitsjustjose.tinkers_addons.TinkersAddons;
|
||||
import com.oitsjustjose.tinkers_addons.modifiers.ModAutoRepair;
|
||||
import com.oitsjustjose.tinkers_addons.modifiers.ModExtraModifier;
|
||||
|
||||
import slimeknights.tconstruct.library.modifiers.Modifier;
|
||||
|
||||
public class LibModifiers
|
||||
{
|
||||
public Modifier auto_repair;
|
||||
public Modifier extra_modifier_lvl1;
|
||||
public Modifier extra_modifier_lvl2;
|
||||
public Modifier extra_modifier_lvl3;
|
||||
public Modifier extra_modifier_lvl4;
|
||||
public Modifier auto_repair;
|
||||
public Modifier extra_modifier_lvl1;
|
||||
public Modifier extra_modifier_lvl2;
|
||||
public Modifier extra_modifier_lvl3;
|
||||
public Modifier extra_modifier_lvl4;
|
||||
|
||||
public LibModifiers()
|
||||
{
|
||||
if (TinkersAddons.modConfig.enableAmelioration)
|
||||
{
|
||||
auto_repair = new ModAutoRepair();
|
||||
}
|
||||
if (TinkersAddons.modConfig.enableExtraModifierLvl1)
|
||||
{
|
||||
extra_modifier_lvl1 = new ModExtraModifier(1);
|
||||
}
|
||||
if (TinkersAddons.modConfig.enableExtraModifierLvl2)
|
||||
{
|
||||
extra_modifier_lvl2 = new ModExtraModifier(2);
|
||||
}
|
||||
if (TinkersAddons.modConfig.enableExtraModifierLvl3)
|
||||
{
|
||||
extra_modifier_lvl3 = new ModExtraModifier(3);
|
||||
}
|
||||
if (TinkersAddons.modConfig.enableExtraModifierLvl4)
|
||||
{
|
||||
extra_modifier_lvl4 = new ModExtraModifier(4);
|
||||
}
|
||||
}
|
||||
public LibModifiers()
|
||||
{
|
||||
if (TinkersAddons.modConfig.enableAmelioration)
|
||||
{
|
||||
auto_repair = new ModAutoRepair();
|
||||
}
|
||||
if (TinkersAddons.modConfig.enableExtraModifierLvl1)
|
||||
{
|
||||
extra_modifier_lvl1 = new ModExtraModifier(1);
|
||||
}
|
||||
if (TinkersAddons.modConfig.enableExtraModifierLvl2)
|
||||
{
|
||||
extra_modifier_lvl2 = new ModExtraModifier(2);
|
||||
}
|
||||
if (TinkersAddons.modConfig.enableExtraModifierLvl3)
|
||||
{
|
||||
extra_modifier_lvl3 = new ModExtraModifier(3);
|
||||
}
|
||||
if (TinkersAddons.modConfig.enableExtraModifierLvl4)
|
||||
{
|
||||
extra_modifier_lvl4 = new ModExtraModifier(4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +1,7 @@
|
|||
package com.oitsjustjose.tinkers_addons.modifiers;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.oitsjustjose.tinkers_addons.TinkersAddons;
|
||||
import com.oitsjustjose.tinkers_addons.lib.Lib;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
|
@ -20,6 +17,8 @@ import slimeknights.tconstruct.library.tools.ToolCore;
|
|||
import slimeknights.tconstruct.library.utils.TagUtil;
|
||||
import slimeknights.tconstruct.library.utils.ToolHelper;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class ModAutoRepair extends Modifier
|
||||
{
|
||||
public ModAutoRepair()
|
||||
|
|
@ -46,19 +45,27 @@ public class ModAutoRepair extends Modifier
|
|||
public void onUpdate(PlayerEvent event)
|
||||
{
|
||||
if (event.getEntityPlayer() == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
EntityPlayer player = event.getEntityPlayer();
|
||||
ArrayList<ItemStack> tinkersTools = new ArrayList<ItemStack>();
|
||||
int autoRepairLevel;
|
||||
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)
|
||||
{
|
||||
autoRepairLevel = 0;
|
||||
|
|
@ -91,10 +98,16 @@ public class ModAutoRepair extends Modifier
|
|||
World world = player.getEntityWorld();
|
||||
int rand = world.rand.nextInt(999);
|
||||
if (player.dimension == -1)
|
||||
{
|
||||
return 10000 + rand;
|
||||
}
|
||||
if (world.canSeeSky(player.getPosition()) && !world.isRaining())
|
||||
{
|
||||
if ((world.getWorldTime() % 24000) >= 0 && (world.getWorldTime() % 24000) <= 13000)
|
||||
{
|
||||
return 12500 + rand;
|
||||
}
|
||||
}
|
||||
|
||||
return 15000 + rand;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package com.oitsjustjose.tinkers_addons.modifiers;
|
||||
|
||||
import com.oitsjustjose.tinkers_addons.TinkersAddons;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import slimeknights.tconstruct.library.modifiers.Modifier;
|
||||
|
|
@ -11,25 +10,25 @@ import slimeknights.tconstruct.library.utils.TagUtil;
|
|||
|
||||
public class ModExtraModifier extends Modifier
|
||||
{
|
||||
public ModExtraModifier(int level)
|
||||
{
|
||||
super("bonus-modifier_" + level);
|
||||
this.addAspects(new ModifierAspect.SingleAspect(this), new ModifierAspect.DataAspect(this, 0x8cf4e2));
|
||||
this.addItem(new ItemStack(TinkersAddons.modItems.MODIFIERS, 1, level), 1, 1);
|
||||
}
|
||||
public ModExtraModifier(int level)
|
||||
{
|
||||
super("bonus-modifier_" + level);
|
||||
this.addAspects(new ModifierAspect.SingleAspect(this), new ModifierAspect.DataAspect(this, 0x8cf4e2));
|
||||
this.addItem(new ItemStack(TinkersAddons.modItems.MODIFIERS, 1, level), 1, 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isHidden()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean isHidden()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyEffect(NBTTagCompound rootCompound, NBTTagCompound modifierTag)
|
||||
{
|
||||
ToolNBT data = TagUtil.getToolStats(rootCompound);
|
||||
data.modifiers++;
|
||||
@Override
|
||||
public void applyEffect(NBTTagCompound rootCompound, NBTTagCompound modifierTag)
|
||||
{
|
||||
ToolNBT data = TagUtil.getToolStats(rootCompound);
|
||||
data.modifiers++;
|
||||
|
||||
TagUtil.setToolTag(rootCompound, data.get());
|
||||
}
|
||||
TagUtil.setToolTag(rootCompound, data.get());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,31 +1,30 @@
|
|||
package com.oitsjustjose.tinkers_addons.util;
|
||||
|
||||
import com.oitsjustjose.tinkers_addons.lib.Lib;
|
||||
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);
|
||||
private static Logger LOGGER = LogManager.getLogger(Lib.MODID);
|
||||
|
||||
public static void warn(String msg)
|
||||
{
|
||||
LOGGER.warn(msg);
|
||||
}
|
||||
public static void warn(String msg)
|
||||
{
|
||||
LOGGER.warn(msg);
|
||||
}
|
||||
|
||||
public static void error(String msg)
|
||||
{
|
||||
LOGGER.error(msg);
|
||||
}
|
||||
public static void error(String msg)
|
||||
{
|
||||
LOGGER.error(msg);
|
||||
}
|
||||
|
||||
public static void info(String msg)
|
||||
{
|
||||
LOGGER.info(msg);
|
||||
}
|
||||
public static void info(String msg)
|
||||
{
|
||||
LOGGER.info(msg);
|
||||
}
|
||||
|
||||
public static void debug(String msg)
|
||||
{
|
||||
LOGGER.debug(msg);
|
||||
}
|
||||
public static void debug(String msg)
|
||||
{
|
||||
LOGGER.debug(msg);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "tinkersaddons:items/amelioration_tome"
|
||||
}
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "tinkersaddons:items/amelioration_tome"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "tinkersaddons:items/diamond_toolkit"
|
||||
}
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "tinkersaddons:items/diamond_toolkit"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "tinkersaddons:items/ender_toolkit"
|
||||
}
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "tinkersaddons:items/ender_toolkit"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "tinkersaddons:items/gold_toolkit"
|
||||
}
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "tinkersaddons:items/gold_toolkit"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "tinkersaddons:items/iron_toolkit"
|
||||
}
|
||||
"parent": "item/handheld",
|
||||
"textures": {
|
||||
"layer0": "tinkersaddons:items/iron_toolkit"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,9 @@
|
|||
"type": "minecraft:item_nbt",
|
||||
"item": "tconstruct:large_plate",
|
||||
"data": 0,
|
||||
"nbt": { "Material": "prismarine" }
|
||||
"nbt": {
|
||||
"Material": "prismarine"
|
||||
}
|
||||
},
|
||||
"I": {
|
||||
"item": "minecraft:diamond_block"
|
||||
|
|
|
|||
|
|
@ -10,7 +10,9 @@
|
|||
"type": "minecraft:item_nbt",
|
||||
"item": "tconstruct:large_plate",
|
||||
"data": 0,
|
||||
"nbt": { "Material": "obsidian" }
|
||||
"nbt": {
|
||||
"Material": "obsidian"
|
||||
}
|
||||
},
|
||||
"I": {
|
||||
"item": "minecraft:ender_pearl"
|
||||
|
|
|
|||
|
|
@ -10,7 +10,9 @@
|
|||
"type": "minecraft:item_nbt",
|
||||
"item": "tconstruct:large_plate",
|
||||
"data": 0,
|
||||
"nbt": { "Material": "ardite" }
|
||||
"nbt": {
|
||||
"Material": "ardite"
|
||||
}
|
||||
},
|
||||
"I": {
|
||||
"item": "minecraft:gold_block"
|
||||
|
|
|
|||
|
|
@ -10,7 +10,9 @@
|
|||
"type": "minecraft:item_nbt",
|
||||
"item": "tconstruct:large_plate",
|
||||
"data": 0,
|
||||
"nbt": { "Material": "iron" }
|
||||
"nbt": {
|
||||
"Material": "iron"
|
||||
}
|
||||
},
|
||||
"I": {
|
||||
"item": "tconstruct:metal",
|
||||
|
|
|
|||
|
|
@ -1,16 +1,18 @@
|
|||
[
|
||||
{
|
||||
"modid": "TinkersAddons",
|
||||
"name": "Tinkers' Addons",
|
||||
"description": "Adding back old modifiers to Tinkers' Construct 2.0",
|
||||
"version": "${version}",
|
||||
"mcversion": "${mcversion}",
|
||||
"url": "",
|
||||
"updateUrl": "",
|
||||
"authorList": ["oitsjustjose"],
|
||||
"credits": "",
|
||||
"logoFile": "",
|
||||
"screenshots": [],
|
||||
"dependencies": []
|
||||
}
|
||||
{
|
||||
"modid": "TinkersAddons",
|
||||
"name": "Tinkers' Addons",
|
||||
"description": "Adding back old modifiers to Tinkers' Construct 2.0",
|
||||
"version": "${version}",
|
||||
"mcversion": "${mcversion}",
|
||||
"url": "",
|
||||
"updateUrl": "",
|
||||
"authorList": [
|
||||
"oitsjustjose"
|
||||
],
|
||||
"credits": "",
|
||||
"logoFile": "",
|
||||
"screenshots": [],
|
||||
"dependencies": []
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue