#Trying to make it so whenever VS ship helm is broken it drops nothing

26 messages · Page 1 of 1 (latest)

deft notch
#

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

naive zenithBOT
#

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

deft notch
#

could i maybe do it with this?

wintry rapids
#

why not just remove the loot?

#

so it doesnt drop anything

queen groveBOT
#

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.

wintry rapids
#

you just copied their code

sly finch
#

Nah im an idiot lol

wintry rapids
#

all blocks have a loot table

sly finch
#

Just realised that it was exactly what they did

wintry rapids
#

all blocks that drop an item*

#

being silly

sly finch
wintry rapids
deft notch
wintry rapids
#

you can do it with loot tables too

#

lootjs just makes it easier

deft notch
wintry rapids
#

I know nothing about loot tables, gonna have to wait for someone who does, though that might take a while

deft notch
#

like somehow get the block

wintry rapids
#

normally shouldnt be able to

#

unless maybe they have items that can pick up blocks and place them

#

like bag of yurting or wahtever it was called