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


Forge Modder
  • Posts

  • Joined

  • Last visited

Everything posted by ss7

  1. Honestly, I don't even know what you are talking about
  2. I'm using the code from EE3 in 1.8 and it's working perfectly. I think nothing has changed from 1.7 to 1.8. This tutorial from coolAlias is also very helpful: http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571597-forge-1-6-4-1-8-custom-inventories-in-items-and
  3. Excellent open-source mod: https://github.com/pahimar/Equivalent-Exchange-3
  4. Thank you very much guys! At first, I tried overriding the getActualState method, but for some reason my BakedModel wasn't rendering anymore. So I tried herbix' solution, and it worked like a charm! Thank you very much again and this thread is now SOLVED
  5. Hello, Is it possible to get an instance of my TileEntity from the IBlockState , which is passed to the handleBlockState function of ISmartBlockModel ? Basically, I need to render a block based on the data from my TileEntity . My first idea was to use a TileEntitySpecialRenderer , but that was too inefficient for my case of rendering. Then I found the excellent tutorial from @herbix, that explained the use of the new IBakedModel in 1.8. Unfortunately, it seems that you can only use the block state from a block in the handleBlockState method. But I need to store more than 4 bits in my block. I hope you can help me ss7
  6. Wow, you were absolutely right . I just had to declare the 2 properties as static and now it works like a charm . Thank you very much!
  7. Hello, I keep getting a NPE when I create a ExtendedBlockState like this: public IUnlistedProperty<Integer> unlistedProperty = new IUnlistedProperty<Integer>() { @Override public String getName() { return "test"; } @Override public boolean isValid(Integer value) { return true; } @Override public Class<Integer> getType() { return Integer.class; } @Override public String valueToString(Integer value) { return value.toString(); } }; private PropertyBool property = PropertyBool.create("test2"); new ExtendedBlockState(this, new IProperty[]{property}, new IUnlistedProperty[]{unlistedProperty}); The stacktrace looks like this: Caused by: java.lang.NullPointerException: null key in entry: null=Optional.absent() at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:31) at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:135) at com.google.common.collect.ImmutableMap$Builder.put(ImmutableMap.java:206) at net.minecraftforge.common.property.ExtendedBlockState.buildUnlistedMap(ExtendedBlockState.java:43) at net.minecraftforge.common.property.ExtendedBlockState.<init>(ExtendedBlockState.java:29) at de.medusalix.brickcraft.block.BlockDrawBridge.createBlockState(BlockDrawBridge.java:66) at net.minecraft.block.Block.<init>(Block.java:299) at de.medusalix.brickcraft.block.BlockBrC.<init>(BlockBrC.java:16) at de.medusalix.brickcraft.block.BlockDrawBridge.<init>(BlockDrawBridge.java:54) at de.medusalix.brickcraft.block.Blocks.<clinit>(Blocks.java:11) I've already added a breakpoint to the "buildUnlistedMap" function in ExtendedBlockState, and for some reason, the parameter called "unlistedProperties", which is passed to the function is always null. But that variable should contain my IUnlistedProperty array. I hope you can help me. ss7
  8. Hello, This might help you: http://www.minecraftforum.net/topic/1891837-forge-162how-to-make-a-boss-entity/ ss7
  9. Hello, I recently update Forge to 1.7.2 but now i don't know how to register item and blocks. Another problem is that the registerItemRenderer() method only takes Item as a parameter and not Block. Any help is greatly appreciated. ss7
  10. Hello, I'm having a big problem. I tried to set up the run configurations like GrygrFlzr said in his post but in the console tells me that it can't find the net.minecraft.launchwrapper.Launch class. Even if i click the search button it can't find the class. Any help is highly appreciated. ss7
  11. Hello, I've done everything GrygrFlzr said in his post called Getting Started with ForgeGradle. Everything works, but when i try to run Minecraft it says that the main class called net.minecraft.launchwrapper.Launch was not found. One more question: Where do i put my assets folder? Hope you can help me! ss7
  12. That was indeed the issue . My power system had a problem and i though this had something to do with it. Anyways, i got it working. SOLVED ss7
  13. Hello, Is their a function equivalent to breakBlock for the client side? Because i have a function that must be called both on the client and the server side. Can i use packets for this? I know how to send packets to the server but i don't know how to do this for the client. Can you help me? ss7
  14. Hello, OK, forget it, i looked at the class another time and I think it's impossible to do it without creating my own class.
  15. Hello, Is there a newline symbol that works for the FontRenderer like the "\n" symbol? Because I'm trying to render an Achievement with the GuiAchievement class, and the text is too long so I'd like to split it into 2 lines. I can change the private field "achievementWindowHeight" with reflection, but I can't split the text into 2 lines without copying the class and making my own one. I hope you can help! Thanks in advance! ss7
  16. Hello, I had the same problem. Put this in your TileEntity class: @Override public AxisAlignedBB getRenderBoundingBox() { return AxisAlignedBB.getBoundingBox(xCoord, yCoord, zCoord, xCoord + 1, yCoord + 1, zCoord + 1); } Hope I helped! BTW: When do you write your ForgeMultipart tutorial? ss7
  17. Hello, I had the same problem. You must put this piece of code in your TileEntity class: @Override public AxisAlignedBB getRenderBoundingBox() { return AxisAlignedBB.getBoundingBox(xCoord, yCoord, zCoord, xCoord + 1, yCoord + 1, zCoord + 1); } Hope I helped! BTW: When do you write ForgeMultipart tutorial? ss7
  18. Hello, Is there a way to get the filename of a mod? Like when my mod is called "mod 1.6.4.zip"? ss7
  19. Hello, @diesieben07 How do I do that? Buildcraft also uses getResource(). I tried converting a InputStream to a File but that's not working. ss7
  20. Hello, @GotoLink But I can't cast a InputStream to a File or convert it. ss7
  21. Hello, Have you added the Scala Eclipse plugin to Eclipse? ss7
  22. Hello, I'm trying to make the cables in my mod Multiparts. I've done everything that the github site for ForgeMultipart says, but i don't know how to implement this to my cables, because there is no documentation. I've looked into the source code of ProjectRed, but it's just confusing. Can you help me? ss7
  23. Hello, My mod uses this line of code to go through all .lang files in a directory: for (File file : new File(URLDecoder.decode(Config.class.getResource("/assets/brickcraft/lang/").getPath(), "UTF-8")).listFiles()) That is working in Eclipse, but not when i recompile my mod. I've added a println that prints the URLDecoder output. (BTW, I'm on a Mac) Output in Eclipse: /Volumes/Daten/Minecraft Forge Modding 1.6.4/forge/mcp/eclipse/Minecraft/bin/assets/brickcraft/lang/ Output when compiled: file:/Users/ss7/Library/Application Support/minecraft/mods/Brickcraft.zip!/assets/brickcraft/lang/ I've also tried to remove the "file:" and the "!" from the string, but no such luck. I hope you can help me! ss7
  24. Hello, Can you post a screenshot of your cable? I would really like to see it working! BTW: Have you noticed the "Thank You" button? ss7
  • Create New...

Important Information

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