Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

superninjaman45

Forge Modder
  • Posts

    29
  • Joined

  • Last visited

Everything posted by superninjaman45

  1. Indeed that is the strange thing. Also, it wouldn't need two different versions of the same library would it. I'm thinking that message didn't come up the time he gave us the log. In face, due to the library version differences, I bet it was a different forge installer file, probably from an older version. Now would be the time to say "Make sure you download your installer jar from HERE" And make sure you use the right one.
  2. I imagine it probably worked anyway. Or maybe not but you should check. To be safe temporarily empty the mods folder in .minecraft. Then open your launcher. There should be the Forge profile and when you select it it should say Ready to play Minecraft Forge 10.13.2.1230 in the bottom right-hand corner or something similar to that. Hit play and if it doesn't crash, you're golden. Otherwise...
  3. if (!world.isRemote) { world.spawnEntityInWorld(new YourEntity(world)); } One way to spawn entities. You will of course have to change YourEntity and its parameters to what you need. If you need to spawn it a specific coords you can do that as well. if (!world.isRemote) { YourEntity entity = new YourEntity(world); entity.setLocationAndAngles(x, y, z, 0, 0.0F); world.spawnEntityInWorld(entity) } Note that EntityLightning can be a bit finicky. It has three extra parameters, all doubles. Can't say I remember what they mean.
  4. Now, I am not the best with NBT but I think I see a problem. Your are using the key Empty a bit oddly. Imagine this situation. 1. You place a cauldron down. It is empty. 2. writeToNBT gets called. Since the tank is empty, "Empty" gets set a value nbt.setString("Empty", ""); 3. You put water in, writeToNBT gets called again. 4. Quit the world and log back in. 5. readFromNBT runs. Here is the problem. On the first if statement it checks if the key "Empty" exists. It does! You set it earlier, it hasn't been removed in any way. Because it exists the rest of the code between the brackets is ignored. Fluid never gets set. NOTE: I could be COMPLETELY wrong. However this feels right to me. i recommend you change the Empty key completely. Maybe to some kind of boolean? Not too familiar with NBT so you'll have to figure it out. Good Luck
  5. What you are trying to do sounds very possible. However we are going to need some code to glance at to fully understand the situation. I'll be honest, I probably won't be a ton of help but the others will need code.
  6. I don't know if this is the correct place to ask questions but I can't create an account on the new forums So will threads from the old forums be merged with the new, or will they stay separate? I am under the impression they will stay separate due to the Forum Archives link (which, by the way, is broken). ?
  7. Ok I've tried this but I've got the same problem I had to start with. Here's my code now: I believe he is referring to the check in updateEntity() if (slotStone.stackSize <= 0) { slotStone = null; } Should be if (slotStone.stackSize <= 0) { slotStone = null; this.setInventorySlotContents(1, null); } looks right but I could be wrong. HOLD A MOMENT ok he was probably referring to decrStackSize. notice, you put this.setInventorySlotContents(i, itemStack); it should be this.setInventorySlotContents(i, null); that sound right to the code gods? even though he didn't mention updateEntity() i think you should probably do that anyway.
  8. In case anyone would want it, here is the MC Forums link. http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/modification-development/2256945-unofficial-minecraft-coder-pack-mcp-prerelease Hope this is useful guys. Let me know via a message if any updates come up that I miss. Stickies are appreciated
  9. Hey guys, What is it? As I am sure you are aware, the backbone for Minecraft modding is MCP. Every time Mojang releases a new update the MCP team must build a new version of their project. Modders have to wait patiently for a new version to be released with all the users crying "When will you update???" To help modders and groups like Forge, Searge and the team release Pre-releases of MCP. However, they are released quietly with a simple post on Twitter and are difficult to find in the mess. In response I am creating this unofficial thread which contains links to Twitter posts announcing updates as well as the download links to the Pre-released versions. Note that these are official download links and not reuploads. Why? Why bother with pre-releases? They give you a chance to look at what has changed in the code and prepare you to update your mod. Keep it alive! To those who read this, keep this thread alive! I will update this as MCP is updated. If this thread becomes popular it will become a convenient way to find MCP updates. Maybe even the Forge developers will use this The MCP Pre-releases 1.8 (MCP 9.10 Pre-release 1)
  10. Hi guys, This actually isn't your fault. There have been some server troubles over the past few days. Try again the problem should be fixed.
  11. You must have accidentally clicked on an advertisement. Like diesieben07 said, there is no Download Manager for Forge. What you downloaded was malware; you need to take steps to remove it. Don't worry it isn't the end of the world, most of it is fairly harmless. Try downloading again from http://files.minecraftforge.net/ Instead of clicking on the word "Installer" click on the * next to it. This will ensure you actually download forge. Of course we prefer you use adfly because it brings in a little bit of $ for the project. However until you learn to safely navigate it just click on the *, it is a direct download.
  12. There has been a bit of server probs and what not. Just try again. It worked for me.
  13. We need more information than this. Give us everything.
  14. Hey, I am working on a mod at the moment and I noticed that when I save and quit from a world this flashes across the screen while it is closing before it gets to the main menu. forge.client.shutdown.internal It should be "Shutting down internal server..." Not a big deal just thought I would mention it. Oh, and I know technically the latest version is 10.13.2.1232 but I saw nothing in the changelog and it is only 2 versions ahead (plus it isn't recommended either) so I thought this wouldn't be too big of an error to be using this version. Have mercy! Thanks EDIT: Checking with the latest version. Hold a minute Ok so I checked both 10.13.2.1232 and 10.13.2.1230 by installing them into minecraft with the installer jar. However even though 10.13.2.1230 worked perfect in my regular minecraft it doesn't in my development environment. I would test more but i don't want to setup any more, it takes a while with gradlew running and all. Can anyone confirm this or is it just my computer. Bad luck i guess. Sorry if this is a bad report, take it down if you must. My bad!
  15. Just recently I had a similar problem. I am developing a mod currently so I have a development environment set up, I use eclipse. When you load the game it checks to see if you have the latest version of forge. I have not updated my forge version or made any changes worth mentioning to it but as of today I believe or within the week at least I have been seeing this in my console. [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: java.net.ConnectException: Connection timed out: connect [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.net.AbstractPlainSocketImpl.connect(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.net.PlainSocketImpl.connect(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.net.SocksSocketImpl.connect(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.net.Socket.connect(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.net.Socket.connect(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.net.NetworkClient.doConnect(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.net.www.http.HttpClient.openServer(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.net.www.http.HttpClient.openServer(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.net.www.http.HttpClient.<init>(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.net.www.http.HttpClient.New(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.net.www.http.HttpClient.New(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.net.URL.openStream(Unknown Source) [21:00:13] [Forge Version Check/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.common.ForgeVersion$1.run(ForgeVersion.java:90) As I have made no changes to anything it suggests there is a problem server-side, the actual forge website. Or I am an idiot. Possible
  16. I believe I found the problem. The part if(!var1.getString("Village Name").isEmpty()) { System.out.print("1"); this.TownName = var1.getString("Village Name"); } runs even if the value of var1 is empty. Not sure why that is. I'll try something slightly different there.
  17. Ah, that makes sense! Thank you! Though I am not going to use metadata, the tile entity will have a lot more later, this is just a test. Its still not showing up on my GUI which is strange. See anything else?
  18. I did trying using world.getBlockTileEntity(x,y,z) The files were a lot different then so don't trying looking for it in them now. However I had the same problem. Nothing would show up. Here is that older code. Block package superninjaman45.elvesanddwarves.blocks; import superninjaman45.elvesanddwarves.ElvesAndDwarves; import cpw.mods.fml.common.network.FMLNetworkHandler; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World; public class BlockVillage extends BlockContainer{ public int nameNumber; String[] townNames = new String[8];{ townNames[0] = "Halivaara"; townNames[1] = "Arkkukari"; townNames[2] = "Briar Glen"; townNames[3] = "Kameeraska"; townNames[4] = "Iron Forge"; townNames[5] = "Narnclaedra"; townNames[6] = "Ashborne"; townNames[7] = "Ninjavale"; } public BlockVillage(int par1) { super(par1, Material.iron); this.nameNumber = (int) Math.floor(this.townNames.length * Math.random()); } public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) { if(!world.isRemote) { FMLNetworkHandler.openGui(player, ElvesAndDwarves.instance, 0, world, x, y, z); } return true; } /** * Returns a new instance of a block's tile entity class. Called on placing the block. */ public TileEntity createNewTileEntity(World par1World) { return new TileEntityVillageBlock(); } public void onBlockAdded(World par1World, int par2, int par3, int par4) { ((TileEntityVillageBlock)par1World.getBlockTileEntity(par2, par3, par4)).TownName = this.townNames[nameNumber]; } } TileEntity package superninjaman45.elvesanddwarves.blocks; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World; public class TileEntityVillageBlock extends TileEntity implements IInventory{ public String TownName; public void writeToNBT(NBTTagCompound var1) { var1.setString("Village Name", this.TownName); super.writeToNBT(var1); } public void readFromNBT(NBTTagCompound var1) { super.readFromNBT(var1); if(!var1.getString("Village Name").isEmpty()) { this.TownName = var1.getString("Village Name"); } } public boolean isUseableByPlayer(EntityPlayer par1EntityPlayer) { return this.worldObj.getBlockTileEntity(this.xCoord, this.yCoord, this.zCoord) != this ? false : par1EntityPlayer.getDistanceSq((double)this.xCoord + 0.5D, (double)this.yCoord + 0.5D, (double)this.zCoord + 0.5D) <= 64.0D; } @Override public int getSizeInventory() { return 0; } @Override public ItemStack getStackInSlot(int i) { return null; } @Override public ItemStack decrStackSize(int i, int j) { return null; } @Override public ItemStack getStackInSlotOnClosing(int i) { return null; } @Override public void setInventorySlotContents(int i, ItemStack itemstack) { } @Override public String getInvName() { return null; } @Override public boolean isInvNameLocalized() { return false; } @Override public int getInventoryStackLimit() { return 0; } @Override public void openChest() { } @Override public void closeChest() { } @Override public boolean isItemValidForSlot(int i, ItemStack itemstack) { return false; } } Also, I'm not expecting magic. Did you read all the code? I thought it looked reasonable.
  19. Sorry. Just figured it out anyway. Shouldn't have posted. Thanks for replying though. Edit: Actually my troubles aren't over. Nothing is printed to the GUI. Well, if anything is, its blank anyway. I am swallowing a bit of pride here and I am going to post my code. Sigh. Any way you can help without telling me just to figure it out would be appreciated. TileEntity package superninjaman45.elvesanddwarves.blocks; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World; public class TileEntityVillageBlock extends TileEntity{ public String TownName; public TileEntityVillageBlock() { } public TileEntityVillageBlock(String name) { this.TownName = name; System.out.print(TownName); } public void writeToNBT(NBTTagCompound var1) { var1.setString("Village Name", this.TownName); super.writeToNBT(var1); } public void readFromNBT(NBTTagCompound var1) { super.readFromNBT(var1); System.out.print("3"); if(!var1.getString("Village Name").isEmpty()) { System.out.print("4"); this.TownName = var1.getString("Village Name"); } } public boolean isUseableByPlayer(EntityPlayer par1EntityPlayer) { return this.worldObj.getBlockTileEntity(this.xCoord, this.yCoord, this.zCoord) != this ? false : par1EntityPlayer.getDistanceSq((double)this.xCoord + 0.5D, (double)this.yCoord + 0.5D, (double)this.zCoord + 0.5D) <= 64.0D; } } Block package superninjaman45.elvesanddwarves.blocks; import superninjaman45.elvesanddwarves.ElvesAndDwarves; import cpw.mods.fml.common.network.FMLNetworkHandler; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World; public class BlockVillage extends BlockContainer{ public int nameNumber; String[] townNames = new String[8];{ townNames[0] = "Halivaara"; townNames[1] = "Arkkukari"; townNames[2] = "Briar Glen"; townNames[3] = "Kameeraska"; townNames[4] = "Iron Forge"; townNames[5] = "Narnclaedra"; townNames[6] = "Ashborne"; townNames[7] = "Ninjavale"; } public BlockVillage(int par1) { super(par1, Material.iron); this.nameNumber = (int) Math.floor(this.townNames.length * Math.random()); } public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) { if(!world.isRemote) { FMLNetworkHandler.openGui(player, ElvesAndDwarves.instance, 0, world, x, y, z); } return true; } /** * Returns a new instance of a block's tile entity class. Called on placing the block. */ public TileEntity createNewTileEntity(World par1World) { System.out.print("1"); return new TileEntityVillageBlock(townNames[nameNumber]); } } Gui package superninjaman45.elvesanddwarves.client; import org.lwjgl.opengl.GL11; import superninjaman45.elvesanddwarves.blocks.TileEntityVillageBlock; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.inventory.Container; import net.minecraft.util.ResourceLocation; public class GuiVillageBlock extends GuiContainer{ public static final ResourceLocation texture = new ResourceLocation("ElvesAndDwarves:/textures/gui/deployer.png"); public GuiVillageBlock(TileEntityVillageBlock entity) { super(new ContainerVillageBlock(entity)); xSize = 176; ySize = 165; } @Override public boolean doesGuiPauseGame() { return false; } public void drawGuiContainerBackgroundLayer(float f, int i, int j) { TileEntityVillageBlock entity = new TileEntityVillageBlock(); GL11.glColor4f(1F, 1F, 1F, 1F); Minecraft.getMinecraft().getTextureManager().bindTexture(texture); drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize); int posX = (this.width - xSize) / 2; int posY = (this.height - ySize) / 2; drawString(fontRenderer, entity.TownName, posX+50, posY+50, 0x000000); System.out.print("2"); } } Yes the GUI is registered. And it does print things if I need it to.
  20. Is there a method that is called when a tile entity is created. Well perhaps that is not exactly what I need to know. I need to assign a variable in the tile entity when it is created and only when it is created. It involves random numbers so i can't have it being called constantly, only once. I hope that this isn't a dumb question. Thanks for your time. And sorry if this is not specific enough. Thanks
  21. Whoops. I had the texture in the wrong folder. Sorry about that. Though for some reason, when my character puts on boots it just makes a bigger pair of leggings. Working on that.
  22. Actually it is public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type)
  23. Hello, I have just started modding with Forge in 1.6.2. Before that I was using Modloader. Now when I switched, I, of course, had lots of issues, most of which I have solved. However I cant get my custom armor to work correctly. Before this I didn't even have an ItemArmor.java, I just had everything done in the main mod file. Now, I think I have created an Armor file that will work, but I don't know what I need in my main mod file. If you could help that would be great. Thanks ItemSapphireArmor Here is some bits and pieces from my mod file about the armor. (The entire thing is very large and cluttered with other things) Very sorry if this seems very easy or obvious. I has just been a long time since I have fiddled with the armor. Frankly, I am surprised I got this working in Modloader, I am not sure how the ModLoader.addArmor("saparmor"); got the armor set up correctly as I don't refer to "saparmor" anywhere. Also, sorry for using Modloader in my code. Thanks for your help.
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.