CCBlueX Forum

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

    Lightning Bolt

    Kotlin/Java
    3
    7
    288
    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.
    • WooShi999
      WooShi999 last edited by

      X)@TUTFY9SUOONTG%`)INA1.png

       val ent = EntityLightningBolt(
                  mc.theWorld,
                  target!!.posX,
                  target!!.posY,
                  target!!.posZ
              )
      
              val canlightning =  when(lightningValue.get().toLowerCase()){
                  "always" -> true
                  "ondead" -> (target!!.isDead)
                  else -> false
              }
      
              if (canlightning) {
                  if (target != null) {
                      mc.theWorld.addEntityToWorld(-1,ent)
                      mc.thePlayer.playSound("random.explode", 0.5f, 0.5f + kotlin.random.Random.nextFloat() * 0.2f)
                  }
              }
      

      Plz write it in KillAura

      H 2 Replies Last reply Reply Quote 0
      • H
        HKTB @WooShi999 last edited by

        @wooshi999 how to use?

        Ali00035 1 Reply Last reply Reply Quote 0
        • Ali00035
          Ali00035 Banned @HKTB last edited by

          @hktb write the code on KillAura.kt

          H 1 Reply Last reply Reply Quote 0
          • H
            HKTB @Ali00035 last edited by

            @ali00035 write where on killaura.kt ?

            Ali00035 1 Reply Last reply Reply Quote 0
            • Ali00035
              Ali00035 Banned @HKTB last edited by Ali00035

              @hktb in the end of KillAura.kt

              1 Reply Last reply Reply Quote 0
              • H
                HKTB @WooShi999 last edited by

                @wooshi999 said in Lightning Bolt:

                ondead

                ondead doesn't work

                Ali00035 1 Reply Last reply Reply Quote 0
                • Ali00035
                  Ali00035 Banned @HKTB last edited by Ali00035

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • 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