Jump to content

personnedu13

Members
  • Posts

    21
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

personnedu13's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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. 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 ?
  6. 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 ?
  7. 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.
  8. 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.
  9. 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.
  10. 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 :
  11. 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 :
  12. Here is my code if someone want an example : GuiTeleporter : TileEntityTeleporter : ContainerTeleporter : ModPacketHandler : UpdateTe :
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.