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.

Tayman3008

Members
  • Joined

  • Last visited

  1. Hello. I am trying to setup a behavior for a custom block called "foundry bricks" wherein if you click on the block it checks if the same type of block is located within 7 blocks from the block you clicked. Once I have all the blocks I would like to check, how would I actually check if there is a foundry brick located at that coordinate? I am trying to use pLevel.getBlockState(pos).is(), where pos is a BLockPos at the coordinate I am checking. However, I have no idea what to put in the is(). I have tried using the class for my block and its name but both give either an expression expected error or it says cannot resolve method 'is(registryobject<Block>)'. Apologies if there is a really simple fix for this, I am very new to both Java/Minecraft Modding but I've been searching for a solution for hours without luck. Thank you for any help!

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.