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

I've been looking through the potion code, but I could only find their ID's and how healing and about 2 other potions work.

Kain

All the potions are REALLY obfuscated on how they worked last I checked, from what I know fire resist works by the game checking if it's applied each tick before doing fire related damage, I managed to replicate this to make an armor set intercept specifically flame damage instead of both flame and lava. I know there is some kind of override or canceling function built for almost every type of damage, but I forget where I saw them...  As for strength, I don't really know too much about it, I would assume it would work somewhere in the player related classes and change your hit damage depending on whether or not it was active and what level it was, but other then that all the potions are extremely weird in how they actually function. What exactly do you want to do with these, I might be able to help you do it without using them

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

  • Author

I was just trying to looking in on how to make the player fire proof, or give the player damage buffs without using potion effects.

 

I've tried using the extinguish method on a tick. Doesn't stop lava damage though. :I

Kain

  • Author

I'm currently trying to make my own buff system, kind of like Terraria's.

Kain

Interesting, though it does make this quite a bit more complex, you could just use vanilla buffs but also show them on your buff screen/ tiles or wherever you want them, which could let the player cancel and see mini-images of all the vanilla buffs too. Other then that though, the actual way the buffs work is quite mysterious, I spent hours hunting down speed with no success.  :'(  I bet Lex or Hydro would know, but they might be too busy updating to 1.7...

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

  • Author

Aww.  :(

 

Well, I guess I'll be sticking with Minecraft's buffs then.

 

Thanks anyways.

Kain

Strength potions (doing more damage) is handled by the Shared Monster Attributes system (SMAS).

 

Interestingly, while "I am not knocked back as much" effect is handled by the SMAS, the "I punch people and they go flying" effect is not.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.