Jump to content

Recommended Posts

Posted (edited)

I've looked at a bunch of tutorials and read the forge docs but nothing has worked thus far,

Also both of these blocks sound like stone when walked on and broken so i need to know what's going on there too.

 

https://pastebin.com/EH7g6P2p <- BlockBanannaLeaves.java

https://pastebin.com/7rr6viUb <- BlockBanannaLog.java

 

Edited by TastesLikeBleach
told to add pastebin links instead of .java files
Posted

That sound problem can be fixed by

setSoundType(SoundType.WOOD)

in the block's constructor

but that directional problem...

maybe you can add a PropertyDirection state?

 

Posted

If you're doing log-y things, you might be interested in extending BlockLogsBase (IIRC).

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
On 10/28/2017 at 9:16 AM, Draco18s said:

If you're doing log-y things, you might be interested in extending BlockLogsBase (IIRC).

Are there any specific methods i need to implement in order to make my log block function like a log, and can i just use the vanilla blockstates for logs and models as templates for my log(s)

Posted
8 hours ago, TastesLikeBleach said:

Are there any specific methods i need to implement in order to make my log block function like a log, and can i just use the vanilla blockstates for logs and models as templates for my log(s)

Look at BlockLogsOld and BlockLogsNew

  • Like 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.