Jump to content

1.8 Update Questions


Degubi

Recommended Posts

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??

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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???...

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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