#Trying to make an event run every couple of minutes but it won't work.
6 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)
})
[➤](#archived-example-scripts message)
My first attempt at reviving the old 1.12 ClearLag script made by Latvian: https://mods.latvian.dev/books/kubejs/page/clearlag-112
In-game commands aren't working with 1.16, so we're left with pseudo-commands, nothing I can do about it!
Usage:
!cl or !clearlag to force an instant clearlag
!cl results or !clearlag results to see the results of the last clearlag
!cl start or !clearlag start to start the 30 minute timer
!cl stop or !clearlag stop to stop the timer after the next clearlag
runCL can be toggled true/false to enable or disable the timer on server start
minutes can be set to how many minutes you want in between each clearlag. Use with caution.
blacklist is a list of items, tags or mods you want the clearlag to avoid at all times
If there will be updates, I will post them in the thread and pin the latest one!
.