-
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 (2/8)
0
Reputation
-
[1.10.2] WorldSavedData dont save after closing game
personnedu13 replied to personnedu13's topic in Modder Support
//Cannot instanciate type MinecraftServer... World world = (MinecraftServer::getWorldByDim) can I have an exemple plz ? It will be faster... -
[1.10.2] WorldSavedData dont save after closing game
personnedu13 replied to personnedu13's topic in Modder Support
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. -
[1.10.2] WorldSavedData dont save after closing game
personnedu13 replied to personnedu13's topic in Modder Support
I rarely used this syntax (MinecraftServer::getWorld) so I really dont know how to do ^^ -
[1.10.2] WorldSavedData dont save after closing game
personnedu13 replied to personnedu13's topic in Modder Support
-
[1.10.2] WorldSavedData dont save after closing game
personnedu13 replied to personnedu13's topic in Modder Support
Dont find it.... -
[1.10.2] WorldSavedData dont save after closing game
personnedu13 replied to personnedu13's topic in Modder Support
ok nice. i'll try to make it work and publish my code to help future person that need help. -
personnedu13 changed their profile photo
-
[1.10.2] WorldSavedData dont save after closing game
personnedu13 replied to personnedu13's topic in Modder Support
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 ? -
[1.10.2] WorldSavedData dont save after closing game
personnedu13 replied to personnedu13's topic in Modder Support
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 ? -
[1.12] How to make Costum Crafting table with costum recipes?
personnedu13 replied to IlTosaerba's topic in Modder Support
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. -
[1.10.2] WorldSavedData dont save after closing game
personnedu13 replied to personnedu13's topic in Modder Support
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. -
[1.12] How to make Costum Crafting table with costum recipes?
personnedu13 replied to IlTosaerba's topic in Modder Support
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. -
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 :
-
[1.10.2] how to save world using WorldSavedData ?
personnedu13 replied to personnedu13's topic in Modder Support
-
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 :
-
[1.10.2] data beetween gui and tileEntity
personnedu13 replied to personnedu13's topic in Modder Support
Here is my code if someone want an example : GuiTeleporter : TileEntityTeleporter : ContainerTeleporter : ModPacketHandler : UpdateTe :