#It helps to make a script that works when you press a key and have a specific item in your hand
16 messages · Page 1 of 1 (latest)
.
You can write your code in a codeblock by typing it between the codeblock delimiters:
Note that these are backticks, not apostrophes
```js :arrow_left:
ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
``` :arrow_left:
This example will look like this:
ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
NEVER use any AI to generate KubeJS code. They currently know very little about it, and what they do know is often outdated or false. You can instead look at the KubeJS wiki or ask for help in #1047320998199955458.
ok
ok
Hello, can you help me to make a script with this version KubeJS Fabric 2001.6.5-build.14 to press a specific key, for example G key, if you have a specific item in your hand, run a command, for example command /play sound
Please be patient, we're helping as fast as we can
We volunteer our time and knowledge to help people as we can.
Not everyone here will have your answer the moment you want it.
Time zones, work/life/schedules etc. also change when people are available to help.
TL;DR: Please have patience. IF and WHEN someone knows, they will assist you.
Ok
no?
no u
I don't understand
Gnome is a bot that helps use volunteers to help someone better (also has file uploads but doesn't matter) and these are just some automatic answer setup, if you ping him he'll respond this
a