Jump to content

[1.8] Block Rendering and Charcoal


TechnicalParadox

Recommended Posts

I have a few questions. First, here is a link to a GitHub repo with all my files on it.

https://github.com/ParadoxicalGames/RealismMod

I'm working on the Fire Pit Block (com.paradoxicalsw.realismmod.blocks.FirepitBlock.java)

Crafting recipes are in (com.paradoxicalsw.realismmod.Recipes.java)

.jsons for rendering are in /assets/realismmod/

 

First, I am trying to create a crafting recipe that utilizes charcoal. I think I understand that charcoal is a sort of sub-item to coal?

I know coal can be accessed with Items.coal, how would I access charcoal?

 

Second, I'm trying to create a custom block that is smaller than the normal blocks. Where a normal blocks bounds are 0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F, mine is 0.1F, 0.0F, 0.1F, 0.0F, 0.3F, 0.9F.

How would I go about texturing that block properly?

 

I would also like the block to burn the player when stepped on and also emit fire/smoke particles from the center similar to the furnace when on.

 

After doing these things I would like the block to be able to be right clicked and opened and function like a furnace.

 

Thanks ahead of time!

Link to comment
Share on other sites

 

first yes,

charcoal is metadata 1 form item.coal

in mi mod i make a charcoalblock

 

GameRegistry.addRecipe(new ItemStack(MercenaryModBlocks.charcoal, 1,0), new Object[] {"###", "###", "###", '#',new ItemStack(Items.coal ,1,1) });

 

and second you must create a parental json whith the dimensions you like, but this block its gona be hard to apilate, put one block up on another 

Link to comment
Share on other sites

 

first yes,

charcoal is metadata 1 form item.coal

in mi mod i make a charcoalblock

 

GameRegistry.addRecipe(new ItemStack(MercenaryModBlocks.charcoal, 1,0), new Object[] {"###", "###", "###", '#',new ItemStack(Items.coal ,1,1) });

 

Thank you, that's working properly now.

 

and second you must create a parental json whith the dimensions you like, but this block its gona be hard to apilate, put one block up on another 

 

I am not familiar with the new json system so I don't know how to go about doing that. Are there any good tutorials you know of that you could link me? Or would you be willing to explain it yourself?

 

Thanks,

Link to comment
Share on other sites

2. Do you want your block to be ACTUALLY smaller so in 1.0F space you can fit multiple blocks?

If not, you are probably want just different model:

http://greyminecraftcoder.blogspot.com.au/2014/12/block-rendering-18.html

http://greyminecraftcoder.blogspot.com.au/2014/12/block-models-texturing-quads-faces.html

 

If that is not enough u might be looking for TESR.

 

As for furnace you will need TileEntity and GuiHandler for which client will have Gui and server - container.

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

2. Do you want your block to be ACTUALLY smaller so in 1.0F space you can fit multiple blocks?

If not, you are probably want just different model:

http://greyminecraftcoder.blogspot.com.au/2014/12/block-rendering-18.html

http://greyminecraftcoder.blogspot.com.au/2014/12/block-models-texturing-quads-faces.html

 

If that is not enough u might be looking for TESR.

 

As for furnace you will need TileEntity and GuiHandler for which client will have Gui and server - container.

 

I don't want to fit multiple blocks, I want a single block that you can step on like a half slab. I think I will be able to accomplish this with the UV texturing, thanks for the link!

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.