Jump to content

[Solved] [1.8] onBlockPlacedBy and onBlockPlaced Not Working


Recommended Posts

Posted

I've created a block, and it's supposed to set its block bounds when it's placed. I put in the code for it to set them, but when I placed the block, nothing happened. I put in debug code for it to print when those methods are called, but the debug code isn't called either. Here's my block class:

 

 

  Reveal hidden contents

 

 

Any help? Thanks in advance!

 

 

EDIT 1

 

 

Never mind. It seems that they ARE working, but Logger.debug is not. No clue why that is.

Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*.

 

Also this. Check it out.

width=700 height=200http://i.imgur.com/J4rrGt6.png[/img]

Posted

UPDATE

 

onBlockAdded

doesn't seem to be working either. There also seems to be an odd bug that results in the block having no bounding box when I place it, but when I close Minecraft and reload the world the block has a full bounding box until I place a new block, and then the bounding boxes of every single instance of that block disappears. When I right-click the block when it has a bounding box the box disappears as well.

Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*.

 

Also this. Check it out.

width=700 height=200http://i.imgur.com/J4rrGt6.png[/img]

Posted
  On 9/4/2015 at 12:40 PM, LordMastodon said:
EDIT 1

 

 

Never mind. It seems that they ARE working, but Logger.debug is not. No clue why that is.

 

Are you looking at the IDE's console or the log file itself? Messages with a

Level

less specific than

INFO

(i.e.

DEBUG

,

TRACE

or

ALL

) won't be written to the standard output (i.e. the IDE's console), but will be written to the log file.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted
  On 9/8/2015 at 8:45 PM, LordMastodon said:

Why is that? Can I change it?

 

It's controlled by the log4j2.xml file inside the Forge JAR. You can probably change it by removing

level="INFO"

from line 54.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.