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.

NoEffort

Members
  • Joined

  • Last visited

  1. Thanks for all the help guys, praise be the internet! If you're curious, I created a new message & registered it. Here's the handler for said message: public static void handle(WeatherPedestalUpdateMessage message, Supplier<NetworkEvent.Context> context) { NetworkEvent.Context ctx = context.get(); ctx.enqueueWork(() -> { ServerPlayerEntity player = ctx.getSender(); TileEntity tile = player.level.getBlockEntity(message.pos); if(tile == null || !player.level.isLoaded(message.pos) || !(tile instanceof WeatherPedestalTileEntity)) return; WeatherPedestalTileEntity pedestal = (WeatherPedestalTileEntity) tile; pedestal.setRaining(message.rain); pedestal.setThundering(message.thunder); pedestal.setClear(message.clear); player.level.sendBlockUpdated(message.pos, pedestal.getBlockState(), pedestal.getBlockState(), Constants.BlockFlags.BLOCK_UPDATE); }); ctx.setPacketHandled(true); } I also removed half of my update() method in WeatherPedestalScreen, and replaced it with this single line: NuggetMod.CHANNEL.sendToServer(new WeatherPedestalUpdateMessage(this.pos, rain, thunder, clear));
  2. How can I resolve this? Network messages? Maybe my design is wrong and I should be using another method? EDIT: Method, as in plan of attack not functional Java method
  3. I do a combination of these to achieve the same result (on paper, I suppose). WeatherPedestalTileEntity.java (Snippet):
  4. @Draco18s You got it boss: https://github.com/NoEffort/NuggetMod/tree/main
  5. So what you're saying is my Client is correct, but the server is not? The docs lead me to believe I've done everything I should be doing, but it seems like that isn't the case. How can I go about syncing the data correctly?
  6. Long time no see, I've got this block that I want to update on a button press in it's respective screen. The block data does technically update, but it seems to switch back to it's default values every other tick (or at least, that's what it seems like visibly). Have a look: Related Code: https://gist.github.com/NoEffort/5cd66d7d5c8165338b9ae89c6036f3c3 The Bug:
  7. NoEffort changed their profile photo
  8. Because it worked in theory. Also, the game did crash when setting a breakpoint on this method. [ALSO] This method did not need to be changed in the end. Keen eye, much obliged! I did not mean to call isDouble() with !
  9. Half-Slabs that I've created move their positions from being half_slab_bottom to half_slab_top and I don't know why. *Note: There are no error messages in console when booting the game, placing the slabs, or opening the world. GitHub: https://github.com/NoEffort/Basic Video: https://www.youtube.com/watch?v=wh3eUJmlx-w All help is appreciated!
  10. Problem found, When initializing the block from my CustomBlock file, the name was set to "Strange Plank" and not "strange_plank". ** It had nothing to do with the .json files.
  11. How do I add the _? It seems it's auto-removed it??
  12. Hello, I do understand that there are other topics under this same / similar standard however I cannot seem to find anything wrong with my .json files or their contents and names. Some help is appreciated, all files below.

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.