Jump to content

Help


SlimeFroster

Recommended Posts

on rightclick with redstone torch:
  if player's tool is redstone torch named "&c&lFire Gem." with lore "&c&lShoots A Fireball On Right Click."
  if player has permission "custom.ability":
  set {_cooldown} to 5 seconds
  if player's cooldown of "fireball" is not set:
  apply cooldown of {_cooldown} to player for "fireball"
  shoot a fireball from the player
  message "&c&lYou used your custom ability and fired a fireball!" to player
  else:
  set {_remaining} to player's remaining cooldown of "fireball"
  message "&c&lYou need to wait {_remaining} seconds before using the ability again." to player

# Command to give the Fire Gem to the player
command /FireGem:
    trigger:
        give 1 of redstone torch named "&c&lFire Gem." with lore "&c&lShoots A FireBall On Right Click." to player

Link to comment
Share on other sites

on rightclick with redstone torch:
  if player's tool is redstone torch named "&c&lFire Gem." with lore "&c&lShoots A Fireball On Right Click."
      if player has permission "custom.ability":
      set {_cooldown} to 5 seconds
        if player's cooldown of "fireball" is not set:
        apply cooldown of {_cooldown} to player for "fireball"
        shoot a fireball from the player
         message "&c&lYou used your custom ability and fired a fireball!" to player
        else:
         set {_remaining} to player's remaining cooldown of "fireball"
         message "&c&lYou need to wait {_remaining} seconds before using the ability again." to player

# Command to give the Fire Gem to the player
command /FireGem:
    trigger:
        give 1 of redstone torch named "&c&lFire Gem." with lore "&c&lShoots A FireBall On Right Click." to player

Link to comment
Share on other sites

on rightclick with redstone torch:
  if player's tool is redstone torch named "&c&lFire Gem." with lore "&c&lShoots A Fireball On Right Click."
    if player has permission "custom.ability":
    set {_cooldown} to 5 seconds
      if player's cooldown of "fireball" is not set:
      apply cooldown of {_cooldown} to player for "fireball"
      shoot a fireball from the player
      message "&c&lYou used your custom ability and fired a fireball!" to player
    else:
      set {_remaining} to player's remaining cooldown of "fireball"
      message "&c&lYou need to wait {_remaining} seconds before using the ability again." to player

# Command to give the Fire Gem to the player
command /FireGem:
    trigger:
        give 1 of redstone torch named "&c&lFire Gem." with lore "&c&lShoots A FireBall On Right Click." to player

Link to comment
Share on other sites

on rightclick with redstone torch:
  if player's tool is redstone torch named "&c&lFire Gem." with lore "&c&lShoots A Fireball On Right Click."
    if player has permission "custom.ability":
    set {_cooldown} to 5 seconds
      if player's cooldown of "fireball" is not set:
        apply cooldown of {_cooldown} to player for "fireball"
        shoot a fireball from the player
        message "&c&lYou used your custom ability and fired a fireball!" to player
      else:
        set {_remaining} to player's remaining cooldown of "fireball"
        message "&c&lYou need to wait {_remaining} seconds before using the ability again." to player

# Command to give the Fire Gem to the player
command /FireGem:
    trigger:
        give 1 of redstone torch named "&c&lFire Gem." with lore "&c&lShoots A FireBall On Right Click." to player

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