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

Hello,

is it possible to have a custom tool "know" about the Block the player is currently Mining with it and from what direction he is doing it?

I could calculate it with the onUsingTick() function but I was hoping that there would be a Method for it.

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

  • Author

I basically want to get the coordinates of the block and the side im looking at, while im mining / left-clicking it.

I colored it in this screenshot:

 

 

iA041.jpg

 

 

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

  • Author

I am creating one of those common mining tool that mines more than a single block and I want the other blocks to display cracks as well.

I also would like to retrieve the Information once the block is mined as well since the onBlockDestroyed() method in ItemTool does not pass a the side of the mined block. I could of course raytrace the given players view but perhaps there are any easier solutions.

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

  • Author

Is there actually a function that gets called while an item is used to mine something?

I misunderstood onItemUseTick() for such a method but as it turns out its for eating.

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Guest
This topic is now closed to further replies.

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.