Jump to content

Recommended Posts

Posted (edited)

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!"

Spoiler

The video essential just shows how he modified every block to have the slipperiness value of an ice block.

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

Edited by Kavatch
Added Version in Title

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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