Custom tool

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

HackerMM123

Member
Apr 7, 2021
1
0
1
34
Category: Custom Tools
Suggested name: Ballshooter
Spigot/Skript Version: 2.4
What I want:
A command that gives you a blaze rod with the ability to spawn an player head that will fly and explode on impact (Not breaking blocks)
Ideas for commands: /spawnball
Ideas for permissions: bs.spawn
When I'd like it by: 1 week
 
So im guessing you dont know coding that much so try this (I didnt test this):
Code:
# its without the player head but you can do it by
# doing set last spawned armor stand helmet to head of "username"
#also exploding requires colide events and its ease to implement with some addons so just a collision event and check if it has metadata value "ball"
command /shoot:
  trigger:
    if player has permission "ball.shoot":
      spawn armor stand at location of player
      push last spawned armor stand at force 3
      add "ball" to metadata of last spawned armor stand
      set {_ball} to last spawned armor stand
      set {_air} to true
      while {_air} is true:
        wait 1 tick
        loop all blocks around {_ball} in radius 1.5:
          if loop-block is not air:
            set {_air} to false
       create a fake explosion at location of {_ball}
       loop all living entities around {_ball}:
         if loop-entity is not player:
           damage loop-entity by 3 hearts #explosion damage
    else:
      message "&cYou cannot use this command!"
 
Last edited: