Posted October 4, 201410 yr I have noticed that there are FML releases for MC 1.8. So I started again modding with the basics... I created a basic block with no special properties, but I can't make a texture to show in the game, or just render a block normally. A lot of stuff has changed in 1.8... Is there anyone who can help me??
October 4, 201410 yr Author Yes, also with blocks: setBlockNames reversed to setUnlocalizedNames, you have to use getBounding box to get a mob's bounding box, AxisAlignedBB.getRenderBounds become AxisAlignedBB.fromBounds. Some changes... Also I still can't find a way to render blocks in the world...
October 4, 201410 yr Author We have to make 3 Json files for each block(I think), one for the blockstate(s), one for the item render, and one for the block render. I still can't make them work... I took the idea from the MC jar... Why is this good for modders???...
October 4, 201410 yr Yea I noteced it says missing myblockname.json. I tried adding multiple blockstates to one block and my game just freezes when I open my inventory.
October 4, 201410 yr Author I think the wrong was with metadata is was the same with ID-s. They were not limited and just "magic numbers"....
October 4, 201410 yr Also with creative tabs there is an array of them that only has 12 and the constructor to make a new tab requires an index. So to make a new tab you have to override a vanilla one.
October 4, 201410 yr You will probably be able to add tabs again when forge (the api) is released. As for your blocks not working, post a screenshot of your file hierarchy. Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
October 4, 201410 yr Author Block: Normal block, nothing in the Block's class file(just extends Block), registered with gameregistry, also the jsons: assets/testmod/blockstates && models state: http://pastebin.com/zKZ9gf7F blockrender: http://pastebin.com/H4RHTSiW itemrender: http://pastebin.com/hqWmf099
October 4, 201410 yr Can you see the texture when you place it in the world? If so, you aren't registering the item model. If you can't place it in the world, that's an FML registry bug and you should look at the RegistryHelper in ironchest's 1.8 branch. Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
October 4, 201410 yr Author I can't see any texture, or hitbox, or collide with it(also printing oout a placed string from onBlockPlaced method prints nothing too...), also I use the 1004 version of FML.
October 4, 201410 yr https://github.com/progwml6/ironchest/blob/mc1.8/src/main/java/cpw/mods/ironchest/RegistryHelper.java Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
October 4, 201410 yr You don't need to make a topic in bug reports as Forge is not out yet and FML is still very unstable and in development, and that's why some things may not work yet. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
October 4, 201410 yr Did you get your textures working? Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
October 4, 201410 yr Author No, I had to create a res. pack for the json-s. Because (i think) FML doesn't support the new json modells.(Yet)
October 4, 201410 yr Yes it does. Mine work. Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
October 4, 201410 yr Author Then I do something wrong... I'll post my code tomorrow because I need to update about 1000 blocks, 200 items and a whole bunch of stuff to 1.8...
October 5, 201410 yr Author Main mod file: http://pastebin.com/csVdShwc Block file: http://pastebin.com/VF2f7qug My texture is in assets/testmod/textures/blocks/testblock.png BlockState file: assets/testmod/blockstates/TestBlock.json http://pastebin.com/D4DjkE90 Model(Item+Block) in? assets/testmod/models/(item/block)/TestBlock.json Item: http://pastebin.com/xrJr0ZcU Block: http://pastebin.com/Vfs7arUV
October 5, 201410 yr Author I still don't know what am I doing wrong, but It's the same with items...
October 5, 201410 yr Whenever you register an Item/Block, add its name to an ArrayList. In your client proxy (in init, not preinit), Use GameRegistry.findItem on every String in the ArrayList and: ItemModelMesher mesher = Minecraft.getMinecraft().getRenderItem().getItemModelMesher(); mesher.register(theItem/itemBlock, 0, new ModelResourceLocation(itemName, "inventory")); Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
October 6, 201410 yr Author I still can't make it to work... Client proxy: http://pastebin.com/g6mpR7Gm Main(InitEvent): http://pastebin.com/jx9QkKPS
October 6, 201410 yr Try this: mesher.register(TestMod.TestItem, 0, new ModelResourceLocation("TestItem", "inventory")); Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.