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.

Leaderboard

Popular Content

Showing content with the highest reputation on 07/06/22 in Posts

  1. please post debug.log from the logs folder
  2. Removing the mod is a bit drastic when its obviously just a misconfiguration ๐Ÿ™‚ speak to the byg mod author about how to fix it.
  3. Nope, look at BlockEntityType.BlockEntitySupplier it is create(BlockPos, BlockState) in 1.18.2 Some vanilla blocks entities do have a protected constuctor with a block entity type parameter, this is intended for use by subclasses not for actual construction.
  4. MobRepellentBlockEntity::new is just syntatic sugar. For you it is kind of the same as the lambda expression: (blockPos, blockState) -> new MobRepellentBlockEntity(xxxx, blockPos, BlockState) So you can see your problem is you don't have an xxxx to reference, it should not be there.
  5. You are probably copying example code from the wrong version of minecraft, things like this can change between versions. MobRepellentBlockEntity::new passes a reference to your constuctor, which must match the signature of BlockEntityType.BlockEntitySupplier - the parameter type used by of() In 1.19 that is (BlockPos, BlockState) - see the create() method of this functional interface. Your constructor has signature (BlockEntityType, BlockPos, BlockState), which is therefore wrong.
  6. You need a render method in your screen and then use renderBackground() Don't forget to call super.render() after that to draw the widgets. There is also renderDirtBackground() if you want that.
  7. looks okay, your Button is just 1x1 large but everything else looks okay Edit: you should not super null in the constructor
  8. Ad hoc screens don't need to be registered. You only register container screens. Use ClientRegistry.registerKeyBinding() and have it do Minecraft.setScreen()
  9. create a new class and extends Screen, override #init and add there all Buttons you want (use #addRenderableWidget) inside the OnPress action of the Button you need to send a custom Network Packet (see: https://forge.gemwire.uk/wiki/SimpleChannel) to the server which increase your Capability value, if your Capability is also required on the client you need to sync it back after the value changes

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.