Everything posted by personnedu13
-
[1.10.2] WorldSavedData dont save after closing game
//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
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
I rarely used this syntax (MinecraftServer::getWorld) so I really dont know how to do ^^
-
[1.10.2] WorldSavedData dont save after closing game
- [1.10.2] WorldSavedData dont save after closing game
Dont find it....- [1.10.2] WorldSavedData dont save after closing game
ok nice. i'll try to make it work and publish my code to help future person that need help.- [1.10.2] WorldSavedData dont save after closing game
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
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?
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
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?
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.- [1.10.2] WorldSavedData dont save after closing game
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 ?
- [1.10.2] how to save world using WorldSavedData ?
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
Here is my code if someone want an example : GuiTeleporter : TileEntityTeleporter : ContainerTeleporter : ModPacketHandler : UpdateTe :- [1.10.2] data beetween gui and tileEntity
Finally ! Thx you very much ! As I see I dont need to make a packet on the opposite side because I can get it from the te in the constructor.- [1.10.2] data beetween gui and tileEntity
nothing, my misstake.- [1.10.2] data beetween gui and tileEntity
this is the old version of my code, in the actual code, I just reset the packet and this code is how the old code look like. the actual is empty and look like this : How should I wrote the packet if I want to send to the TileEntity the actual side ?- [1.10.2] data beetween gui and tileEntity
here is the old code : Any idea for a syntax ?- [1.10.2] data beetween gui and tileEntity
The UpdateTe packet is trying to update the TileEntity and I've failed.- [1.10.2] data beetween gui and tileEntity
Hi, I want to create a complex tileentity updated when a button is pressed in the gui. But I've got some problems and I just dont understand how set the tileentitydata from the gui. Here is my class : I just want to send and receive the sideout value beetween gui and tileentity. GuiTeleporter : TileEntityTeleporter : and ContainerTelepoter : Help ! - [1.10.2] WorldSavedData dont save after closing game
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.