Jump to content

[1.8] [SOLVED] How to add a block which is placed based on player facing


Recommended Posts

Posted

Hi

 

I recently started modding with forge and until now everything works fine. However, I encountered a problem when i tried to add a specific block. This block should have the ability to be placed in the direction which the player is facing (like a furnace or door). I already added several blocks but none of them has multiple textures. I tryed to copy all the .json files from the furnace and edit them like this:

 

atmospheric_extractor.json in blockstates

 

  Reveal hidden contents

 

atmospheric_extractor.json in models/block

 

  Reveal hidden contents

 

atmospheric_extractor.json in models/items

 

  Reveal hidden contents

 

 

When I start up the game the block renders just with the standard texture. I don't expect the block to rotate to a specific orientation with my code but i can't even get it rendered. :P

 

I would be happy if someone could help me with my project.

 

Here are some of the .java files: (If you need further information feel free to ask and i will post it.)

 

  Reveal hidden contents

 

 

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.