A feedback area designed for scripting and mods suggestions and feedback. Please note bug reports and support issues will be removed.

40

Ability to Save and Load Data With Scripts

10 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    One more use case:

    - A map mod with an ability to save coordinates as waypoints.

  • 2
    Registered User commented
    Comment actions Permalink

    This is critical to the success of server development teams and projects. I wish this had more votes and got more attention, because it would open a lot of doors for server owners to manage their communities better.

  • 1
    Registered User commented
    Comment actions Permalink

    This is like needed for so many creations that would come of it!

    File cache support is needed 100%

  • 1
    Registered User commented
    Comment actions Permalink

    It should be possible to attach any data to any object, be it a block/block entity, a mob, an item, the player, the dimension or the world..  That we can't do so is highly limiting.

  • 1
    Registered User commented
    Comment actions Permalink

    Wow! This would be built-in modding! Modding will be much less confusing than now with all the different modloaders!

  • 1
    Registered User commented
    Comment actions Permalink

    +1 This is Crucial to any form of proper mod beyond just adding blocks and items

     
     
  • 1
    Registered User commented
    Comment actions Permalink

    I definitely agree that this should be possible, but I have to say that there is an inconvenient way of doing it currently.

    It is possible to save info to entities. As such, you can save the info to all players in the world.

    However, this is extremely inefficient and difficult to do well. It also doesn't work well for storing large amounts of data (such as factions, that's a lot of data to be stored and managed on every single player).

    So we do need the ability to save info through other means.

  • 0
    Registered User commented
    Comment actions Permalink

    TheLazyCowboy1

    It is possible to save info to entities

    I've already read about this in general.
    So, for my understanding, would you just save serialized JSON as a tag?

  • 0
    Registered User commented
    Comment actions Permalink

    Um, I'm not entirely sure how it works, I just know how to do it. Actually, I'm not sure if it even works for this, but I'm pretty sure it does.

    But yes, I believe it effectively stores tags in the players json.

  • 0
    Registered User commented
    Comment actions Permalink

    This is already possible, you can put the display name of a scoreboard objective to any string including serialized JSON. The ID of the scoreboard objective will always stay the same so you can always access it.