Ive created a modpack on 1.18.2, there are about 4-5 dungeon mods, I need a way to balance loot from chests in the dungeons. So far I have tried a couple of variations of code, created by myself and AI, nothing helped. The goal is to randomly delete half of the items in chests and reduce quantity in half.
Here is the example of a code I have tried:
onEvent('kubejs.worldgen.loot_tables', event => {
event.remove('minecraft:chests/*');
});
#Is there a way to reduce in half all the stuff spawning in chests/barrels.
6 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
LootJS is an addon for KubeJS that allows modifying loot from all sources dynamically (much nicer than loot tables)!
It also supports removing loot added by mods, unlike KubeJS' current loot table events.
and do not use ai kubejs is not entirely js
??ai
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.