Check scoreboard points?

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

HowTragicMate

Member
Feb 21, 2020
12
0
1
Skript Version: 2.5-alpha1
Skript Author: Bensku
Minecraft Version: 1.15.2

Hi! I'm working on a magic script, but I need help at hooking it with the data pack called Magic Meter.

What I want:
Clicking with a stick (magic wand) decreases score points (mana) from Magic Meter.

10q9jtZ.jpg

  • The scoreboard used by the data pack is named “magic_meter”
  • To check if the player has a specific amount of magic:
    @s[scores={magic_meter=400..}]
  • Remove score from the player using a command:
    scoreboard players remove @s[scores={magic_meter=400..}] magic_meter 400
  • To determine if the player doesn’t have enough magic:
    @s[scores={magic_meter=..399}]
 
Last edited:
Status
Not open for further replies.