-
Notifications
You must be signed in to change notification settings - Fork 108
Add a command for kubejs /kjs quote_style double/single #1009
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
base: main
Are you sure you want to change the base?
Conversation
Used to choose between double quotes or single quotes when copying Items Id or Tag
…d apply new quotation mark changes
Due to the ClickEvent limitation of Minecraft itself, it has to be reused /kubejs hand Command to retrieve new item ID and Tag |
…o re-enter the /kjs hand command
How about template string style? Item.of(`xxx`) |
ok |
Now using mixin to modify the original ClickEvent, no need to input again /kubejs hand Get a new item ID or Tag |
IMO this should use an enum rather than a boolean to support template literal style strings as well. |
I think your idea is correct, and I have also considered this issue, but it seems that there are no mods that use ClickEvent to obtain the ID of an item, right? |
If possible, perhaps we could revert back to my previous idea of having the user re-enter the /kubejs hand command |
Description
Used to choose between double quotes or single quotes when copying item ID or Tag.
Because I have found that many players find it tedious to format between double and single quotes when copying things similar to ItemId while writing KubeJS code
Example Script
Use double style to display after pressing ctr+v in the editor
Use single style to display after pressing Ctrl+V in the editor
Other details