Jump to content

Rheel

Members
  • Posts

    30
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Location
    The Netherlands

Rheel's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Did you specify the natives folder? You need to do that for lwjgl.jar, lwjgl_util.jar and Jinput.jar
  2. Is there anyone who might know an answer?
  3. Do you have the program arguments --version 1.6 --tweakClass cpw.mods.fml.common.launcher.FMLTweaker
  4. You should launch with net.minecraft.launchwrapper.Launch.
  5. I did that already, doesn't work unfortunately.
  6. So, I've recently made a GUI that contains some itemstack rendering in it (no GuiContainer, I couldn't use that for this case since I didn't want the items to be in a slot). The items render just fine, but the blocks seem to be about 50% to dark. I've tried disabling the lightning with GL11, but that doesn't help. Is there any way I could fix this? (I am probably just derping, but I really cannot find the problem) Code for ItemStack rendering: private void drawItemStack(StackWithPos stack, Minecraft mc, boolean remote, int xStart, int yStart) { if (stack != null && stack.item != null) { GL11.glPushMatrix(); this.zLevel = 50.0F; this.itemRenderer.zLevel = 50.0F; GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); RenderHelper.enableGUIStandardItemLighting(); GL11.glEnable(GL11.GL_DEPTH_TEST); if (remote) { this.itemRenderer.renderItemAndEffectIntoGUI(this.fontRenderer, mc.renderEngine, stack.item, stack.x + xStart, stack.y + yStart); } else { this.itemRenderer.renderItemAndEffectIntoGUI(this.fontRenderer, mc.renderEngine, stack.item, stack.x + 100 + xStart, stack.y + yStart + 46); } RenderHelper.disableStandardItemLighting(); this.itemRenderer.zLevel = 0.0F; this.zLevel = 0.0F; GL11.glPopMatrix(); } }
  7. Hello, Is there any possible way of getting the registered metadata values of a certain item/block while serverside? Kind of like the item.getSubItems method, but that one is @SideOnly(Side.CLIENT). I basicly don't want to scroll through I don't even know how many values (-> 10000?) to check if that is a valid metadata value (I wouldn't even know how.), since that would be rather time consuming.
  8. I did some testing, and i seems that with 3 different block IDs, it doesn't give the bug. This is weird...
  9. I have the following problem. I want to set all the blocks from the coordinates of a specific Integer[] to id 0. I'm doing this with this code: for (Integer[] coord : this.coords.get(meta)) { System.out.println((x + coord[0]) + " " + (y + coord[1]) + " " + (z + coord[2]) + " " + world.getBlockId(x + coord[0], y + coord[1], z + coord[2])); world.setBlock((x + coord[0]), (y + coord[1]), (z + coord[2]), 0); } Th output is now 2013-03-23 14:47:19 [iNFO] [sTDOUT] -274 64 94 2676 2013-03-23 14:47:19 [iNFO] [sTDOUT] -275 63 94 0 2013-03-23 14:47:19 [iNFO] [sTDOUT] -275 64 94 0 Which means that the final two are probably already 0. But this is not the case, they are 2676 too. Here comes the weird thing. If I do this: for (Integer[] coord : this.coords.get(meta)) { System.out.println((x + coord[0]) + " " + (y + coord[1]) + " " + (z + coord[2]) + " " + world.getBlockId(x + coord[0], y + coord[1], z + coord[2])); } it prints out this: 2013-03-23 14:51:38 [iNFO] [sTDOUT] -277 65 114 2676 2013-03-23 14:51:38 [iNFO] [sTDOUT] -278 64 114 2676 2013-03-23 14:51:38 [iNFO] [sTDOUT] -278 65 114 2676 Which means that the id is indeed 2676. Now what have I done wrong? When I run the code, the blocks are still there, except the one that was called first.
  10. Getting and saving serverside information with a GUI.
  11. Your mistake is in this line: LanguageRegistry.addName("talipBlock", "Talip Block"); Where you do "talipBlock" When in quotation marks ("..."), a type is called a String. What you are doing is naming a String. This is not what you should do, which is naming the Object (Block) that you are naming. In this your code should look something like this: LanguageRegistry.addName(talipBlock, "Talip Block"); In that code you are making a reference to the public static Block talipBlock; which is what you want to do. edit: This is something that is really recommended before you start modding.
  12. Hello everyone! I was wondering if it is possible to get the serverside instance of a client-side EntityPlayer. If so, how would I need to do it? I was thinking FMLCommonHandler.instance().getMinecraftServerInstance().getServer().worldServerForDimension(entity.worldObj.provider.dimensionId) getting the serverside world like this, but the .getMinecraftServerInstance() is null. Is there any way that would work?
  13. Basically, I got the unique world specific file like this (for World--- the overworld outputs at ../saves/world---/data/AA/World0, For the Nether ../Data/AA/World-1, etc.): String s = Minecraft.getMinecraftDir().getCanonicalPath() + "/saves/" + world.getSaveHandler().getSaveDirectoryName() + "/data/AA/World" + world.provider.dimensionId + ".dat"; Then I made a HashMap<string, Object>, similar to how NBT works. finaly I save the HashMap to the File using BufferedWriter and FileOutputStream
  14. With a lot of coding, I worked out to have a cusotm world specific save file that can save and pull a sort of custom NBT kinda thing without being a coremod. It would be a lot better if Forge could just have you save custom NBTs in the world file...
  15. Does Forge have a way to save a custom NBTTagCompound, which you can get when the world is reopened? If not, is there any way Minecraft Forge would be implementing such a feature?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.