KubeJS (Old)

KubeJS (Old)

3M Downloads

Ability to add Tools Level requirements to Vanilla Blocks

Shadows-Peak opened this issue ยท 1 comments

commented

Describe the feature

I have looked around through various issues, and over the wiki, and tried to figure out how this might be possible with tags. However, if it is possible, then no one on here has bothered provided an example of such. What I would like to be possible is the capability to remove the need iron pickaxe tag from diamond ore, and add the need diamond pickaxe tag to it. Thank you for your help.

Additional info

I am using a 1.19.2 version

commented

Upon further examination, I made an error and found a way using a server event:

ServerEvents.tags('block', event => {
event.remove('minecraft:needs_iron_tool','minecraft:diamond_ore')
event.add('minecraft:needs_diamond_tool', 'minecraft:diamond_ore')
})