Navigation

    CCBlueX Forum

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

    Lightning Bolt

    Kotlin/Java
    3
    7
    112
    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?

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

          @hktb write the code on KillAura.kt

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

            @ali00035 write where on killaura.kt ?

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

              @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

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

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post