matt1999rd Posted December 6, 2019 Share Posted December 6, 2019 hello, In my mod I want to keep the value of a variable when closing minecraft and I don't know how to do it . It is three integer from a BlockPos... Quote Link to comment Share on other sites More sharing options...
Lea9ue Posted December 6, 2019 Share Posted December 6, 2019 Capabilities. Quote Link to comment Share on other sites More sharing options...
matt1999rd Posted December 6, 2019 Author Share Posted December 6, 2019 I create my own capability class is this a good idea ? because it compiled but doesn't work... I copy the code from EnergyCapability... Quote Link to comment Share on other sites More sharing options...
Lea9ue Posted December 6, 2019 Share Posted December 6, 2019 You are going to need to post code. Quote Link to comment Share on other sites More sharing options...
matt1999rd Posted December 6, 2019 Author Share Posted December 6, 2019 (edited) my code is not good I will come later because I saw errror in logger that prevent the tileentity to reload Edited December 6, 2019 by matt1999rd Quote Link to comment Share on other sites More sharing options...
matt1999rd Posted December 7, 2019 Author Share Posted December 7, 2019 it works well with Capability thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.