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.

Lennart247

Members
  • Joined

  • Last visited

  1. Hmm you're right.. Thx for that. I was able to fix my problem, by changing: case "cherry": this.setDefaultState(this.blockState.getBaseState().withProperty(TYPE, WoodType.CHERRY).withProperty(BlockLog.LOG_AXIS, BlockLog.EnumAxis.Y)); case "banana": this.setDefaultState(this.blockState.getBaseState().withProperty(TYPE, WoodType.BANANA)); } to: case "cherry": this.setDefaultState(this.blockState.getBaseState().withProperty(TYPE, WoodType.CHERRY).withProperty(BlockLog.LOG_AXIS, BlockLog.EnumAxis.Y)); break; case "banana": this.setDefaultState(this.blockState.getBaseState().withProperty(TYPE, WoodType.BANANA)); } I don't really understand why it fixed the problem, but it works now.
  2. I am currently trying to make a custom tree, the blocks I created for it (leaves and log) are working, and I think the worldgenerator (which is a modified copy of the birch generator) is working too. However the game sometimes seems to render the wrong blockstate of the log, until I right click the block, or update it otherwise. I added all code I use below (although I think only the WorldGen Code and BlockLog Code are important). AFAIK the Worldgen places the blocks correctly, as I do get the right output in my console ([lennart247.test.lennartsmod.worldgen.WorldGenCherryTree:generate:130]: lennartsmod:block_cherry_bark[axis=y,type=cherry]). But most of the time the game displays the wrong blockstate, until updating the block. Does anyone have an idea why this is happening? WorldGen Code: BlockLog Code: ModBlocks: EnumWoodType: Proxy: Main Class:

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.