Posted November 5, 201311 yr 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
November 5, 201311 yr 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! http://i.imgur.com/ghgWmA3.jpg[/img]
November 5, 201311 yr 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
November 5, 201311 yr Why not use buffs? There's not much bad about them, and you can just have them reapply each tick according to an if then statment... Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more! http://i.imgur.com/ghgWmA3.jpg[/img]
November 5, 201311 yr Author I'm currently trying to make my own buff system, kind of like Terraria's. Kain
November 5, 201311 yr 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! http://i.imgur.com/ghgWmA3.jpg[/img]
November 5, 201311 yr Author Aww. Well, I guess I'll be sticking with Minecraft's buffs then. Thanks anyways. Kain
November 5, 201311 yr 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.