
Jdb100
Members-
Posts
223 -
Joined
-
Last visited
Everything posted by Jdb100
-
i only now the answer to the biome one which is in the GenLayer file so yes if you made a custom GenLayer you could make floating islands and underground biomes but i don't know how to implement the new genlayeer without a dimension or changing base classes.
-
I don't think it is your code i think it is just your computer is laggy so packets start building up.
-
yesterday my mod was working i didn't make any changes and when i tried opening it i get this error
-
can you post your main mod file
-
that what i see, i had this happen to me before and just reinstalling forge worked.
-
looks like your missing a class your best best is to copy all your files then re install forge
-
it seems like you are trying to use a none existent enum armor
-
add information to an item without metadata or another item?
Jdb100 posted a topic in Modder Support
like the title says i have an item and a tileentity to add the info to the item i just don't know how to add the info to the item. I think the best way might to be to add them using a hashmap? -
ya works like a charm for everyone else who needs help this is what i did and it worked (thanks to Mazetar he did the whole thing) package net.Dungeon; import java.util.EnumSet; import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.common.ITickHandler; import cpw.mods.fml.common.TickType; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.gui.GuiIngame; import net.minecraft.client.gui.GuiScreen; public class DungeonTickHandler implements ITickHandler { Minecraft mc = Minecraft.getMinecraft(); @Override public void tickStart(EnumSet<TickType> type, Object... tickData) { // TODO Auto-generated method stub } @Override public EnumSet<TickType> ticks() { // TODO Auto-generated method stub return EnumSet.of(TickType.RENDER, TickType.CLIENT); } @Override public String getLabel() { // TODO Auto-generated method stub return "Dungeon TickHandler"; } @Override public void tickEnd(EnumSet<TickType> type, Object... tickData) { // TODO Auto-generated method stub if(type.equals(EnumSet.of(TickType.RENDER))) { onRenderTick(); } else if(type.equals(EnumSet.of(TickType.CLIENT))) { GuiScreen guiScreen = this.mc.currentScreen; if(guiScreen == null) { onTickInGame(); } else { onTickInGUI(guiScreen); } } } private void onTickInGUI(GuiScreen guiScreen) { // TODO Auto-generated method stub } private void onTickInGame() { // TODO Auto-generated method stub } private void onRenderTick() { // TODO Auto-generated method stub mc.fontRenderer.drawStringWithShadow("Dungeon Tokens : " + Dungeon.token, 0, 0, 16777215); mc.fontRenderer.drawStringWithShadow("Dungeon Level : " + Dungeon.manalevel, 0, 10, 16777215); } } then in your @mod class add DungeonTickHandler tickhandler = new DungeonTickHandler(); @Init public void load(FMLInitializationEvent event) { TickRegistry.registerTickHandler(tickhandler, Side.CLIENT); }
-
FacePalmed so hard there! I know this sounds stupid but i actually know quite a bit in java and after looking at that i just can't think how i forgot that i think it is becuase i was doing a bunch of ints before so they looked like public int whatever;
-
That doesn't fix it sadly and forge can break one time i was missing the gameregistry class right after a fresh install
-
This should help you http://www.minecraftforge.net/forum/index.php/topic,5379.msg29348.html#msg29348
-
I assume that you already have it spawning in the new dimension so all you have to do is delete and it will still work GameRegistry.addBiome(biome)
-
I crash every time i try and use this 2013-02-04 12:29:11 [iNFO] [sTDERR] java.lang.NullPointerException 2013-02-04 12:29:11 [iNFO] [sTDERR] at cpw.mods.fml.common.SingleIntervalHandler.ticks(SingleIntervalHandler.java:28) 2013-02-04 12:29:11 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLCommonHandler.tickStart(FMLCommonHandler.java:115) 2013-02-04 12:29:11 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLCommonHandler.onPreClientTick(FMLCommonHandler.java:356) 2013-02-04 12:29:11 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1455) 2013-02-04 12:29:11 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:846) 2013-02-04 12:29:11 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:771) 2013-02-04 12:29:11 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) I looks like i might need to reinstall forge here is my tick handler then i used this to register the tickhandler TickRegistry.registerTickHandler(level , Side.Client); i also for some reason had to do this DungeonTickHandler level; because it wouldn't accept this TickRegistry.registerTickHandler(DungeonTickHandler , Side.Client);
-
It shouldn't make you do that all i had to do was add private FontRenderer fontrenderer; but it should work like this private FontRenderer fontrenderer = new FontRenderer();
-
@MazeTar thanks for the help you are awesome! @endershadow fontrender is just simply a thing to get the font so just add private FontRenderer par1FontRenderer the first two integers looks like the coords and i am guessing that the third one is the color Edit: ya first two are coords and third is color but i can't figure out what to put for color
-
I don't currently have a max for the variable but i could if needed and even just a simple draw this string to the screen would be nice then i could just look around through those classes and find more stuff.
-
Sorry about that i am a COMPLETE noob with the gui and hud stuff but what i am trying to add is a bar with a number on it and the bar decreases when you use an item(already got this working) so it is basically a mana bar if you want to think about it like that.
-
so i think i got it working i got this here 1.Fuel for ore dictionary this seems to work but i decide i am not going to use it because i need to which type it is so i am going to remove needing a fuel and put three inputs so i will need to change the recipe file to have 3 inputs public static int essence = OreDictionary.getOreID("essence"); 2.How long the furnace takes to make an item this also seems to work if (this.isBurning() && this.canSmelt()) { ++this.CookTime; if (this.CookTime == 10000) { this.CookTime = 0; this.smeltItem(); var2 = true; } } 3. Multiple inputs and outputs so from what i can tell i need to add this in update entity Item var3 = this.ItemStacks[3].getItem().getContainerItem(); this.ItemStacks[3] = var3 == null ? null : new ItemStack(var3); from what i see slot 0 is output, slot 1 is input and slot 2 is coal not 100% sure though so i would change slot 2 to input and slot 3 to input and slot 4 to output
-
a simple way to do it is in the block class public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9) { if(par1World.getBlockId(par2, par3, par4) == YourMod.YourBlock.blockID && par1World.getBlockId(par2, par3, par4 + 1) == YourMod.YourBlock.blockID) { par1World.setBlock(par2, par3, par4, YourMod.YourMultiBlockPart.blockID); par1World.setBlock(par2, par3, par4 + 1, YourMod.YourMultiBlockPart.blockID); } } then in your other block class put the open gui things in there or you could use the same one by doing this first declare an integer that equals 0 then public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9) { if(par1World.getBlockId(par2, par3, par4) == YourMod.YourBlock.blockID && par1World.getBlockId(par2, par3, par4 + 1) == YourMod.YourBlock.blockID) { multiblock = 1; } else { multiblock = 0; } } then in your on block activated class add this @Override public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int i, float f, float g, float t){ TileEntity tile_entity = world.getBlockTileEntity(x, y, z); if(tile_entity == null || player.isSneaking() || this.multiblock == 0){ return false; } if(this.multiblock == 1) { player.openGui(yourMod.instance, 0, world, x, y, z); return true; } }
-
I have some pretty simple gui knowledge but i need to know how to have 1. Multiple inputs and outputs 2.fuel from an ore dictionary name 3.how long the furnace takes to make the item
-
how do you put a message into chat like Congratulations, Jdb100's mana is now level 456!
-
I might have done something wrong public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { double a = Math.toRadians(par3EntityPlayer.rotationYaw); double dx = -Math.sin(a) * 10; double dz = Math.cos(a) * 10; par3EntityPlayer.posX = dx; par3EntityPlayer.posZ = dz; return par1ItemStack; }