#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)

fading ploverBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

crude hare
#

.

hushed jayBOT
#

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.

hushed jayBOT
#

ok

crude hare
#

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

hushed jayBOT
#

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.

hushed jayBOT
crude hare
hushed jayBOT
#

no u

crude hare
hushed jayBOT
dim igloo
crude hare
#

a