Git Product home page Git Product logo

Comments (11)

ZenithRogue avatar ZenithRogue commented on August 11, 2024 5

Leave it to mojang to release major breaking changes in a minor release, lol

from optifine.

SHsuperCM avatar SHsuperCM commented on August 11, 2024 1

Json is definitely a very harsh transition but it does fit with vanilla resourcepacks formats pretty well.

Another approach to that issue is using what's being done in the language file format conventions, where the namespace and path are separated by a dot, for example

component.minecraft.custom_name=Example
# or, alternatively, since minecraft is the defaulted namespace, whenever a namespace is not present
component.custom_name=Example

from optifine.

IMS212 avatar IMS212 commented on August 11, 2024

having : in a key value may not be good for property reading code

from optifine.

ZenithRogue avatar ZenithRogue commented on August 11, 2024

having : in a key value may not be good for property reading code

how would you work around that? split it into multiple properties?

namespace=minecraft
component.custom_name=Example

from optifine.

IMS212 avatar IMS212 commented on August 11, 2024

Use JSON? Not the easiest solution to move to, but would work...

from optifine.

SHsuperCM avatar SHsuperCM commented on August 11, 2024

Something else to be considered while making major/breaking changes is that components can be of any type and only then are serialized into nbt. There have been reports of item components slowing down the game(specifically talking about MC-270668). Might be the time to handle components directly instead of their nbt representation.

It'd be a shame to serialize a Text object to nbt just to check it against the old cit matching.

from optifine.

soqb avatar soqb commented on August 11, 2024

note that the .properties spec officially supports key escapes like the following:

component.minecraft\:custom_name=Example

also, we should probably be using components instead of component to fit with the NBT-ified data format.

from optifine.

PickleOnAString avatar PickleOnAString commented on August 11, 2024

any progress?

from optifine.

ZenithRogue avatar ZenithRogue commented on August 11, 2024

the first preview version of OptiFine for 1.20.6 just came out, so it may be a little while before this gets added

from optifine.

STICKzilla21 avatar STICKzilla21 commented on August 11, 2024

Some news? What solution is there to this right now to be able to continue using CIT in 1.20.6?

from optifine.

STICKzilla21 avatar STICKzilla21 commented on August 11, 2024

I have also noticed that when using component.custom_name=Example all the items related to it change texture, regardless of the name

from optifine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.