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.

Maksimka3168

Members
  • Joined

  • Last visited

  1. ... public ActionResultType use(BlockState stateBlock, World worldIn, BlockPos posBlock, PlayerEntity playerIn, Hand playerHand, BlockRayTraceResult traceBlock) { if (!worldIn.isClientSide) { worldIn.setBlock(new BlockPos(posBlock.getX(), posBlock.getY() + 1, posBlock.getZ()), Blocks.OBSIDIAN.defaultBlockState(), 1); } } ... If I do so, the block will spawn invisible
  2. For example, I will spawn a block under a certain condition (when clicking on the block), I need to compare both on the server and on the client, right? And also when I click, the tile value is checked, but for some reason it changes on the client, and the value remains default on the server.
  3. Thank you very much, now I will sit and figure out how it all works. Thanks again!
  4. If it's not difficult, could you give me an example of how custom networks packet should work.
  5. Maksimka3168 joined the community
  6. I have a block interface in which I use this.addButton(new Button(...)) to create buttons. I need that when clicking on any button, data is saved in Tileentity. The click check occurs in the Screen class, which is inherited from ContainerScreen<...>. How is it possible to get a Tile Entity in this class for further modification. Or are there any other ways?

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.