Hello I'm new to Kubejs and this is the script I put inside of server_scripts :
BlockEvents.broken('vs_eureka:oak_ship_helm', event => {
event.block.set('minecraft:air')
event.cancel()
})
and it works as intended if you try breaking it by hand but you can bypass it by just blowing up the ship helm with tnt, is there any way I can do this just using base kubejs instead of installing a addon
#Trying to make it so whenever VS ship helm is broken it drops nothing
26 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
could i maybe do it with this?
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.
you just copied their code
Nah im an idiot lol
all blocks have a loot table
Just realised that it was exactly what they did


is lootjs the only way? I don't want to add a whole another addon just for 1 thing, if I can just do on base kubejs
how would I write it then?
I know nothing about loot tables, gonna have to wait for someone who does, though that might take a while
ok i went ahead and got lootjs anyways and this is what i wrote and it works pretty well, is there any way people can bypass this or no
like somehow get the block

