Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I know that similar things have been posted in the past, here, but they were all about tile entities. My block is just a normal block, based similarly to how the Terracotta blocks are in 1.12 snapshots.

 

Basically, I want it so when the block is placed, depending on the player's direction when placing the block, the block is rotated a certain way. I'm not sure how to go about doing that.

 

Like the Terracotta blocks, my blocks have different meta values depending on the color of the block, if that makes a difference...

 

Thanks in advance,

Cyan_

Don't you need json files for this? Why not edit the method onBlockPlaced to do this. Or check the BlockLog class if it existed.

  • Author

I don't think that 1.7.10 uses .json for block rotation. I thought that was a 1.8 and later thing.

 

BlockLog doesn't rotate based on player placement, does it? I thought it was based on how it's placed next to a block....

 

Edit: I'm copying code from BlockPumpkin, which assigns meta values to my blocks, but I think it's messing with the meta values I've assigned to my blocks i.e. placing East or North will not rotate my block or do anything special, but placing West created my Brown block, no rotation, and placing South created my Blue block, no rotation.

 

 

Edited by Cyan_

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.