minecraft-data icon indicating copy to clipboard operation
minecraft-data copied to clipboard

Add Advancements Data

Open Lianecx opened this issue 2 years ago • 47 comments

I've created an advancement data file for another project and noticed that this repo doesnt have data for advancements yet.

Eejit and I adjusted it to fit the style of other data files and we added lots of new informational properties.

  • [x] Advancements
  • [x] Advancement criteria
  • [x] Older Versions
  • [x] Added schema
  • [x] Updated READMEs

Lianecx avatar Jun 21 '22 15:06 Lianecx

How did you create it?

u9g avatar Jun 21 '22 16:06 u9g

How did you create it?

At first, I just copied over each of the properties manually, but i realised I could've just used the advancements table of the fandom wiki and convert it to json using a tool. For the criteria, Ill have to do them manually as they are not listed anywhere on the wiki.

Lianecx avatar Jun 21 '22 18:06 Lianecx

Is there anything wrong with it? Because the CI test did fail 🤔

Lianecx avatar Jun 21 '22 18:06 Lianecx

Is there anything wrong with it? Because the CI test did fail 🤔

Only that it isn't included in dataPaths.json

Eejit43 avatar Jun 21 '22 18:06 Eejit43

Ah I see, sorry about that

Lianecx avatar Jun 21 '22 18:06 Lianecx

I also need to create a schema right?

Lianecx avatar Jun 21 '22 18:06 Lianecx

How did you create it?

At first, I just copied over each of the properties manually, but i realised I could've just used the advancements table of the fandom wiki and convert it to json using a tool. For the criteria, Ill have to do them manually as they are not listed anywhere on the wiki.

This could probably all be automated using the minecraft language file.

Lianecx avatar Jun 21 '22 18:06 Lianecx

How did you create it?

At first, I just copied over each of the properties manually, but i realised I could've just used the advancements table of the fandom wiki and convert it to json using a tool. For the criteria, Ill have to do them manually as they are not listed anywhere on the wiki.

This could probably all be automated using the minecraft language file as it contains all the advancement descriptions, displaynames and IDs (resource locations).

Lianecx avatar Jun 21 '22 18:06 Lianecx

I'll work on making a tool to generate this automatically

Eejit43 avatar Jun 21 '22 19:06 Eejit43

I'll work on making a tool to generate this automatically

If you want, I can do it myself :D

Lianecx avatar Jun 21 '22 19:06 Lianecx

Do you know what wrong in the bedrock CI test?

Lianecx avatar Jun 21 '22 19:06 Lianecx

Unsure about the CI test, but already working on that tool. I'll let you know when I make progress!

Eejit43 avatar Jun 21 '22 19:06 Eejit43

Unsure about the CI test, but already working on that tool. I'll let you know when I make progress!

Okay, sure then!

Lianecx avatar Jun 21 '22 19:06 Lianecx

Alright I've made a a tool to generate it. I'll create a separate PR and add that data there!

Eejit43 avatar Jun 21 '22 19:06 Eejit43

G

Alright I've made a a tool to generate it. I'll create a separate PR and add that data there!

Awesome!

Lianecx avatar Jun 21 '22 19:06 Lianecx

See #584! Thanks for making this, that was a very good idea!

Eejit43 avatar Jun 21 '22 19:06 Eejit43

Why is this data helpful? Wouldn’t it be more helpful for you to just access the raw advancement json from a datapack?

u9g avatar Jun 21 '22 19:06 u9g

Why is this data helpful? Wouldn’t it be more helpful for you to just access the raw advancement json from a datapack?

It's great to have every minecraft data combined in a single package. I'm not exactly sure about the raw advancement json youre talking about. Isnt every advancement stored in seperate files which makes everything very inconvenient? Also, the displayName and description are in the language file only and not included in the raw json.

Lianecx avatar Jun 21 '22 20:06 Lianecx

@Eejit43 Let me know if you want me to change the format to anything specific.

Lianecx avatar Jun 22 '22 10:06 Lianecx

Data for other versions, back to 1.12 should also be added

extremeheat avatar Jun 22 '22 21:06 extremeheat

Data for other versions, back to 1.12 should also be added

u9g said separate PRs should be created, is that not the case?

Eejit43 avatar Jun 22 '22 21:06 Eejit43

Separate PRs for different features, one PR per feature. Doing separate PRs per version here would mean 10 different PRs with possibly incompatible schemas, so I believe it makes sense to also test that your current schema works on all present versions

extremeheat avatar Jun 22 '22 21:06 extremeheat

Separate PRs for different features, one PR per feature. Doing separate PRs per version here would mean 10 different PRs with possibly incompatible schemas, so I believe it makes sense to also test that your current schema works on all present versions

alright I'll start on that but we'll need to wait a day until Lianecx will accept my PR

Eejit43 avatar Jun 22 '22 21:06 Eejit43

Your PR has already been merged to this Lianecx's branch

extremeheat avatar Jun 22 '22 21:06 extremeheat

Your PR has already been merged to this Lianecx's branch

I'm aware of that, you said you wanted me to add the data for the other versions to this PR, which I'll have to make a PR to their repository first

Eejit43 avatar Jun 22 '22 21:06 Eejit43

Yes you can collaborate with them on it (PRs are how github collaboration works, but Lianecx can also give you write perms to the branch if he wants)

extremeheat avatar Jun 22 '22 21:06 extremeheat

Yes you can collaborate with them on it (PRs are how github collaboration works, but Lianecx can also give you write perms to the branch if he wants)

They didn't give me perms however so we'll have to wait.

Eejit43 avatar Jun 22 '22 21:06 Eejit43

No rush to merge this PR, just focus on the work :). Will be reviewed by rom/u9g when it's ready for review

extremeheat avatar Jun 22 '22 21:06 extremeheat

Yes you can collaborate with them on it (PRs are how github collaboration works, but Lianecx can also give you write perms to the branch if he wants)

They didn't give me perms however so we'll have to wait.

Just open a pr, no need to wait.

Lianecx avatar Jun 23 '22 11:06 Lianecx

Separate PRs for different features, one PR per feature. Doing separate PRs per version here would mean 10 different PRs with possibly incompatible schemas, so I believe it makes sense to also test that your current schema works on all present versions

alright I'll start on that but we'll need to wait a day until Lianecx will accept my PR

I dont understand why youre in such a rush. You didnt even create a PR otherwise it wouldve been merged by now.

Lianecx avatar Jun 23 '22 11:06 Lianecx