Jump to content

Recommended Posts

Posted

I have this

 

  Reveal hidden contents

 

 

red=errors also in the main file

  Quote
palmlog = new palmlog("Palm_Wood_Log").setBlockName("palmlog").setCreativeTab(hatblocksTab);

        GameRegistry.registerBlock(palmlog, "palmlog");

 

Posted

Your setting textureName to null.. so it is returning null. Give it a location here:

 

  Quote

palmlog = new palmlog(null).setBlockName("palmlog").setCreativeTab(hatblocksTab);

            GameRegistry.registerBlock(palmlog, "palmlog");

 

That null, needs to be a texture name.

Posted

Hi

 

 

Dude, if you're getting an error it would probably help a lot if you tell us what the error message actually  is :-)

 

I guess the cause is probably this

 

import javax.swing.Icon;

 

Wrong import...

 

-TGG

Posted
  On 4/18/2014 at 11:09 PM, TheGreyGhost said:

Hi

 

 

Dude, if you're getting an error it would probably help a lot if you tell us what the error message actually  is :-)

 

I guess the cause is probably this

 

import javax.swing.Icon;

 

Wrong import...

 

-TGG

there is no error message it's in eclipse which found and underlined the errors, and I'll check my imports tomorrow
Posted

Hi

 

I use IntelliJ not Eclipse, but I'm sure it's the same:

- if I hover the mouse near the red underline, it tells me the error message.

Also, if I perform a compile, it brings up an error message in the compilation log.

 

Give it a go and see?

 

-TGG

Posted

Also in 1.7.x aren't they called IIcon and IIconRegister?

You even imported the right classes, just missed the I in front of the names in your methods.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

ok i now have this copied from the normal log as it uses a rotated pillar block

 

  Reveal hidden contents

 

 

or this

 

  Reveal hidden contents

 

 

Im aware that the if statement corrosponding to sides as in the one above doesnt work for a rotated pillar block, which is why i have a version with the copied code, i can't get textures to load in the world, the fields i pressume link to the texture name it's trying to pull but i dont know how to register these to pull my textures instead?

Posted

Can you show your main class (where you initialize / register your block)?

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

yup there you go

  Reveal hidden contents

 

Posted

or

 

  Reveal hidden contents

 

Posted

also im creating view recipes for vanilla things such as beds and turning wool back into string, but only know how to do this for white wool, how can it be set to use all the colours? as i pressume if ||=or then 'new ItemStack(Blocks.wool, 1) || new Itemstack(Blocks.wool, 1, 1)' would work if i did for all 16 but is there a way to pull in one go

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.