Jump to content

PCDCreeper

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by PCDCreeper

  1. I don't believe so, I had to manage this with eventhandlers and the interface IDamageHandlingArmor. I could be wrong, though
  2. This is, in fact, what I was looking for. It seems this might be a long project, so I'll implement this last!
  3. Hey there guys! I'm making a combat-style mod that has ridiculously high speed combat (think superhuman reflexes stuff). I wanted a level system for a sort of "reflex level" or something, and I have a general idea for how to do that, but I want the player to have the ability to change their perception speed based on that level (like in superhot, when you slow down time). My first idea is creating a potion effect to handle all of this, and use the levels for that, but how does one actually go about changing the time speed of minecraft at all, let alone syncing it to a server??? I found a mod that does something kind of like this, by changing the tickrate of the game, should I be trying to do the same? Is this even possible? A nudge in the right direction would help.
  4. I found the location of nausea, but it seems to be hard coded. not sure how to mess with this. How can I modify private void setupCameraTransform(float partialTicks, int pass) if it is private? the function has a direct call to MobEffects.NAUSEA Id prefer a way of cloning in a seperate extended class to maybe rewrite just that bit and maybe even change the effect a bit.
  5. I need to tint everything kinda red, like imagine if a red film was put over everything (think super secret settings) I also need to replicate nausea (the warping screen) My problem is that i cannot seem to find nausea to replicate it. I also tried GlStateManager.color(255, 128, 0, 5); inside of a potion effect's result in a (mostly "might as well see") fashion and yeah that didnt do anything but crash the game on the server side... maybe check if potion is activated then do this?: GlStateManager.color(255, 128, 0, 5); if anyone has a function that would work in a potion's performEffect function that would be great P.S. im thinking i might have to make a whole shader handler and just load shaders for effects...? like i said, help!
  6. How might i go about making it server side instead? and the base classes are from a tutorial but it has been changed a lot since I learned java...
  7. I am trying to set a potion after a delay. basically when a block is right-clicked then timers start before said effects start. Im using Minecraft.getMinecraft().player.addPotionEffect(new PotionEffect(ModPotions.MUNCHIES, 1200, 10, false, false)); and this makes the effect start, but then weird things happen Gui displays the potion effect, but the actual effect (a hunger copy) doesnt happen, and upon reaching the potion effect end, it just sits, making me believe im missing a step. When i use public static final Item EDIBLE_COOKIE = new FoodEffectBase("edible_cookie", 2, 0.1f, false, new PotionEffect(ModPotions.MUNCHIES, 10000, 0, false, false), "This should be fun!"); It works just fine. Effect works as normal. using /effect also works perfectly So what is it that im missing? I feel like somewhere im missing something obvious...
×
×
  • Create New...

Important Information

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