12232020853
parent
17888004ae
commit
e4f6da71b3
|
@ -1,10 +1,10 @@
|
|||
Epic Proportions Mod ChangeLog
|
||||
|
||||
1.5.9.14
|
||||
- Added Achievement TNT
|
||||
- Changed jtrent238 to PopularMMOS in the mod name [Christmas Addon]
|
||||
- Added Egg Nog [Christmans Addon]
|
||||
- Added Peppermint Bark [Christmas Addon]
|
||||
indev-1.5.9.13
|
||||
- Added more drops to Evil Birthday Present
|
||||
- Fixed Enchantments for Super SuperGirlyGamer Armor and Tools
|
||||
- Fixed Enchantments for Super FuriousDestroyer Armor and Tools
|
||||
- Fixed Enchantments for EpicProportions Armor and Tools
|
||||
|
||||
1.5.9.13
|
||||
- Changed Multitool Classes so it now uses one class the Universal class from my core mod
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,145 @@
|
|||
// Made with Blockbench 3.7.4
|
||||
// Exported for Minecraft version 1.12
|
||||
// Paste this class into your mod and generate all required imports
|
||||
|
||||
|
||||
public class EntitySnowManKing extends ModelBase {
|
||||
private final ModelRenderer bone;
|
||||
private final ModelRenderer snowman;
|
||||
private final ModelRenderer snowman_body;
|
||||
private final ModelRenderer snowman_face;
|
||||
private final ModelRenderer snowman_buttons;
|
||||
private final ModelRenderer snowman_arms;
|
||||
private final ModelRenderer snowman_arm_left;
|
||||
private final ModelRenderer arm_left_2_r1;
|
||||
private final ModelRenderer arm_left_1_r1;
|
||||
private final ModelRenderer arm_left_0_r1;
|
||||
private final ModelRenderer arm_left_r1;
|
||||
private final ModelRenderer snowman_arm_right;
|
||||
private final ModelRenderer arm_right_3_r1;
|
||||
private final ModelRenderer arm_right_2_r1;
|
||||
private final ModelRenderer arm_right_1_r1;
|
||||
private final ModelRenderer arm_right_r1;
|
||||
private final ModelRenderer hat;
|
||||
|
||||
public EntitySnowManKing() {
|
||||
textureWidth = 256;
|
||||
textureHeight = 256;
|
||||
|
||||
bone = new ModelRenderer(this);
|
||||
bone.setRotationPoint(0.0F, 24.0F, 0.0F);
|
||||
|
||||
|
||||
snowman = new ModelRenderer(this);
|
||||
snowman.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
bone.addChild(snowman);
|
||||
|
||||
|
||||
snowman_body = new ModelRenderer(this);
|
||||
snowman_body.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
snowman.addChild(snowman_body);
|
||||
snowman_body.cubeList.add(new ModelBox(snowman_body, 0, 0, -4.0F, -35.0F, -4.0F, 8, 8, 8, 0.0F, false));
|
||||
snowman_body.cubeList.add(new ModelBox(snowman_body, 0, 0, -6.0F, -27.0F, -6.0F, 12, 12, 12, 0.0F, false));
|
||||
snowman_body.cubeList.add(new ModelBox(snowman_body, 0, 0, -8.0F, -16.0F, -8.0F, 16, 16, 16, 0.0F, false));
|
||||
|
||||
snowman_face = new ModelRenderer(this);
|
||||
snowman_face.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
snowman.addChild(snowman_face);
|
||||
snowman_face.cubeList.add(new ModelBox(snowman_face, 0, 0, 2.0F, -30.0F, -5.0F, 1, 1, 1, 0.0F, false));
|
||||
snowman_face.cubeList.add(new ModelBox(snowman_face, 0, 0, -2.0F, -29.0F, -5.0F, 4, 1, 1, 0.0F, false));
|
||||
snowman_face.cubeList.add(new ModelBox(snowman_face, 0, 0, -3.0F, -30.0F, -5.0F, 1, 1, 1, 0.0F, false));
|
||||
snowman_face.cubeList.add(new ModelBox(snowman_face, 0, 0, 1.0F, -32.0F, -5.0F, 1, 1, 1, 0.0F, false));
|
||||
snowman_face.cubeList.add(new ModelBox(snowman_face, 0, 0, -2.0F, -32.0F, -5.0F, 1, 1, 1, 0.0F, false));
|
||||
|
||||
snowman_buttons = new ModelRenderer(this);
|
||||
snowman_buttons.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
snowman.addChild(snowman_buttons);
|
||||
snowman_buttons.cubeList.add(new ModelBox(snowman_buttons, 0, 0, -1.0F, -6.0F, -9.0F, 2, 2, 1, 0.0F, false));
|
||||
snowman_buttons.cubeList.add(new ModelBox(snowman_buttons, 0, 0, -1.0F, -10.0F, -9.0F, 2, 2, 1, 0.0F, false));
|
||||
snowman_buttons.cubeList.add(new ModelBox(snowman_buttons, 0, 0, -1.0F, -14.0F, -9.0F, 2, 2, 1, 0.0F, false));
|
||||
snowman_buttons.cubeList.add(new ModelBox(snowman_buttons, 0, 0, -1.0F, -20.0F, -7.0F, 2, 2, 1, 0.0F, false));
|
||||
snowman_buttons.cubeList.add(new ModelBox(snowman_buttons, 0, 0, -1.0F, -24.0F, -7.0F, 2, 2, 1, 0.0F, false));
|
||||
|
||||
snowman_arms = new ModelRenderer(this);
|
||||
snowman_arms.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
snowman.addChild(snowman_arms);
|
||||
|
||||
|
||||
snowman_arm_left = new ModelRenderer(this);
|
||||
snowman_arm_left.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
snowman_arms.addChild(snowman_arm_left);
|
||||
|
||||
|
||||
arm_left_2_r1 = new ModelRenderer(this);
|
||||
arm_left_2_r1.setRotationPoint(-11.0F, -19.5F, -0.5F);
|
||||
snowman_arm_left.addChild(arm_left_2_r1);
|
||||
setRotationAngle(arm_left_2_r1, 0.0436F, 2.3562F, -0.4363F);
|
||||
arm_left_2_r1.cubeList.add(new ModelBox(arm_left_2_r1, 0, 0, -7.0F, -10.5F, -0.5F, 7, 1, 1, 0.0F, false));
|
||||
|
||||
arm_left_1_r1 = new ModelRenderer(this);
|
||||
arm_left_1_r1.setRotationPoint(-11.0F, -19.5F, -0.5F);
|
||||
snowman_arm_left.addChild(arm_left_1_r1);
|
||||
setRotationAngle(arm_left_1_r1, 0.0F, 1.309F, -0.4363F);
|
||||
arm_left_1_r1.cubeList.add(new ModelBox(arm_left_1_r1, 0, 0, -7.0F, -10.5F, -0.5F, 7, 1, 1, 0.0F, false));
|
||||
|
||||
arm_left_0_r1 = new ModelRenderer(this);
|
||||
arm_left_0_r1.setRotationPoint(-17.0F, -22.5F, 0.5F);
|
||||
snowman_arm_left.addChild(arm_left_0_r1);
|
||||
setRotationAngle(arm_left_0_r1, 0.0F, 0.0F, -0.5236F);
|
||||
arm_left_0_r1.cubeList.add(new ModelBox(arm_left_0_r1, 0, 0, -2.0F, -4.5F, -0.5F, 7, 1, 1, 0.0F, false));
|
||||
|
||||
arm_left_r1 = new ModelRenderer(this);
|
||||
arm_left_r1.setRotationPoint(-13.0F, -19.5F, 0.5F);
|
||||
snowman_arm_left.addChild(arm_left_r1);
|
||||
setRotationAngle(arm_left_r1, 0.0F, 0.0F, 0.7854F);
|
||||
arm_left_r1.cubeList.add(new ModelBox(arm_left_r1, 0, 0, -9.0F, -5.5F, -0.5F, 16, 1, 1, 0.0F, false));
|
||||
|
||||
snowman_arm_right = new ModelRenderer(this);
|
||||
snowman_arm_right.setRotationPoint(26.0F, -1.0F, 8.0F);
|
||||
snowman_arms.addChild(snowman_arm_right);
|
||||
setRotationAngle(snowman_arm_right, 0.0F, 2.7925F, -0.0436F);
|
||||
|
||||
|
||||
arm_right_3_r1 = new ModelRenderer(this);
|
||||
arm_right_3_r1.setRotationPoint(11.7054F, -27.0268F, 1.541F);
|
||||
snowman_arm_right.addChild(arm_right_3_r1);
|
||||
setRotationAngle(arm_right_3_r1, 0.0436F, 2.3562F, -0.4363F);
|
||||
arm_right_3_r1.cubeList.add(new ModelBox(arm_right_3_r1, 0, 0, -5.4189F, -2.237F, 0.4458F, 7, 1, 1, 0.0F, false));
|
||||
|
||||
arm_right_2_r1 = new ModelRenderer(this);
|
||||
arm_right_2_r1.setRotationPoint(11.7054F, -27.0268F, 1.541F);
|
||||
snowman_arm_right.addChild(arm_right_2_r1);
|
||||
setRotationAngle(arm_right_2_r1, 0.0F, 1.309F, -0.4363F);
|
||||
arm_right_2_r1.cubeList.add(new ModelBox(arm_right_2_r1, 0, 0, -5.079F, -2.2861F, -1.2166F, 7, 1, 1, 0.0F, false));
|
||||
|
||||
arm_right_1_r1 = new ModelRenderer(this);
|
||||
arm_right_1_r1.setRotationPoint(11.7054F, -27.0268F, 1.541F);
|
||||
snowman_arm_right.addChild(arm_right_1_r1);
|
||||
setRotationAngle(arm_right_1_r1, 0.0F, 0.0F, -0.5236F);
|
||||
arm_right_1_r1.cubeList.add(new ModelBox(arm_right_1_r1, 0, 0, -6.6063F, -1.9324F, -1.541F, 7, 1, 1, 0.0F, false));
|
||||
|
||||
arm_right_r1 = new ModelRenderer(this);
|
||||
arm_right_r1.setRotationPoint(11.7054F, -27.0268F, 1.541F);
|
||||
snowman_arm_right.addChild(arm_right_r1);
|
||||
setRotationAngle(arm_right_r1, 0.0F, 0.0F, 0.7854F);
|
||||
arm_right_r1.cubeList.add(new ModelBox(arm_right_r1, 0, 0, -2.7624F, -1.0932F, -1.541F, 16, 1, 1, 0.0F, false));
|
||||
|
||||
hat = new ModelRenderer(this);
|
||||
hat.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
snowman.addChild(hat);
|
||||
hat.cubeList.add(new ModelBox(hat, 0, 0, -2.0F, -41.0F, -2.0F, 4, 2, 4, 0.0F, false));
|
||||
hat.cubeList.add(new ModelBox(hat, 0, 0, -6.0F, -37.0F, -6.0F, 12, 2, 12, 0.0F, false));
|
||||
hat.cubeList.add(new ModelBox(hat, 0, 0, -4.0F, -39.0F, -4.0F, 8, 2, 8, 0.0F, false));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
|
||||
bone.render(f5);
|
||||
}
|
||||
|
||||
public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
|
||||
modelRenderer.rotateAngleX = x;
|
||||
modelRenderer.rotateAngleY = y;
|
||||
modelRenderer.rotateAngleZ = z;
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,54 @@
|
|||
// Made with Blockbench 3.7.4
|
||||
// Exported for Minecraft version 1.12
|
||||
// Paste this class into your mod and generate all required imports
|
||||
|
||||
|
||||
public class EntitySnowManKing extends ModelBase {
|
||||
private final ModelRenderer hat;
|
||||
private final ModelRenderer snowman;
|
||||
private final ModelRenderer snowman_body;
|
||||
private final ModelRenderer snowman_face;
|
||||
|
||||
public EntitySnowManKing() {
|
||||
textureWidth = 256;
|
||||
textureHeight = 256;
|
||||
|
||||
hat = new ModelRenderer(this);
|
||||
hat.setRotationPoint(0.0F, 24.0F, 0.0F);
|
||||
hat.cubeList.add(new ModelBox(hat, 0, 0, -2.0F, -41.0F, -2.0F, 4, 2, 4, 0.0F, false));
|
||||
hat.cubeList.add(new ModelBox(hat, 0, 0, -6.0F, -37.0F, -6.0F, 12, 2, 12, 0.0F, false));
|
||||
hat.cubeList.add(new ModelBox(hat, 0, 0, -4.0F, -39.0F, -4.0F, 8, 2, 8, 0.0F, false));
|
||||
|
||||
snowman = new ModelRenderer(this);
|
||||
snowman.setRotationPoint(0.0F, 24.0F, 0.0F);
|
||||
snowman.cubeList.add(new ModelBox(snowman, 0, 0, -1.0F, -1.0F, 0.0F, 1, 1, 1, 0.0F, false));
|
||||
|
||||
snowman_body = new ModelRenderer(this);
|
||||
snowman_body.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
snowman.addChild(snowman_body);
|
||||
snowman_body.cubeList.add(new ModelBox(snowman_body, 0, 0, -4.0F, -35.0F, -4.0F, 8, 8, 8, 0.0F, false));
|
||||
snowman_body.cubeList.add(new ModelBox(snowman_body, 0, 0, -6.0F, -27.0F, -6.0F, 12, 12, 12, 0.0F, false));
|
||||
snowman_body.cubeList.add(new ModelBox(snowman_body, 0, 0, -8.0F, -16.0F, -8.0F, 16, 16, 16, 0.0F, false));
|
||||
|
||||
snowman_face = new ModelRenderer(this);
|
||||
snowman_face.setRotationPoint(0.0F, 0.0F, 0.0F);
|
||||
snowman.addChild(snowman_face);
|
||||
snowman_face.cubeList.add(new ModelBox(snowman_face, 0, 0, 2.0F, -30.0F, -5.0F, 1, 1, 1, 0.0F, false));
|
||||
snowman_face.cubeList.add(new ModelBox(snowman_face, 0, 0, -2.0F, -29.0F, -5.0F, 4, 1, 1, 0.0F, false));
|
||||
snowman_face.cubeList.add(new ModelBox(snowman_face, 0, 0, -3.0F, -30.0F, -5.0F, 1, 1, 1, 0.0F, false));
|
||||
snowman_face.cubeList.add(new ModelBox(snowman_face, 0, 0, 1.0F, -32.0F, -5.0F, 1, 1, 1, 0.0F, false));
|
||||
snowman_face.cubeList.add(new ModelBox(snowman_face, 0, 0, -2.0F, -32.0F, -5.0F, 1, 1, 1, 0.0F, false));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
|
||||
hat.render(f5);
|
||||
snowman.render(f5);
|
||||
}
|
||||
|
||||
public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
|
||||
modelRenderer.rotateAngleX = x;
|
||||
modelRenderer.rotateAngleY = y;
|
||||
modelRenderer.rotateAngleZ = z;
|
||||
}
|
||||
}
|
|
@ -17,7 +17,7 @@ buildscript {
|
|||
|
||||
apply plugin: 'forge'
|
||||
|
||||
version = "1.5.9.14"
|
||||
version = "1.5.9.13"
|
||||
group= "com.jtrent238.epicproportionsmod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = "epicproportionsmod"
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
package com.jtrent238.epicproportions;
|
||||
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.stats.Achievement;
|
||||
|
@ -47,7 +46,6 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
|||
public static Achievement achievementShovelOfEpicProportions;
|
||||
public static Achievement achievementHoeOfEpicProportions;
|
||||
public static Achievement achievementNinjaStar;
|
||||
public static Achievement achievementTnt;
|
||||
|
||||
|
||||
|
||||
|
@ -79,7 +77,7 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
|||
achievementShovelOfEpicProportions = new Achievement("achievement." + modid + ".shovelofepicproportions", "shovelofepicproportions", 1, 9, new ItemStack(ItemLoader.itemShovelOfEpicProportions), (Achievement)achievementinstall).initIndependentStat().registerStat();
|
||||
achievementHoeOfEpicProportions = new Achievement("achievement." + modid + ".hoeofepicproportions", "hoeofepicproportions", 2, 0, new ItemStack(ItemLoader.itemHoeOfEpicProportions), (Achievement)achievementinstall).initIndependentStat().registerStat();
|
||||
achievementNinjaStar = new Achievement("achievement." + modid + ".achievementNinjaStar", "achievementNinjaStar", 2, 1, new ItemStack(ItemLoader.ItemNinjaStar), (Achievement)achievementinstall).initIndependentStat().registerStat();
|
||||
achievementTnt = new Achievement("achievement." + modid + ".tnt", "achievementTnt", 2, 2, new ItemStack(Blocks.tnt), (Achievement)achievementinstall).initIndependentStat().registerStat();
|
||||
|
||||
|
||||
AchievementPage.registerAchievementPage(new AchievementPage(EpicProportionsMod.MODID + EpicProportionsMod.MODVERSION + "Achievements", new Achievement[]{
|
||||
achievementinstall,
|
||||
|
@ -103,8 +101,7 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
|||
achievementAxeOfEpicProportions,
|
||||
achievementShovelOfEpicProportions,
|
||||
achievementHoeOfEpicProportions,
|
||||
achievementNinjaStar,
|
||||
achievementTnt
|
||||
achievementNinjaStar
|
||||
}));
|
||||
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@ public class EpicProportionsMod implements ITweaker
|
|||
@Instance(MODID)
|
||||
public static EpicProportionsMod instance;
|
||||
|
||||
public static final String MODVERSION = "1.5.9.14";
|
||||
public static final String MODVERSION = "indev-1.5.9.14";
|
||||
|
||||
public static final String APIVERSION = "1.0.0.0";
|
||||
public static final String MODNAME = "PopularMMOS EpicProportions Mod";
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
package com.jtrent238.epicproportions.addons.christmas.world.genlayer;
|
||||
|
||||
import net.minecraft.world.WorldType;
|
||||
import net.minecraft.world.gen.layer.GenLayer;
|
||||
import net.minecraft.world.gen.layer.GenLayerVoronoiZoom;
|
||||
import net.minecraft.world.gen.layer.GenLayerZoom;
|
||||
|
||||
public class WinterWonderLandGenLayer extends GenLayer {
|
||||
|
||||
public WinterWonderLandGenLayer(long seed){
|
||||
super(seed);
|
||||
}
|
||||
|
||||
public static GenLayer[] makeTheWorld(long seed, WorldType type){
|
||||
GenLayer biomes = new WinterWonderLandGenLayerBiomes(1L);
|
||||
biomes = new GenLayerZoom(1000L, biomes);
|
||||
biomes = new GenLayerZoom(1001L, biomes);
|
||||
biomes = new GenLayerZoom(1002L, biomes);
|
||||
biomes = new GenLayerZoom(1003L, biomes);
|
||||
biomes = new GenLayerZoom(1004L, biomes);
|
||||
biomes = new GenLayerZoom(1005L, biomes);
|
||||
GenLayer genlayervoronoizoom = new GenLayerVoronoiZoom(10L, biomes);
|
||||
biomes.initWorldGenSeed(seed);
|
||||
genlayervoronoizoom.initWorldGenSeed(seed);
|
||||
return new GenLayer[] {biomes, genlayervoronoizoom};
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] getInts(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_) {
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
package com.jtrent238.epicproportions.addons.christmas.world.genlayer;
|
||||
|
||||
import com.jtrent238.epicproportions.addons.christmas.world.biomes.ModBiomes;
|
||||
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraft.world.gen.layer.GenLayer;
|
||||
import net.minecraft.world.gen.layer.IntCache;
|
||||
|
||||
public class WinterWonderLandGenLayerBiomes extends GenLayer {
|
||||
|
||||
// TODO: spawning with temperatures
|
||||
protected BiomeGenBase[] allowedBiomes = {
|
||||
ModBiomes.winterWonderland,
|
||||
};
|
||||
|
||||
public WinterWonderLandGenLayerBiomes(long seed) {
|
||||
super(seed);
|
||||
}
|
||||
|
||||
public WinterWonderLandGenLayerBiomes(long seed, GenLayer genlayer) {
|
||||
super(seed);
|
||||
this.parent = genlayer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] getInts(int x, int z, int width, int depth) {
|
||||
int[] dest = IntCache.getIntCache(width * depth);
|
||||
for (int dz = 0; dz < depth; dz++) {
|
||||
for (int dx = 0; dx < width; dx++) {
|
||||
this.initChunkSeed(dx + x, dz + z);
|
||||
dest[(dx + dz * width)] = this.allowedBiomes[nextInt(this.allowedBiomes.length)].biomeID;
|
||||
}
|
||||
}
|
||||
return dest;
|
||||
}
|
||||
}
|
|
@ -2,8 +2,6 @@ package com.jtrent238.epicproportions.addons.halloween.entity;
|
|||
|
||||
import java.util.Random;
|
||||
|
||||
import com.sun.media.jfxmedia.logging.Logger;
|
||||
|
||||
import net.minecraft.entity.monster.EntityGolem;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
|
|
|
@ -2,7 +2,6 @@ package com.jtrent238.epicproportions.addons.halloween.entity;
|
|||
|
||||
import java.util.Random;
|
||||
|
||||
import com.sun.media.jfxmedia.logging.Logger;
|
||||
|
||||
import net.minecraft.entity.monster.EntityGolem;
|
||||
import net.minecraft.init.Blocks;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -5,6 +5,7 @@ import com.jtrent238.epicproportions.ItemLoader;
|
|||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
|
@ -64,45 +65,54 @@ public class ItemSuperJenArmor extends ItemArmor{
|
|||
player.addPotionEffect(new PotionEffect(Potion.jump.id, 40));
|
||||
}
|
||||
|
||||
public void onCreated(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
|
||||
public void onCreated(ItemStack stack, World par2World, EntityPlayer par3EntityPlayer)
|
||||
{
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.aquaAffinity, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.blastProtection, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.featherFalling, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fireProtection, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.projectileProtection, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.protection, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.respiration, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.thorns, enchant);
|
||||
stack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
stack.addEnchantment(Enchantment.aquaAffinity, enchant);
|
||||
stack.addEnchantment(Enchantment.blastProtection, enchant);
|
||||
stack.addEnchantment(Enchantment.featherFalling, enchant);
|
||||
stack.addEnchantment(Enchantment.fireProtection, enchant);
|
||||
stack.addEnchantment(Enchantment.projectileProtection, enchant);
|
||||
stack.addEnchantment(Enchantment.protection, enchant);
|
||||
stack.addEnchantment(Enchantment.respiration, enchant);
|
||||
stack.addEnchantment(Enchantment.thorns, enchant);
|
||||
|
||||
}
|
||||
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, stack);
|
||||
if (lvl <= 0) {
|
||||
stack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
stack.addEnchantment(Enchantment.aquaAffinity, enchant);
|
||||
stack.addEnchantment(Enchantment.blastProtection, enchant);
|
||||
stack.addEnchantment(Enchantment.featherFalling, enchant);
|
||||
stack.addEnchantment(Enchantment.fireProtection, enchant);
|
||||
stack.addEnchantment(Enchantment.projectileProtection, enchant);
|
||||
stack.addEnchantment(Enchantment.protection, enchant);
|
||||
stack.addEnchantment(Enchantment.respiration, enchant);
|
||||
stack.addEnchantment(Enchantment.thorns, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
/* public void onUpdate(ItemStack p_77663_1_, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
public void onUpdate(ItemStack stack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
if(hasenchanted == false){
|
||||
p_77663_1_.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.aquaAffinity, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.blastProtection, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.featherFalling, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.fireProtection, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.projectileProtection, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.protection, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.respiration, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.thorns, enchant);
|
||||
this.hasenchanted(true);
|
||||
}
|
||||
|
||||
return;
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, stack);
|
||||
if (lvl <= 0) {
|
||||
stack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
stack.addEnchantment(Enchantment.aquaAffinity, enchant);
|
||||
stack.addEnchantment(Enchantment.blastProtection, enchant);
|
||||
stack.addEnchantment(Enchantment.featherFalling, enchant);
|
||||
stack.addEnchantment(Enchantment.fireProtection, enchant);
|
||||
stack.addEnchantment(Enchantment.projectileProtection, enchant);
|
||||
stack.addEnchantment(Enchantment.protection, enchant);
|
||||
stack.addEnchantment(Enchantment.respiration, enchant);
|
||||
stack.addEnchantment(Enchantment.thorns, enchant);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void hasenchanted(boolean b) {
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
}
|
|
@ -5,6 +5,7 @@ import com.jtrent238.epicproportions.ItemLoader;
|
|||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
|
@ -81,32 +82,42 @@ public class ItemSuperPatArmor extends ItemArmor{
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, stack);
|
||||
if (lvl <= 0) {
|
||||
stack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
stack.addEnchantment(Enchantment.aquaAffinity, enchant);
|
||||
stack.addEnchantment(Enchantment.blastProtection, enchant);
|
||||
stack.addEnchantment(Enchantment.featherFalling, enchant);
|
||||
stack.addEnchantment(Enchantment.fireProtection, enchant);
|
||||
stack.addEnchantment(Enchantment.projectileProtection, enchant);
|
||||
stack.addEnchantment(Enchantment.protection, enchant);
|
||||
stack.addEnchantment(Enchantment.respiration, enchant);
|
||||
stack.addEnchantment(Enchantment.thorns, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
/* public void onUpdate(ItemStack p_77663_1_, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
public void onUpdate(ItemStack stack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
if(hasenchanted == false){
|
||||
p_77663_1_.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.aquaAffinity, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.blastProtection, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.featherFalling, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.fireProtection, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.projectileProtection, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.protection, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.respiration, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.thorns, enchant);
|
||||
this.hasenchanted(true);
|
||||
}
|
||||
|
||||
return;
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, stack);
|
||||
if (lvl <= 0) {
|
||||
stack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
stack.addEnchantment(Enchantment.aquaAffinity, enchant);
|
||||
stack.addEnchantment(Enchantment.blastProtection, enchant);
|
||||
stack.addEnchantment(Enchantment.featherFalling, enchant);
|
||||
stack.addEnchantment(Enchantment.fireProtection, enchant);
|
||||
stack.addEnchantment(Enchantment.projectileProtection, enchant);
|
||||
stack.addEnchantment(Enchantment.protection, enchant);
|
||||
stack.addEnchantment(Enchantment.respiration, enchant);
|
||||
stack.addEnchantment(Enchantment.thorns, enchant);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void hasenchanted(boolean b) {
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -3,11 +3,18 @@
|
|||
*/
|
||||
package com.jtrent238.epicproportions.items.tools;
|
||||
|
||||
import com.jtrent238.epicproportions.ItemLoader;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemHoe;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.Item.ToolMaterial;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
/**
|
||||
* @author trent
|
||||
|
@ -16,7 +23,9 @@ import net.minecraft.item.Item.ToolMaterial;
|
|||
public class itemHoeOfEpicProportions extends ItemHoe{
|
||||
|
||||
private float field_150934_a;
|
||||
|
||||
private static final int enchant = ItemLoader.superenchantlvl;
|
||||
private boolean hasenchanted;
|
||||
|
||||
public itemHoeOfEpicProportions(ToolMaterial EMERALD) {
|
||||
super(EMERALD);
|
||||
this.field_150934_a = 50000.0F;
|
||||
|
@ -34,4 +43,27 @@ public class itemHoeOfEpicProportions extends ItemHoe{
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public void onCreated(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
|
||||
{
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
|
||||
}
|
||||
public void onUsingTick(ItemStack par1ItemStack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,14 +2,24 @@ package com.jtrent238.epicproportions.items.tools;
|
|||
|
||||
import java.util.Set;
|
||||
|
||||
import com.jtrent238.epicproportions.ItemLoader;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemPickaxe;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.Item.ToolMaterial;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class itemPickOfEpicProportions extends ItemPickaxe{
|
||||
|
||||
private static final int enchant = ItemLoader.superenchantlvl;
|
||||
private boolean hasenchanted;
|
||||
|
||||
public itemPickOfEpicProportions(float p_i45333_1_, ToolMaterial EMERALD, Set p_i45333_3_) {
|
||||
super(EMERALD);
|
||||
this.efficiencyOnProperMaterial = 50000.0F;
|
||||
|
@ -27,4 +37,26 @@ public class itemPickOfEpicProportions extends ItemPickaxe{
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public void onUsingTick(ItemStack par1ItemStack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,13 +1,23 @@
|
|||
package com.jtrent238.epicproportions.items.tools;
|
||||
|
||||
import com.jtrent238.epicproportions.ItemLoader;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemSpade;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.Item.ToolMaterial;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class itemShovelOfEpicProportions extends ItemSpade{
|
||||
|
||||
private static final int enchant = ItemLoader.superenchantlvl;
|
||||
private boolean hasenchanted;
|
||||
|
||||
public itemShovelOfEpicProportions(ToolMaterial EMERALD) {
|
||||
super(EMERALD);
|
||||
this.efficiencyOnProperMaterial = 50000.0F;
|
||||
|
@ -25,4 +35,33 @@ public class itemShovelOfEpicProportions extends ItemSpade{
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public void onCreated(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
|
||||
{
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
|
||||
}
|
||||
public void onUsingTick(ItemStack par1ItemStack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ import cpw.mods.fml.relauncher.Side;
|
|||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
|
@ -45,27 +46,29 @@ public class itemSuperJenAxe extends ItemAxe{
|
|||
par1ItemStack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
|
||||
}
|
||||
public void onUsingTick(ItemStack par1ItemStack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
/* public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
if(hasenchanted == false){
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
this.hasenchanted(true);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
private void hasenchanted(boolean b) {
|
||||
|
||||
}*/
|
||||
public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ import com.jtrent238.epicproportions.ItemLoader;
|
|||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemHoe;
|
||||
|
@ -33,24 +34,23 @@ public class itemSuperJenHoe extends ItemHoe{
|
|||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
|
||||
}
|
||||
public void onUsingTick(ItemStack par1ItemStack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
/*public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
if(hasenchanted == false){
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
this.hasenchanted(true);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
private void hasenchanted(boolean b) {
|
||||
|
||||
}*/
|
||||
public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ import cpw.mods.fml.relauncher.Side;
|
|||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
|
@ -50,30 +51,33 @@ public class itemSuperJenMultiTool extends ItemMultiTool {
|
|||
par1ItemStack.addEnchantment(Enchantment.smite, enchant);
|
||||
|
||||
}
|
||||
/**
|
||||
public void onUsingTick(ItemStack par1ItemStack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fireAspect, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.knockback, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.looting, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.smite, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
/*
|
||||
public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
if(hasenchanted == false){
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fireAspect, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.knockback, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.looting, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.smite, enchant);
|
||||
this.hasenchanted(true);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
private void hasenchanted(boolean b) {
|
||||
|
||||
}
|
||||
*/
|
||||
public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fireAspect, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.knockback, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.looting, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.smite, enchant);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -7,6 +7,7 @@ import com.jtrent238.epicproportions.ItemLoader;
|
|||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemPickaxe;
|
||||
|
@ -38,25 +39,25 @@ public class itemSuperJenPick extends ItemPickaxe{
|
|||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
|
||||
}
|
||||
|
||||
public void onUsingTick(ItemStack par1ItemStack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
/* public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
if(hasenchanted == false){
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
this.hasenchanted(true);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
private void hasenchanted(boolean b) {
|
||||
|
||||
}*/
|
||||
public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -5,6 +5,7 @@ import com.jtrent238.epicproportions.ItemLoader;
|
|||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemSpade;
|
||||
|
@ -35,26 +36,27 @@ public class itemSuperJenShovel extends ItemSpade{
|
|||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
|
||||
}
|
||||
public void onUsingTick(ItemStack par1ItemStack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
/* public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
if(hasenchanted == false){
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
this.hasenchanted(true);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
private void hasenchanted(boolean b) {
|
||||
|
||||
}*/
|
||||
public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ import cpw.mods.fml.relauncher.Side;
|
|||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
|
@ -47,27 +48,29 @@ public class itemSuperPatAxe extends ItemAxe{
|
|||
par1ItemStack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
|
||||
}
|
||||
public void onUsingTick(ItemStack par1ItemStack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
/* public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
if(hasenchanted == false){
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
this.hasenchanted(true);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
private void hasenchanted(boolean b) {
|
||||
|
||||
}*/
|
||||
public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ package com.jtrent238.epicproportions.items.tools;
|
|||
|
||||
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemHoe;
|
||||
|
@ -35,24 +36,23 @@ public class itemSuperPatHoe extends ItemHoe{
|
|||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
|
||||
}
|
||||
public void onUsingTick(ItemStack par1ItemStack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
/* public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
if(hasenchanted == false){
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
this.hasenchanted(true);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
private void hasenchanted(boolean b) {
|
||||
|
||||
}*/
|
||||
public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ import cpw.mods.fml.relauncher.Side;
|
|||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
|
@ -50,30 +51,33 @@ public class itemSuperPatMultiTool extends ItemMultiTool {
|
|||
par1ItemStack.addEnchantment(Enchantment.smite, enchant);
|
||||
|
||||
}
|
||||
/**
|
||||
public void onUsingTick(ItemStack par1ItemStack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fireAspect, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.knockback, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.looting, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.smite, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
/*
|
||||
public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
if(hasenchanted == false){
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fireAspect, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.knockback, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.looting, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.smite, enchant);
|
||||
this.hasenchanted(true);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
private void hasenchanted(boolean b) {
|
||||
|
||||
}
|
||||
*/
|
||||
public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fireAspect, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.knockback, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.looting, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.smite, enchant);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -10,6 +10,7 @@ import net.minecraft.item.ItemPickaxe;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item.ToolMaterial;
|
||||
|
@ -38,24 +39,25 @@ public class itemSuperPatPick extends ItemPickaxe{
|
|||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
|
||||
public void onUsingTick(ItemStack par1ItemStack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
/* public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
if(hasenchanted == false){
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
this.hasenchanted(true);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
private void hasenchanted(boolean b) {
|
||||
|
||||
}*/
|
||||
public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ import com.jtrent238.epicproportions.ItemLoader;
|
|||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item.ToolMaterial;
|
||||
|
@ -36,26 +37,27 @@ public class itemSuperPatShovel extends ItemSpade{
|
|||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
|
||||
}
|
||||
public void onUsingTick(ItemStack par1ItemStack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
/*public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
if(hasenchanted == false){
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
this.hasenchanted(true);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
private void hasenchanted(boolean b) {
|
||||
|
||||
}*/
|
||||
public void onUpdate(ItemStack par1ItemStack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, par1ItemStack);
|
||||
if (lvl <= 0) {
|
||||
par1ItemStack.addEnchantment(Enchantment.efficiency, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fortune, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ import com.jtrent238.epicproportions.ItemLoader;
|
|||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
|
@ -82,29 +83,32 @@ public class itemSuperJenSword extends ItemSword
|
|||
par1ItemStack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
}
|
||||
|
||||
/**
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, stack);
|
||||
if (lvl <= 0) {
|
||||
stack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
stack.addEnchantment(Enchantment.fireAspect, enchant);
|
||||
stack.addEnchantment(Enchantment.knockback, enchant);
|
||||
stack.addEnchantment(Enchantment.looting, enchant);
|
||||
stack.addEnchantment(Enchantment.smite, enchant);
|
||||
stack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
/* public void onUpdate(ItemStack p_77663_1_, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
public void onUpdate(ItemStack stack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
if(hasenchanted == false){
|
||||
p_77663_1_.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.fireAspect, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.knockback, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.looting, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.smite, enchant);
|
||||
p_77663_1_.addEnchantment(Enchantment.sharpness, enchant);
|
||||
this.hasenchanted(true);
|
||||
}
|
||||
|
||||
return;
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, stack);
|
||||
if (lvl <= 0) {
|
||||
stack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
stack.addEnchantment(Enchantment.fireAspect, enchant);
|
||||
stack.addEnchantment(Enchantment.knockback, enchant);
|
||||
stack.addEnchantment(Enchantment.looting, enchant);
|
||||
stack.addEnchantment(Enchantment.smite, enchant);
|
||||
stack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void hasenchanted(boolean b) {
|
||||
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
|
|
|
@ -11,6 +11,8 @@ import net.minecraft.block.Block;
|
|||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
|
@ -88,18 +90,32 @@ public class itemSuperPatSword extends ItemSword
|
|||
par1ItemStack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds an enchantment with a desired level on the ItemStack.
|
||||
* @param par1ItemStack
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, stack);
|
||||
if (lvl <= 0) {
|
||||
stack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
stack.addEnchantment(Enchantment.fireAspect, enchant);
|
||||
stack.addEnchantment(Enchantment.knockback, enchant);
|
||||
stack.addEnchantment(Enchantment.looting, enchant);
|
||||
stack.addEnchantment(Enchantment.smite, enchant);
|
||||
stack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
/* public void addEnchantment(Enchantment p_77966_1_, int p_77966_2_, ItemStack par1ItemStack)
|
||||
public void onUpdate(ItemStack stack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fireAspect, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.knockback, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.looting, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.smite, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
}*/
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, stack);
|
||||
if (lvl <= 0) {
|
||||
stack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
stack.addEnchantment(Enchantment.fireAspect, enchant);
|
||||
stack.addEnchantment(Enchantment.knockback, enchant);
|
||||
stack.addEnchantment(Enchantment.looting, enchant);
|
||||
stack.addEnchantment(Enchantment.smite, enchant);
|
||||
stack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@ import com.jtrent238.epicproportions.ItemLoader;
|
|||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
@ -73,18 +75,45 @@ public class itemSwordOfEpicProportions extends ItemSword
|
|||
multimap.put(SharedMonsterAttributes.attackDamage.getAttributeUnlocalizedName(), new AttributeModifier(field_111210_e, "Weapon modifier", (double)this.field_150934_a, 0));
|
||||
return multimap;
|
||||
}
|
||||
/*
|
||||
public void onCreated(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
|
||||
{
|
||||
par1ItemStack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.fireAspect, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.knockback, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.looting, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.smite, enchant);
|
||||
par1ItemStack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
}
|
||||
*/
|
||||
|
||||
public void onCreated(ItemStack stack, World par2World, EntityPlayer par3EntityPlayer)
|
||||
{
|
||||
stack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
stack.addEnchantment(Enchantment.fireAspect, enchant);
|
||||
stack.addEnchantment(Enchantment.knockback, enchant);
|
||||
stack.addEnchantment(Enchantment.looting, enchant);
|
||||
stack.addEnchantment(Enchantment.smite, enchant);
|
||||
stack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
}
|
||||
|
||||
public void onUsingTick(ItemStack stack, EntityPlayer player, int count) {
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, stack);
|
||||
if (lvl <= 0) {
|
||||
stack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
stack.addEnchantment(Enchantment.fireAspect, enchant);
|
||||
stack.addEnchantment(Enchantment.knockback, enchant);
|
||||
stack.addEnchantment(Enchantment.looting, enchant);
|
||||
stack.addEnchantment(Enchantment.smite, enchant);
|
||||
stack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and
|
||||
* update it's contents.
|
||||
*/
|
||||
public void onUpdate(ItemStack stack, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_)
|
||||
{
|
||||
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantment.unbreaking.effectId, stack);
|
||||
if (lvl <= 0) {
|
||||
stack.addEnchantment(Enchantment.unbreaking, enchant);
|
||||
stack.addEnchantment(Enchantment.fireAspect, enchant);
|
||||
stack.addEnchantment(Enchantment.knockback, enchant);
|
||||
stack.addEnchantment(Enchantment.looting, enchant);
|
||||
stack.addEnchantment(Enchantment.smite, enchant);
|
||||
stack.addEnchantment(Enchantment.sharpness, enchant);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean isHeld) {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package com.jtrent238.epicproportions.lib;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.util.logging.Level;
|
||||
|
@ -102,13 +103,15 @@ public class GameLogger {
|
|||
* @param level
|
||||
* @param text
|
||||
*/
|
||||
@SuppressWarnings("resource")
|
||||
public static void writeToFile(Level level, String text) {
|
||||
File file;
|
||||
FileWriter writer;
|
||||
String newLine = System.getProperty("line.separator");
|
||||
try {
|
||||
file = new File(EpicProportionsMod.MODID, EpicProportionsMod.MODID + ".log");
|
||||
|
||||
file.createNewFile(); // if file already exists will do nothing
|
||||
FileOutputStream oFile = new FileOutputStream(file, true);
|
||||
writer = new FileWriter(file, true);
|
||||
writer.write("[" + EpicProportionsMod.MODID + "]" + "[" + level + "]" + " : " + text + newLine);
|
||||
writer.close();
|
||||
|
|
|
@ -82,7 +82,8 @@ public class ModelFred2_0 extends ModelBase
|
|||
setRotation(Head, 0F, 0F, 0F);
|
||||
}
|
||||
|
||||
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
|
||||
|
||||
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
|
||||
{
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
setRotationAngles(f, f1, f2, f3, f4, f5);
|
||||
|
@ -108,4 +109,4 @@ public class ModelFred2_0 extends ModelBase
|
|||
super.setRotationAngles(f, f1, f2, f3, f4, f5, null);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,165 @@
|
|||
//jtrent238's Epic Proportions Mod Lang File
|
||||
//en_US
|
||||
|
||||
//Items
|
||||
item.ItemCandyCane.name=Candy Cane
|
||||
item.ItemCandyCaneIngot.name=Candy Cane Ingot
|
||||
item.ItemChristmasTree.name=Christmas Tree
|
||||
item.ItemStocking_red.name=Red Christmas Stocking
|
||||
item.ItemStocking_green.name=Green Christmas Stocking
|
||||
item.ItemGingerBreadMan.name=Gingerbread Man
|
||||
item.ItemGumDrop.name=Gumdrops
|
||||
item.ItemGingerbreadDoor.name=Gingerbread Door
|
||||
item.ItemBulb.red.name=Red Chistmas Light
|
||||
item.ItemBulb.green.name=Green Christmas Light
|
||||
item.ItemBulb.orange.name=Orange Christmas Light
|
||||
item.ItemBulb.lime.name=Lime Christmas Light
|
||||
item.ItemBulb.lightBlue.name=Light blue Christmas Light
|
||||
item.ItemBulb.white.name=White Christmas Light
|
||||
item.ItemBulb.magenta.name=Magenta Christmas Light
|
||||
item.ItemBulb.purple.name=Purple Christmas Light
|
||||
item.ItemBulb.blue.name=Blue Christmas Light
|
||||
item.ItemBulb.pink.name=Pink Christmas Light
|
||||
item.ItemBulb.yellow.name=Yellow Christmas Light
|
||||
item.ItemBulb.cyan.name=Cyan Christmas Light
|
||||
item.ItemFilament.name=Filament
|
||||
item.ItemFruitCake.name=Fruit Cake
|
||||
item.ItemJingleBells.name=Jingle Bells
|
||||
item.ItemSnowWand.name=Snow Wand
|
||||
item.ItemCandyCaneSword.name=CandyCane Sword
|
||||
item.ItemCandyCanePickaxe.name=CandyCane Pickaxe
|
||||
item.ItemCandyCaneAxe.name=CandyCane Axe
|
||||
item.ItemCandyCaneShovel.name=CandyCane Shovel
|
||||
item.ItemCandyCaneHoe.name=CandyCane Hoe
|
||||
item.ItemCandyCaneHelm.name=CandyCane Helment
|
||||
item.ItemCandyCaneChest.name=CandyCane Chestplate
|
||||
item.ItemCandyCaneLegs.name=CandyCane Leggings
|
||||
item.ItemCandyCaneBoots.name=CandyCane Boots
|
||||
item.ItemGingerBreadHelm.name=Gingerbread Helment
|
||||
item.ItemGingerBreadChest.name=Gingerbread Chestplate
|
||||
item.ItemGingerBreadLegs.name=Gingerbread Leggings
|
||||
item.ItemGingerBreadBoots.name=Gingerbread Boots
|
||||
item.ItemGiantSnowball.name=Giant Snowball
|
||||
item.ItemGingerbreadHousePlacer.name=GingerBread House
|
||||
item.ItemSled.name=Sled
|
||||
item.ItemBulbHolder.name=Bulb Holder
|
||||
item.ItemFrozenIronIngot.name=Frozen Iron Ingot
|
||||
item.ItemFrozenGoldIngot.name=Frozen Gold Ingot
|
||||
item.ItemFrozenEmerald.name=Frozen Emerald
|
||||
item.ItemFrozenDiamond.name=Frozen Diamond
|
||||
item.ItemFrozenCoal.name=Frozen Coal
|
||||
item.ItemFrozenLapis.name=Frozen Lapis
|
||||
item.ItemFrozenRedstone.name=Frozen Redstone
|
||||
item.ItemChristmasPresent.name=Christmas Present
|
||||
item.ItemEggNog.name=Egg Nog
|
||||
item.ItemPepperMintBark.name=Peppermint Bark
|
||||
|
||||
/Weapons & Tools
|
||||
item.ItemGingerBreadSword.name=Gingerbread Sword
|
||||
item.ItemGingerBreadPickaxe.name=Gingerbread Pickaxe
|
||||
item.ItemGingerBreadAxe.name=Gingerbread Axe
|
||||
item.ItemGingerBreadShovel.name=Gingerbread Shovel
|
||||
item.ItemGingerBreadHoe.name=Gingerbread Hoe
|
||||
|
||||
/Armor
|
||||
/Spawn Eggs
|
||||
item.ItemSpawnSanta.name=Spawn Santa
|
||||
item.ItemSpawnGingerBreadMan.name=Spawn Gingerbread Man
|
||||
item.ItemSpawnXmasCapitanCookie.name=Spawn Christmas Captian Cookie
|
||||
item.ItemSpawnXmasPat.name=Spawn Christmas Pat
|
||||
item.ItemSpawnXmasJen.name=Spawn Christmas Jen
|
||||
|
||||
|
||||
//Blocks
|
||||
tile.BlockChristmasPresents_Red.name=Red Christmas Presents
|
||||
tile.BlockChristmasTree.name=Christmas Tree
|
||||
tile.BlockCandyCaneOre.name=CandyCane Ore
|
||||
tile.BlockCandyCane.name=CandyCane Block
|
||||
tile.BlockLights.name=Christmas Lights
|
||||
tile.BlockGingerBread.name=Gingerbread Block
|
||||
tile.BlockFrostedGlass.name=Frosted Glass
|
||||
tile.BlockFrostedGlassPane.name=Frosted Glass Pane
|
||||
tile.BlockBulb.red.name=Red Chistmas Light
|
||||
tile.BlockBulb.green.name=Green Christmas Light
|
||||
tile.BlockBulb.orange.name=Orange Christmas Light
|
||||
tile.BlockBulb.lime.name=Lime Christmas Light
|
||||
tile.BlockBulb.lightBlue.name=Light blue Christmas Light
|
||||
tile.BlockBulb.white.name=White Christmas Light
|
||||
tile.BlockBulb.magenta.name=Magenta Christmas Light
|
||||
tile.BlockBulb.purple.name=Purple Christmas Light
|
||||
tile.BlockBulb.blue.name=Blue Christmas Light
|
||||
tile.BlockBulb.pink.name=Pink Christmas Light
|
||||
tile.BlockBulb.yellow.name=Yellow Christmas Light
|
||||
tile.BlockBulb.cyan.name=Cyan Christmas Light
|
||||
tile.BlockGingerBreadStairs.name=GingerBread Stairs
|
||||
tile.BlockGingerBreadSlab.name=GingerBread Slab
|
||||
tile.BlockGingerBreadCarpet.name=GingerBread Carpet
|
||||
tile.BlockBulb_red.name=Red Chistmas Light [Placeable]
|
||||
tile.BlockBulb_green.name=Green Christmas Light [Placeable]
|
||||
tile.BlockBulb_orange.name=Orange Christmas Light [Placeable]
|
||||
tile.BlockBulb_lime.name=Lime Christmas Light [Placeable]
|
||||
tile.BlockBulb_lightBlue.name=Light blue Christmas Light [Placeable]
|
||||
tile.BlockBulb_white.name=White Christmas Light [Placeable]
|
||||
tile.BlockBulb_magenta.name=Magenta Christmas Light [Placeable]
|
||||
tile.BlockBulb_purple.name=Purple Christmas Light [Placeable]
|
||||
tile.BlockBulb_blue.name=Blue Christmas Light [Placeable]
|
||||
tile.BlockBulb_pink.name=Pink Christmas Light [Placeable]
|
||||
tile.BlockBulb_yellow.name=Yellow Christmas Light [Placeable]
|
||||
tile.BlockBulb_cyan.name=Cyan Christmas Light [Placeable]
|
||||
tile.BlockFrozenIronIngot.name=Frozen Iron Block
|
||||
tile.BlockFrozenGoldIngot.name=Frozen Gold Block
|
||||
tile.BlockFrozenEmerald.name=Frozen Emerald Block
|
||||
tile.BlockFrozenDiamond.name=Frozen Diamond Block
|
||||
tile.BlockFrozenCoal.name=Frozen Coal Block
|
||||
tile.BlockFrozenLapis.name=Frozen Lapis Block
|
||||
tile.BlockFrozenRedstone.name=Frozen Redstone Block
|
||||
tile.BlockFrozenIronIngotOre.name=Frozen Iron Ore
|
||||
tile.BlockFrozenGoldIngotOre.name=Frozen Gold Ore
|
||||
tile.BlockFrozenEmeraldOre.name=Frozen Emerald Ore
|
||||
tile.BlockFrozenDiamondOre.name=Frozen Diamond Ore
|
||||
tile.BlockFrozenCoalOre.name=Frozen Coal Ore
|
||||
tile.BlockFrozenLapisOre.name=Frozen Lapis Ore
|
||||
tile.BlockFrozenRedstoneOre.name=Frozen Redstone Ore
|
||||
tile.BlockFrozenStone.name=Frozen Stone
|
||||
tile.BlockFrozenCobbleStone.name=Frozen CobbleStone
|
||||
tile.BlockChristmasPresent.name=Christmas Presents
|
||||
tile.BlockNorthPole_red.name=North Pole
|
||||
tile.BlockNorthPole_white.name=North Pole
|
||||
|
||||
//Entitys
|
||||
entity.EntitySanta.name=Santa
|
||||
entity.EntityGingerBreadMan.name=Gingerbread Man
|
||||
entity.EntityXmasCaptainCookie.name=Christmas Captian Cookie
|
||||
entity.EntityXmasPat.name=Christmas FuriousDestroyer
|
||||
entity.EntityXmasJen.name=Christmas SuperGirlyGamer
|
||||
|
||||
//Mod Devs And Helpers
|
||||
entity.Entityjtrent238.name=jtrent238
|
||||
|
||||
//Container
|
||||
//Generators
|
||||
//Achievements
|
||||
//Enchantments
|
||||
//Potions
|
||||
|
||||
//ToolTips
|
||||
tooltip.epicproportionsmod_christmas.ItemStocking.texture=I Know Its Horrable,
|
||||
tooltip.epicproportionsmod_christmas.ItemStocking.dealwithit=Deal With It!
|
||||
tooltip.epicproportionsmod_christmas.ItemChristmasPresent.xmas=Merry Christmas!
|
||||
tooltip.epicproportionsmod_christmas.ItemChristmasPresent.inside=I wonder what could be inside?
|
||||
|
||||
//Creative Tabs
|
||||
itemGroup.EpicProportionsMod_Christmas=jtrent238's Epic Proportions Mod Christmas Addon
|
||||
|
||||
//Achievements
|
||||
achievement.JingleBells=Jingle Bells
|
||||
achievement.JingleBells.desc=Ring Jingle Bells
|
||||
achievement.BigSnowBalls=More Snow?
|
||||
achievement.BigSnowBalls.desc=Throw a Big Snowball
|
||||
|
||||
//Stats
|
||||
stat.JingleBellsJingled=Jingle Bells Jingled
|
||||
stat.BigSnowBallsThrown=Big Snowballs Thown
|
||||
|
||||
|
||||
//Misc
|
|
@ -51,8 +51,6 @@ item.ItemFrozenCoal.name=Frozen Coal
|
|||
item.ItemFrozenLapis.name=Frozen Lapis
|
||||
item.ItemFrozenRedstone.name=Frozen Redstone
|
||||
item.ItemChristmasPresent.name=Christmas Present
|
||||
item.ItemEggNog.name=Egg Nog
|
||||
item.ItemPepperMintBark.name=Peppermint Bark
|
||||
|
||||
/Weapons & Tools
|
||||
item.ItemGingerBreadSword.name=Gingerbread Sword
|
||||
|
@ -93,7 +91,7 @@ tile.BlockBulb.yellow.name=Yellow Christmas Light
|
|||
tile.BlockBulb.cyan.name=Cyan Christmas Light
|
||||
tile.BlockGingerBreadStairs.name=GingerBread Stairs
|
||||
tile.BlockGingerBreadSlab.name=GingerBread Slab
|
||||
tile.BlockGingerBreadCarpet.name=GingerBread Carpet
|
||||
tile.BLockGingerBreadCarpet.name=GingerBread Carpet
|
||||
tile.BlockBulb_red.name=Red Chistmas Light [Placeable]
|
||||
tile.BlockBulb_green.name=Green Christmas Light [Placeable]
|
||||
tile.BlockBulb_orange.name=Orange Christmas Light [Placeable]
|
||||
|
@ -123,8 +121,6 @@ tile.BlockFrozenRedstoneOre.name=Frozen Redstone Ore
|
|||
tile.BlockFrozenStone.name=Frozen Stone
|
||||
tile.BlockFrozenCobbleStone.name=Frozen CobbleStone
|
||||
tile.BlockChristmasPresent.name=Christmas Presents
|
||||
tile.BlockNorthPole_red.name=North Pole
|
||||
tile.BlockNorthPole_white.name=North Pole
|
||||
|
||||
//Entitys
|
||||
entity.EntitySanta.name=Santa
|
||||
|
|
Loading…
Reference in New Issue