Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item Conversion in JSON #18

Closed
Baezor1 opened this issue Jan 31, 2023 · 7 comments
Closed

Item Conversion in JSON #18

Baezor1 opened this issue Jan 31, 2023 · 7 comments
Labels
2.7.0 bug Something isn't working good first issue Good for newcomers Solved Solved problems

Comments

@Baezor1
Copy link

Baezor1 commented Jan 31, 2023

Is your feature request related to a problem? Please describe.
When converting an item variable into JSON, all you get is useless information.

Describe the solution you'd like
I think it would be a great if skJson supported converting items to and from JSON.

Describe alternatives you've considered
There are ways to store different parts of an item with the ID and NBT data, but native support for this would be nice for things such as inventory storage and other use cases.

Additional Context
The current result you get from skJson looks like this:

{
   "types": [
    {
      "isAnything": false,
      "itemForm": false,
      "isAlias": false,
      "plain": false,
      "itemFlags": 2
    }
  ],
  "all": false,
  "amount": -1
}
@cooffeeRequired
Copy link
Owner

Hello what version you have?

@cooffeeRequired cooffeeRequired added the bug Something isn't working label Jan 31, 2023
@Baezor1
Copy link
Author

Baezor1 commented Jan 31, 2023

I'm on version 2.6.2

@cooffeeRequired
Copy link
Owner

cooffeeRequired commented Jan 31, 2023

What expression do you use?
Because the item serilization its supported

@Baezor1
Copy link
Author

Baezor1 commented Jan 31, 2023

With effect commands:

1. set {-test::*} to stone, apple and stone pickaxe named "&aHello World"
2. broadcast {-test::*}'s form

and now I'm getting a massive error
https://paste.gg/p/anonymous/7760e7a3c07c4486905847dd152209b5

@cooffeeRequired
Copy link
Owner

Oh, so form of list, well i will look on it tmr.

@cooffeeRequired
Copy link
Owner

image Fixed already ! Now I'm going to look at the error you sent.

@cooffeeRequired
Copy link
Owner

cooffeeRequired commented Feb 1, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.7.0 bug Something isn't working good first issue Good for newcomers Solved Solved problems
Projects
None yet
Development

No branches or pull requests

2 participants