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.

Minetrinity

Members
  • Joined

  • Last visited

Everything posted by Minetrinity

  1. Ah ok, thank you. I guess I do have to place invisible light blocks then
  2. Ok, how do I register a new blockstate for every block with the Tag "minecraft:planks" then? I can not simply create a planks block class, because other mods might also add new planks blocks.
  3. Yes, I thought about that, since Blockstate also has a function to get the Light. But It lacks a method to change light. Should I create a costum subclass of BlockState, or how do I create another Blockstate? Edit: What is that MapCodec<BlockState> parameter in Blockstates constructor?
  4. I am making a mod that is supposed to make wood emit light when clicked with a stick. So far I have the RightClickBlock that tests for when a Player is clicking a planks block while holding a stick, but how do I make that single wood block emit light? I have seen Blockstate#setLightLevel(), but that doesnt exist in 1.18.1. It probably would be doable using reflection to set the light of ALL wood blocks, but I need to set the light level ONLY for the CLICKED wood block.

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.