Jump to content

Giant Sword


SIG12

Recommended Posts

Commands:

/giant - Gives you the giant sword

 

Addons:

SkBee

 

Code:

 

# Addons Needed: SkBee
 
options:
 
    # Permission
 
    perm: giant.use  # Perm Here  
    noperm: &cYou cannot do this command! # No Perm message here
 
    # Sounds
 
    success: play sound "entity.experience_orb.pickup" with volume 1 to the player
    fail: play sound "entity.bat.death" with volume 1 to the player
    tpsound: play sound "entity.enderman.teleport" with volume 2 to player  
    giantsound: play sound "block.anvil.land" with volume 1 to the player
 
command /giant:
    permission: {@perm}
    permission message: {@noperm}
    trigger:
        give player 1 of unbreakable diamond sword named "&eGiant Sword" with lore "&6Item Ability: Giant's Slam &e&LRIGHT CLICK" and "&7Slam your giant sword into the ground dealing &e100,000&7 damage while doing so!" and "" and "&6&lLEGENDARY SWORD"
 
on right click:
    if player's held item is diamond sword:
        if name of player's held item is "&eGiant Sword":
            {@giantsound}
            send action bar "&b-150 Mana &7(&eGiant Slam&7)" to player
            spawn giant at location of player
            set name of last spawned entity to "Dinnerbone"
            apply invisibility 1 to last spawned entity for 999 minutes
            add "{NoAI:1b}" to nbt of last spawned entity
            set tool of last spawned giant to diamond sword
            play huge explosion at the player
            damage all entities in radius 100 around player where [input is not a player] by 30 hearts
            wait 2 seconds
            set tool of last spawned giant to air
            wait 2 tick
            kill last spawned giant

 

Pictures:

 

Spoiler

2022-07-11_20_12_54.thumb.png.f400cb01a24dbb52e27d6ab687723622.png

 

  • Like 1
Link to comment
Share on other sites

On 7/12/2022 at 11:16 AM, SIG12 said:

Commands:

/giant - Gives you the giant sword

 

Addons:

SkBee

 

Code:

 

# Addons Needed: SkBee
 
options:
 
    # Permission
 
    perm: giant.use  # Perm Here  
    noperm: &cYou cannot do this command! # No Perm message here
 
    # Sounds
 
    success: play sound "entity.experience_orb.pickup" with volume 1 to the player
    fail: play sound "entity.bat.death" with volume 1 to the player
    tpsound: play sound "entity.enderman.teleport" with volume 2 to player  
    giantsound: play sound "block.anvil.land" with volume 1 to the player
 
command /giant:
    permission: {@perm}
    permission message: {@noperm}
    trigger:
        give player 1 of unbreakable diamond sword named "&eGiant Sword" with lore "&6Item Ability: Giant's Slam &e&LRIGHT CLICK" and "&7Slam your giant sword into the ground dealing &e100,000&7 damage while doing so!" and "" and "&6&lLEGENDARY SWORD"
 
on right click:
    if player's held item is diamond sword:
        if name of player's held item is "&eGiant Sword":
            {@giantsound}
            send action bar "&b-150 Mana &7(&eGiant Slam&7)" to player
            spawn giant at location of player
            set name of last spawned entity to "Dinnerbone"
            apply invisibility 1 to last spawned entity for 999 minutes
            add "{NoAI:1b}" to nbt of last spawned entity
            set tool of last spawned giant to diamond sword
            play huge explosion at the player
            damage all entities in radius 100 around player where [input is not a player] by 30 hearts
            wait 2 seconds
            set tool of last spawned giant to air
            wait 2 tick
            kill last spawned giant

 

Pictures:

 

  Reveal hidden contents

2022-07-11_20_12_54.thumb.png.f400cb01a24dbb52e27d6ab687723622.png

 

🤓 You could have used "on right click holding diamond sword", "set tag "NoAI" of nbt compound of last spawned giant to true", "set visibility of last spawned giant to false"

Edited by 8pixel
Forgot "nbt compound"
Link to comment
Share on other sites

  • 3 weeks later...

every 10 seconds:
    kill all giants
    
    
    
on right click:
    if name of player's held item is "&6Nether &4Sword":
        if {cooldown.%player%} is true:
            message "&cYou must wait for 30 seconds to use this again!"
            stop
            cancel event
        if {cooldown.%player%} isn't set:
            set {cooldown.%player%} to false
        if {cooldown.%player%} is false:
            set {cooldown.%player%} to true
            send "&7You have &6Smashed all players within 10 blocks!" to player
        spawn a giant at location of player
        set name of last spawned entity to "Dinnerbone"            
        apply invisibility 1 to all giants for 9999 minutes            
        apply slowness 255 to all giants for 9999 minutes        
        apply resistance 255 to player for 5 tick
        set tool of last spawned giant to iron sword
        make 30 of item particle using diamond at location of player
        make 30 of block particle using dirt at location of target block
        play sound "entity.wither_skeleton.death" at player
        trail projectile with heart
        damage all entities in radius 10 around player by 40 hearts
        heal player by 5 hearts
        wait 20 ticks
        set tool of last spawned giant to air
        kill last spawned giant
        wait 1 ticks
        kill last spawned giant
        kill last spawned giant
        wait 30 seconds
        set {cooldown.%player%} to false

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...