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.

Kavatch

Members
  • Joined

  • Last visited

  1. Hey! So I just saw this Video: https://www.youtube.com/watch?v=1BVE51x---0 I though: "That's a cool concept! Lets make this into a mod!" I then got to work an set up a workspace in Intellij and began. However I notices really fast, that I couldn't modify the slipperiness value because its set to private final. After some research in the forums and in the far corners of the internet I found I probably needed to use reflections to change these values. The first problem is that this is the second time I ever tried to work with forge. So it's a pretty new environment to work in. And the second problem is that - although I have done quite a bit in Java - I have never really done reflections. I have found some github repositories that seem to have "solved" this problem, however I couldn't find an "isolated" version. What do I mean by "isolated"? Well I mean a code snipped which I can look at and see exactly what It does when and why, and doesn't do anything else in that matter. But don't be misled, you don't need to spoonfeed me in that matter. I will gladly take any hint to the right direction. Well and I also don't exactly have any failed attempts, I don't event know how I could start. I just though I will probably need to use a loop of some kind to actually modify each block. For every hint or code snipped I would be very grateful. ~ Kavatch
  2. Thanks, but I think your code is just to display the particles around the block. My main problem is to first find the corresponding blocks around the player and after this to display the particles / other effects around the block. Now that I know how the particles would work, I would need some way to find the block at all.
  3. Hey, I am currently looking for a way to see blocks through other blocks, because I want to make a mod which should allow the player to craft an item (e.g. with diamonds) to find blocks of the same kind (in this example diamonds ore). The problem is that I don't know how to render the blocks at the moment, so far I'm so that crafting the items etc works, but I'm just hanging on rendering the blocks. I know that there is an event called RenderWorldLastEvent but I don't know how to find a block there (in this case a diamond ore) and make a box around it.

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.