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.

GenElectrovise

Members
  • Joined

  • Last visited

Everything posted by GenElectrovise

  1. Hi all. I'm trying to get the age of a patch of vanilla potatoes from a tile entity, but I can't seem to find a way to do it. I've already seen this post regarding this in v1.10 but the code examples don't quite have enough info in them for me (an almost semi-experienced modder) to be able to replicate it and they examples aren't explained in detail. I have also read and mostly understand the concept of blockstates (painful but useful ) from this forge readthedocs page. I have tried adding logging code and can get the properties as a PropertyInteger: from the potatoes but can't get the actual value of age from it. It says it at the end of the first one (from printing out the results of the world.getBlockState(blockPos).getProperties() method where the blockPos is that of the potatoes), but I don't know how to retrieve that value. I've looked at the possible methods I can use and none seem to help. ----------------------------- My tile entity class -- relevant methods at the bottom. It should break potatoes/ replace them with air and spawn a EntityItem of an Amethyst Potato at the broken block's BlockPos (can break blocks but doesn't spawn entity but that's a separate issue -- right now it just doesn't get through the check for the crop's age) ----------------------------- Anyway! Wow that's a lot of text! Any help welcome I don't know what else I can try! Thanks!

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.