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.

personnedu13

Members
  • Joined

  • Last visited

  1. //Cannot instanciate type MinecraftServer... World world = (MinecraftServer::getWorldByDim) can I have an exemple plz ? It will be faster...
  2. an instance is individual for all object of the class and a static is common ? I mean that static class are made for an unique object.
  3. I rarely used this syntax (MinecraftServer::getWorld) so I really dont know how to do ^^
  4. ok nice. i'll try to make it work and publish my code to help future person that need help.
  5. personnedu13 changed their profile photo
  6. Ok thank you for your help ! But if I want to test whenever I want, I should load the chunk when I update the list ?
  7. Ok now it work, when I place the block, the onBlockAdded method add the dim and the pos of the block to the addblocktolist method(server side only) and marked with markdirty for a further save. I want to implant 2 other method, one of them is UpdateList that test if all block in the list exist(by testing if the block in the dimension is a teleporter), but how can I get the current world to test with the dimension ?
  8. It's a little bit hard for me, I'm sorry. But it seems that the game use 3 inventory(for the workbench) : - the inventory of the player. -the workbench matrix(recipe) -the workbench craft result When you click on the block the game should open the gui and a container with the 3 inventory. And then create your custom recipe class using IRecipe.
  9. Thx for your replies, i'll try to apply your advice and see if it work. The List is static to enable the addBlock method to be call from another class but its a bad idea, I think I should use a packet to send the infos to the ModWorldSavedData class.
  10. I'm not sure, but you can add some class in your custom container that add custom recipe by testing slots with a list of recipes.
  11. Hi, I'm trying to save data using the WorldSavedData system and it work as long as I dont quit the game (not the world). Here is my code :
  12. I want to save a list that contains all tileEntity from a specific type, but I dont know how to readFromNBT and writeToNBT the dimension(World) of my TileEntities. Here is my code :
  13. Here is my code if someone want an example : GuiTeleporter : TileEntityTeleporter : ContainerTeleporter : ModPacketHandler : UpdateTe :

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.