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.

Featured Replies

Posted

Hooray, another post from me..

 

Anyway, I've worked with bukkit quite a bit, and using its storage methods (I.E. config files, txt files, sql, etc..). Obviously some are better than others depending on the circumstances.

 

For forge however, I haven't looked into data storage too much just yet, and I was wondering what sort of options there are, and what the best options are in a case of just storing pure data, where the structure doesn't need to be changed but the data does.

 

EDIT: For reference, assume the data is all being stored purely as text (Strings)

It does not need to be edited externally, it's used purely for mod storage.

 

This being in terms of reliability, stability, efficiency, and usability.

Feel free to post opinions and such.

Interesting topic.

 

You'll have to be a bit more specific about the kind of data, access and modification you require, though.

 

There is no catch-all storage method.

You've mentioned the kind of data (basically your description is "random data" so far, which is the worst kind of data to store), but not the access and modification you require.

 

Without this info, anyone would be hard pressed to make suggestions for a storage model.

What is it you're trying to store data about? Players? World? Also, do you want to be able to manually edit the data through config files, or do you want it to be stored in the world?

  • Author

The data being stored is just pure text, basically (Assume the amount could be arbitrarily large, or potentially small)

Data does not need to be edited manually, just by a mod. It should be stored outside the world though.

 

NBT is Minecraft's in built storage system. Need I say more?

We all stuff up sometimes... But I seem to be at the bottom of that pot.

But if you want to store data directly to a player you probably want to use IExtendedEntityProperties!

@Kriki98 That's NBT... All it is is a wrapper for it really.

We all stuff up sometimes... But I seem to be at the bottom of that pot.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.