Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited


  • Gender
  • Location
    Another Plane of Existance
  • Personal Text
    Just another small-time dev.

NoEffort's Achievements

Tree Puncher

Tree Puncher (2/8)



  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. 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 !
  8. 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!
  9. 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.
  10. 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.
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.