Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • KiiNGz8

KiiNGz8

Members
 View Profile  See their activity
  • Content Count

    2
  • Joined

    October 22, 2020
  • Last visited

    November 7, 2020

 Content Type 

  • All Activity

Profiles

  • Status Updates
  • Status Replies

Forums

  • Topics
  • Posts

Calendar

  • Events

Everything posted by KiiNGz8

  1. KiiNGz8

    [1.16.2] Apply an effect right after another finish

    KiiNGz8 replied to KiiNGz8's topic in Modder Support

    I'm overriding a item class, am I still able to use events?
    • October 30, 2020
    • 3 replies
  2. KiiNGz8

    [1.16.2] Apply an effect right after another finish

    KiiNGz8 posted a topic in Modder Support

    So I was trying to make an ability for my weapon and I want it to apply the slowness effect right after the other ones finish is there any way of doing so? I´ll put my code if it helps @Override public ActionResult<ItemStack> onItemRightClick(World worldIn, PlayerEntity playerIn, Hand handIn) { playerIn.getCooldownTracker().setCooldown(RegistryHandler.FOREST_STRIKER.get(), 40 * 20); playerIn.addPotionEffect(new EffectInstance(Effects.SPEED, 15 * 20)); playerIn.addPotionEffect(new EffectInstance(Effects.RESISTANCE, 15 * 20)); playerIn.addPotionEffect(new EffectInstance(Effects.JUMP_BOOST, 15 * 20)); playerIn.getItemStackFromSlot(EquipmentSlotType.MAINHAND).damageItem(900, playerIn, e -> e.sendBreakAnimation(EquipmentSlotType.MAINHAND)); return super.onItemRightClick(worldIn, playerIn, handIn); } }
    • October 30, 2020
    • 3 replies
  • All Activity
  • Home
  • KiiNGz8
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community