Jump to content

Recommended Posts

Posted

 

 

when i enchant or use an anvil on the sword it loses it's right click ability 

on load:
    set {withersword} to unbreakable netherite sword named "&7Wither Sword" with lore "&dA sword forged in the heart of the wither"
on load:
    register new shaped recipe for unbreakable netherite sword named "&7Wither Sword" with lore "&dA sword forged in the heart of the wither" using diamond block, netherite ingot, diamond block, netherite ingot, nether star, netherite ingot, diamond block, netherite ingot and diamond block with id "withersword"

on join:
 set {cooldown_1.%player's uuid%} to false

on right click:
    if player is holding {withersword}:
        if {cooldown_1.%player's uuid%} is false:
            make player shoot a wither skull at speed 3
            set {cooldown_1.%player's uuid%} to true
            wait 15 seconds
            set {cooldown_1.%player's uuid%} to false
        if {cooldown_1.%player's uuid%} is true:
            send "&4&lYou may not use this item now!" to player

on damage:
    if attacker is holding {withersword}:
        increase damage by 1

on enchant:
    if id of the tool contains "withersword":
        set id of the tool to "withersword"

 

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...