Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

.harvestTool() isnt working in the code below:110267009_ScreenShot2021-08-17at11_33_43AM.thumb.png.6fc8c9ea4aeb11ab81829ac3c4a3d635.png

The block doesnt mine any faster if i use a pickaxe and it wont drop even if i use a pickaxe. I commented out .requiresCorrectToolForDrops() and it dropped so i know that the loottable works. 

  • Author

Could you give me an example of adding a block to a tag i am a little confused on how to do it.

 

look in your IDE there is the client-extra.jar file inside there are the vanilla tags the first is okay, the others are wrong

the tag should be located in data/minecraft/tags/blocks/mineable/pickaxe and data/minecraft/tags/blocks/mineable/needs_iron_tool
the file should look like yours but remove the minecaft entrys

Edited by Luis_ST

  • Author

just to confirm i create  a new file called pickaxe.json and needs_iron_tool.json

So what do I need to write in pickaxe.json ?? I searched for so long and I can't find anything that would help me :(

 

Capture.thumb.PNG.f2e9c9ca590001e83bd25d504c115312.PNGCapture.thumb.PNG.c49aebf7150cbe4df44e72eb350c6f36.PNGCapture.thumb.PNG.fa5ae23f557fed7dc67d1649bc28e568.PNG

This is what I write , but it still don't work , I really don't understand what i'm doing wrong

the needs_iron_tool tag is in the wrong directory

On 8/17/2021 at 9:54 PM, Luis_ST said:

the tag should be located in data/minecraft/tags/blocks/mineable/pickaxe and data/minecraft/tags/blocks/mineable/needs_iron_tool

 

Edited by Luis_ST

Oh so I create a package name minecraft.tags.blocks.mineable.pickaxe and then create a pickaxe.json file in it and another package minecraft.tags.blocks.mineable.need_iron_tool and then create a need_iron_tool.json in it ?? 

 

ups my mistake😅, it should be:

pickaxe.json in

18 hours ago, Luis_ST said:

data/minecraft/tags/blocks/mineable/pickaxe

and need_iron_tool.json in

18 hours ago, Luis_ST said:

data/minecraft/tags/blocks/needs_iron_tool

 

Edited by Luis_ST

Capture.thumb.PNG.19918e48cfb449c28d7a882bb089524d.PNG

It's still not working , the block takes a really long time to break and don't drop with an iron pickaxe i'm sooo lost :(

 

 

compare this path with yours

18 hours ago, Luis_ST said:

data/minecraft/tags/blocks/needs_iron_tool.json

 

Edited by Luis_ST

Capture.thumb.PNG.04391468657ef926b76b7129bd80d1dd.PNGMy bad , I changed it but hum , still not working sadly

Edited by Sotsuu

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.