#add global loot to all mob drops not working (lootjs)
9 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
idk where you got .thenAdd from but it's .addLoot(...items) so you can do: .addLoot('k_turrets:raw_titanium', 'ars_nouveau:glyph_orbit')
thanks, i got it from ai bots.
onEvent('lootjs.modifiers', (event) => {
event.addLootTypeModifier(LootType.ENTITY)
.addLoot('k_turrets:raw_titanium', 'ars_nouveau:glyph_orbit');
});
i tested this in a new world, no errors but still no drops ;/
the event name is just lootjs
onEvent('lootjs', (event) => {
event.addLootTypeModifier(LootType.ENTITY)
.addLoot('k_turrets:raw_titanium', 'ars_nouveau:glyph_orbit')
})
also
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.
thx