#Custom "needs_X_tool" tag for blocks

29 messages · Page 1 of 1 (latest)

glacial yarrow
#

Is it possible to make custom tags akin to "needs_iron_tool", which requires you to use iron pickaxe or better to break the block?

wanton ridgeBOT
#

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

glacial yarrow
#

Can you set specific mining level for a block? Like I want mining level 5 on a block

scenic hinge
#

provided you have a mod that adds a mining level five tool, yes

#

they will have a tag for that , just apply that

glacial yarrow
#
ItemEvents.toolTierRegistry (event => {
    event.add('Copper', tier => {
          tier.uses = 200
          tier.speed = 4
          tier.attackDamageBonus = 1.5
          tier.level = 5
          tier.enchantmentValue = 12
          tier.repairIngredient = '#forge:ingots/copper'
    })
})
#

like, i have made custom tool tier

#

set it to lvl5

#

i cant make a block which requires mining lvl 5?

scenic hinge
#

dont think so

glacial yarrow
#

.harvestTool('pickaxe',5)?

scenic hinge
#

where does that come from

glacial yarrow
#

idk

#

i just searched these here

scenic hinge
#

well its not in the source so isnt a thing

glacial yarrow
#

oh damn

#

ooo

#

it doesnt work at 1.18+

#

hm

#

maybe i should use craft tweaker for this one

#

nvm

#

found kubejs addon

wooden shell
wooden shell
#

@glacial yarrow whenever you want to answer me

glacial yarrow
#

hi

glacial yarrow
#

@wooden shell