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.

carpton_falcon

Members
  • Joined

  • Last visited

  1. So I want to make a variety of plants—small herbs—that can only be planted in flower pots. There doesn't SEEM to be any kind of flowerpot type in enumPlantType, but maybe that's because—from what I can tell—the flowerpot is not even really a plantable surface? Am I right in thinking that there is some code in the BlockFlowerPot which, on a rightclick, gets the item value of whatever is active in your inventory, converts it to a meta-data value for the flowerpot, and then uses this to store and display the item you've planted? If that's the case, I could use some help: Does this mean there are only 16 total plants that can be put in a pot and that 11 of these spaces are taken? Does this also mean that there is no way to fit a growing animation into this? If this is the case. Can you tell me if the following is a feasible option: if the active inventory item is an herb sprig { disestablish the flower pot and replace it with a new, herb pot object (BlockHerbPot) } ELSE etc. Where BlockHerbPot would be a pot-similar technical object, with 10 spaces of meta data for the herb type and 4 for the growth graphic (shoot1, shoot2, shoot3, grown). The herb number would be used to find the terrain.png offset of the plant and the growth number would be used to further offset from that. it would probably borrow a lot of code from BlockCrops. At fully grown, hitting the pot would drop herbs. Hitting the pot at anything under grown would drop one herb. When the pot has shed either load of herbs, it is swapped out for a regular flower pot. The question is now. DOES THIS SOUND LIKE A GOOD APPROACH and also can this actually be done in minecraft forge, or would the API restrict me here?

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.