
Mikinilsen/MathiasVO053
Members-
Posts
58 -
Joined
-
Last visited
Everything posted by Mikinilsen/MathiasVO053
-
ok... i've read it and tried this: public static void removeFurnaceRecipe() { Map recipes = FurnaceRecipes.smelting().getSmeltingList(); Iterator entries = recipes.entrySet().iterator(); while (entries.hasNext()) { Entry thisEntry = (Entry) entries.next(); if (thisEntry != null && thisEntry.getKey() == Item.getItemFromBlock(Blocks.stone)) { entries.remove(); } } } but i can't get it to work... what am i doing wrong?
-
it doesn't? well i'll read the FurnaceRecipes then
-
hi i'm trying to remove recipes and i can remove vanilla crafting recipes with this: public static void RemoveVanillaCraftingRecipes(){ List<IRecipe> recipes = CraftingManager.getInstance().getRecipeList(); Iterator<IRecipe> Rem = recipes.iterator(); while(Rem.hasNext()){ ItemStack stack = Rem.next().getRecipeOutput(); if(stack != null && stack.getItem() == Items.bread){ Rem.remove(); }else if(stack != null && stack.getItem() == Items.mushroom_stew){ Rem.remove(); }else if(stack != null && stack.getItem() == Items.pumpkin_pie){ Rem.remove(); }else if(stack != null && stack.getItem() == Items.golden_carrot){ Rem.remove(); } } } but i have no idea about how to remove Smelting recipes... i've tried: public static void RemoveVanillaFoodFurnaceRecipes(){ List<IRecipe> recipes = (List<IRecipe>) FurnaceRecipes.smelting().getSmeltingList(); Iterator<IRecipe> Rem1 = recipes.iterator(); while(Rem1.hasNext()){ ItemStack stack = Rem1.next().getRecipeOutput(); if(stack != null && stack.getItem() == Items.getItemFromBlock(Blocks.stone)){ Rem1.remove(); } } }
-
i will.. but eclipse didn't say anything about that import
-
acually idk why... i deleted it and now it works thanks both of you
-
no i'm not
-
**************************** Powered By MCP: http://mcp.ocean-labs.de/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs MCP Data version : unknown **************************** :compileApiJava UP-TO-DATE :processApiResources UP-TO-DATE :apiClasses UP-TO-DATE :sourceMainJava UP-TO-DATE :compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.6 C:\Users\Mathias\Desktop\Forge\build\sources\java\dk\MathiasVO053\RobinsamseCraft\entity\RenderButtMobRed.java:3: error: package com.sun.xml.internal.ws.api does not exist import com.sun.xml.internal.ws.api.ResourceLoader; ^ Note: C:\Users\Mathias\Desktop\Forge\build\sources\java\dk\MathiasVO053\RobinsamseCraft\Biomes\BiomesNumse.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error 1 warning FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileJava'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 8.479 secs
-
hi for some reason when i do Gradlew build in my workspace it won't compile. i've tried with a backup and it compiled fine but the newer version of my workspace won't. anyone knows why this happens?
-
would you come with a comment that i can use or just not comment? please
-
yes, that's why i'm asking for help
-
BTW i've all forgot to say this is for 1.7.10 not 1.8 thanks for the help everybody
-
hmm. now i've tried that but i get an error and idk how to fix it source code package dk.MathiasVO053.RobinsamseCraft.entity; import java.util.Random; import net.minecraft.client.model.ModelBase; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; import net.minecraft.util.ResourceLocation; import dk.MathiasVO053.RobinsamseCraft.Strings; import dk.MathiasVO053.RobinsamseCraft.Model.modelButtMob; public class RenderButtMobRed extends RenderLiving { private static ResourceLocation texture1 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_blue.png"); private static ResourceLocation texture2 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_gray.png"); private static ResourceLocation texture3 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_green.png"); private static ResourceLocation texture4 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_lime.png"); private static ResourceLocation texture5 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_orange.png"); private static ResourceLocation texture6 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_pink.png"); private static ResourceLocation texture7 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_purple.png"); private static ResourceLocation texture8 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_red.png"); private ResourceLocation TE; protected modelButtMob modelEntity; public RenderButtMobRed(ModelBase par1ModelBase, float par2) { super(par1ModelBase, par2); modelEntity = ((modelButtMob) mainModel); } public void renderButt(entityButtMobRed entity, double x, double y, double z, float u, float v){ super.doRender(entity, x, y, z, u, v); } public void doRenderLiving(EntityLiving entityliving, double x, double y, double z, float u, float v){ renderButt((entityButtMobRed)entityliving, x, y, z, u, v); } public void doRender(Entity entity, double x, double y, double z, float u, float v){ renderButt((entityButtMobRed)entity, x, y, z, u, v); } private static void randT(entityButtMobRed entity){ entity.getButtText(); } private boolean l = true; private ResourceLocation p; protected ResourceLocation getEntityTexture(Entity entity){ switch(rand){ case 1: TE = texture1; break; case 2: TE = texture2; break; case 3: TE = texture3; break; case 4: TE = texture4; break; case 5: TE = texture5; break; case 6: TE = texture6; break; case 7: TE = texture7; break; case 8: TE = texture8; break; } return TE; } } package dk.MathiasVO053.RobinsamseCraft.entity; import java.util.Random; import dk.MathiasVO053.RobinsamseCraft.Main; import net.minecraft.entity.EntityAgeable; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIFollowParent; import net.minecraft.entity.ai.EntityAIMate; import net.minecraft.entity.ai.EntityAIPanic; import net.minecraft.entity.ai.EntityAITempt; import net.minecraft.entity.ai.EntityAIWander; import net.minecraft.entity.passive.EntityAnimal; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class entityButtMobRed extends EntityAnimal{ public entityButtMobRed(World world) { super(world); this.setSize(0.5F, 0.4F); this.tasks.addTask(0, new EntityAIWander(this, 0.5D)); this.tasks.addTask(1, new EntityAIPanic(this, 1.0D)); this.tasks.addTask(2, new EntityAITempt(this, 0.7D, Items.beef, false)); this.tasks.addTask(4, new EntityAIFollowParent(this, 1.1D)); this.tasks.addTask(2, new EntityAIMate(this, 1.0D)); } public boolean isAIEnabled(){ return true; } public static Random getButtText(){ Random r; r = new Random(); int rand = r.nextInt(; return r; } protected void applyEntityAttributes(){ super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(16.0F); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.5D); } @Override public EntityAgeable createChild(EntityAgeable age) { return new entityButtMobRed(worldObj); } public boolean isBreedingItem(ItemStack item) { return item != null && item.getItem() == Main.RainbowPowder; } }
-
*and
-
yes i know what i would call basic basic programming(i'm kind of a noob to java) end would you please tell me?
-
i would just like to know where to program it. that's all
-
ok then i don't know where to code it. better?
-
yes. but where do i find that. is it in the entity class, render entity class or Main modded class?
-
yes. I know that about the class names, but i've never really felt a need to do it. and i know about that texture thing. i just don't know how to fix it thanks :3
-
hmm. i'm sorry but i don't think i understand. i've tried it but can't seem to get that working either. source code public class RenderButtMobRed extends RenderLiving { private static ResourceLocation texture1 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_blue.png"); private static ResourceLocation texture2 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_gray.png"); private static ResourceLocation texture3 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_green.png"); private static ResourceLocation texture4 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_lime.png"); private static ResourceLocation texture5 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_orange.png"); private static ResourceLocation texture6 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_pink.png"); private static ResourceLocation texture7 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_purple.png"); private static ResourceLocation texture8 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_red.png"); protected modelButtMob modelEntity; private int randText; private static int rendText(entityButtMobRed entity){ return entity.buttText(); } public RenderButtMobRed(ModelBase par1ModelBase, float par2) { super(par1ModelBase, par2); modelEntity = ((modelButtMob) mainModel); } public void renderButt(entityButtMobRed entity, double x, double y, double z, float u, float v){ super.doRender(entity, x, y, z, u, v); } public void doRenderLiving(EntityLiving entityliving, double x, double y, double z, float u, float v){ renderButt((entityButtMobRed)entityliving, x, y, z, u, v); } public void doRender(Entity entity, double x, double y, double z, float u, float v){ renderButt((entityButtMobRed)entity, x, y, z, u, v); } protected ResourceLocation getEntityTexture(Entity entity){ return this.rendText(entity) } } public class entityButtMobRed extends EntityAnimal{ private static int TE; public entityButtMobRed(World par1World) { super(par1World); this.setSize(0.5F, 0.4F); this.tasks.addTask(0, new EntityAIWander(this, 0.5D)); this.tasks.addTask(1, new EntityAIPanic(this, 1.0D)); this.tasks.addTask(2, new EntityAITempt(this, 0.7D, Items.beef, false)); this.tasks.addTask(4, new EntityAIFollowParent(this, 1.1D)); this.tasks.addTask(2, new EntityAIMate(this, 1.0D)); } public boolean isAIEnabled(){ return true; } protected void applyEntityAttributes(){ super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(16.0F); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.5D); } @Override public EntityAgeable createChild(EntityAgeable age) { return new entityButtMobRed(worldObj); } public boolean isBreedingItem(ItemStack item) { return item != null && item.getItem() == Main.RainbowPowder; } public static int buttText(){ Random r; r = new Random(); int rand = r.nextInt(; switch(rand){ case 1: TE = 1; break; case 2: TE = 2; break; case 3: TE = 3; break; case 4: TE = 4; break; case 5: TE = 5; break; case 6: TE = 6; break; case 7: TE = 7; break; case 8: TE = 8; } return TE; } }
-
hi i'm trying to make a mob with multiple skins, like horse have. but when i try then i can't seem to let it work proper-ly. it just shifts between all the skins. Any suggestions? Source code Render Entity class package dk.MathiasVO053.RobinsamseCraft.entity; import java.util.Random; import net.minecraft.client.model.ModelBase; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; import net.minecraft.util.ResourceLocation; import dk.MathiasVO053.RobinsamseCraft.Strings; import dk.MathiasVO053.RobinsamseCraft.Model.modelButtMob; public class RenderButtMobRed extends RenderLiving { private static ResourceLocation texture1 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_blue.png"); private static ResourceLocation texture2 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_gray.png"); private static ResourceLocation texture3 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_green.png"); private static ResourceLocation texture4 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_lime.png"); private static ResourceLocation texture5 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_orange.png"); private static ResourceLocation texture6 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_pink.png"); private static ResourceLocation texture7 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_purple.png"); private static ResourceLocation texture8 = new ResourceLocation(Strings.MODID + ":" + "textures/model/numse_red.png"); private ResourceLocation TE; protected modelButtMob modelEntity; public RenderButtMobRed(ModelBase par1ModelBase, float par2) { super(par1ModelBase, par2); modelEntity = ((modelButtMob) mainModel); } public void renderButt(entityButtMobRed entity, double x, double y, double z, float u, float v){ super.doRender(entity, x, y, z, u, v); } public void doRenderLiving(EntityLiving entityliving, double x, double y, double z, float u, float v){ renderButt((entityButtMobRed)entityliving, x, y, z, u, v); } public void doRender(Entity entity, double x, double y, double z, float u, float v){ renderButt((entityButtMobRed)entity, x, y, z, u, v); } int p1 = 9; private boolean l = true; private ResourceLocation p; protected ResourceLocation getEntityTexture(Entity entity){ Random r; r = new Random(); int rand = r.nextInt(; switch (rand) { case 1: default: TE = texture1; break; case 2: TE = texture2; break; case 3: TE = texture3; break; case 4: TE = texture4; break; case 5: TE = texture5; break; case 6: TE = texture6; break; case 7: TE = texture7; break; case 8: TE = texture8; } return TE; } }