#Is it possible to create a tool that can destroy bedrock and be craftable
13 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
pls anyone help me
So also like from securitycraft reinforced blocks
And i would do the crafting recipe on my own
And also on a world with essentials, do both players need the kubejs stuff or just one
Please be patient, we're helping as fast as we can
We volunteer our time and knowledge to help people as we can.
Not everyone here will have your answer the moment you want it.
Time zones, work/life/schedules etc. also change when people are available to help.
TL;DR: Please have patience. IF and WHEN someone knows, they will assist you.
this is pretty simple startup-script, you need to modify the bedrock block to be mineable(but still nearly impossible to mine without the right tool) and then in a forge event you'll set the speed of the block breaking depending on whether or not its bedrock, this covers the bedrock breaking logic(do the same for other unbreakable blocks) as for the block drop logic you can use LootJS's server script to add/remove drops from the drop table as needed with a chance```js
//Modify Bedrock to be mineable
BlockEvents.modification(event => {
event.modify("minecraft:bedrock", block => {
block.setDestroySpeed(10000)
})
})
//Modify the break speed of bedrock
ForgeEvents.onEvent("net.minecraftforge.event.entity.player.PlayerEvent$BreakSpeed", event => {
global.breakSpeed(event)
})
/**
*
-
@param {Internal.PlayerEvent$BreakSpeed} event
*/
global.breakSpeed = event => {
try {
if (event.entity instanceof Java.loadClass("net.minecraft.world.entity.player.Player")) {
if (event.entity.mainHandItem.id != "minecraft:diamond_pickaxe") return
if (event.state.block.id == "minecraft:bedrock") {
event.setNewSpeed(11111)
}
}} catch (error) {
console.log(error)
}
}```
??kjsaddons
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.
this for example in server scripts with the lootjs addonjs LootJS.modifiers((event) => { event .addBlockLootModifier(Ingredient.all) .matchMainHand(Item.of("minecraft:diamond_pickaxe")) .randomChance(0.3) // 30% .removeLoot(Ingredient.all) .addLoot("minecraft:diamond"); });
K i will try it tommorow and check it out