#making blocks silk-touch-able

5 messages · Page 1 of 1 (latest)

faint turtle
#

im looking to make some blocks (electrodynamics ceramic-lead radiation shielding) able to be picked up with silk touch. I assume theres a reasonably easy way of doing this but i just couldn't find it

red sailBOT
#

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

honest inletBOT
#

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.

plain mauve
honest inletBOT
#

[➤](#1239590978386526269 message)

LootJS.modifiers((event) => {
    event.addBlockLootModifier("mod:block") // mod:block is the block you want to modify it's drops
    .randomChanceWithEnchantment("minecraft:silk_touch", [1, 0]) // [1, 0] means without the enchantment
    .removeLoot(Ingredient.all) // this exists to remove the old drops (NOTE: the removeLoot func must be before addLoot or else you won't get any drop)
    .addLoot("mod:newdrop") // mod:newdrop is what your mod:block will drop when mined  
})