CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    [CORE] Removing client-sidely invisiblity effect.

    Scripts
    1
    1
    130
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      idk my name last edited by idk my name

      Perhaps on Minecraft version. I'm using 1.12.2 b73 so I use custom .srg produced by b73 1.12.2 build and so on 1.12.2 mappings.
      Why onTick? If you will use it in onUpdate you'll be somehow visible-invisible, every ten ticks you'll get invisibility for a tick so player's hand will disappear (and player model) for a tick.

      onTick: function(e) {	
      	setFlagMethod = Entity.class.getDeclaredMethod("func_70052_a", java.lang.Integer.TYPE, java.lang.Boolean.TYPE)
      	setFlagMethod.setAccessible(true)
              mc.thePlayer && mc.theWorld && mc.thePlayer.isInvisible() && setFlagMethod.invoke(mc.thePlayer, 5, false) && mc.thePlayer.removePotionEffect(MobEffects.INVISIBILITY)
          }
      
      1 Reply Last reply Reply Quote 1
      • First post
        Last post
      About
      • Terms of Service
      • Privacy Policy
      • Status
      • Contact Us
      Downloads
      • Releases
      • Source code
      • License
      Docs
      • Tutorials
      • CustomHUD
      • AutoSettings
      • ScriptAPI
      Community
      • Forum
      • Guilded
      • YouTube
      • Twitter
      • D.Tube