-
Notifications
You must be signed in to change notification settings - Fork 164
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
create rjson.scl #337
base: master
Are you sure you want to change the base?
create rjson.scl #337
Conversation
Converting this to draft since it's waiting on a fabric-carpet pr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't understand some parts of the code well enough to review them.
That's not to say it's bad code, but I cannot understand the reasons behind parts of the code.
Could you put more comments just in general?
if(0, //if you are using an old version, change it to 1 | ||
//workaround for old version | ||
//raw-json string to text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't you use system_info('game_version')
to try and do this automatically?
the function format() is too weak. so i create this scl to improve it.
define:
text-like value: entity, string, text, [will allow item after item_display_name is added]
usage:
import('rjson',...import('rjson'))
added functions:
fset_color/font/insertion/click/format(text-like value to be edit, value)
translate(key, ...with(text-like values))
keybind(key)
hovertext(text-like value as base,text-like value as hover)
examples:
translate('chat.type.text',player,text);
print(fset_font(keybind('key.inventory'),'alt')) //print e in enchanting table font