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.

emyerson

Members
  • Joined

  • Last visited

Everything posted by emyerson

  1. Cool, thank you. It's comforting to know I was on the right path, or at least on a path that wasn't horribly wrong.
  2. I decided to just copy and modify the code from WorldGenCactus.class (which uses world.setBlock() for this purpose). It seems to work just fine. I'd still love to hear, though, what the best practice is for the general case of mimicking existing functionality. Thanks.
  3. Brand new to mod development, thanks for your patience. I've managed to develop my new block type - a sort of glowing crystal, kind of like glowstone. I'm trying to figure out what is the best way to get the blocks to spawn during chunk generation. I've seen plenty of tutorials to get new ores to spawn, using WorldGenMinable(). I've been able to do that with no problem. The only thing is that function spawns the blocks in a typical ore vein pattern - contiguous groups of x blocks, generally arrayed 2 blocks wide. I've also stumbled on WorldGenBlockBlob(), which is neat, but also forms a standardized array (a layer of 9 or so blocks with a 1-block layer above it, etc). I'd like my blocks to spawn in a different pattern, more like cactus - a single column of blocks. So what's the best way to achieve this? Should I override WorldGenCactus? Is there some function that spawns in a developer-assigned pattern? I'm still finding my feet with mod development, but I'm learning a bunch. Thanks, all, for any pointers you can provide.

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.