/resource (Overwrite)

The /resource command can be used to change (add/subtract), get, set, and do operations on resource. Resource operations can only do scoreboard objective to resource, not resource to resource.

Warning

This command is originally an Origins/Apoli command, but has been modified by Origins: Math to add extra functionality to it. You can find the additions created by Origins: Math below.

resource get absolute <target> <power>

Fetch the absolute value of a (cooldown or resource) power from the specified target. This shows the power's true value as a Float instead of an Integer.

  • <target> being a target selector, can only select one entity at a time
    • (e.g: @a[limit = 1], @p, _xRickAstley, b1b981b6-4081-4abe-afd8-e79269c6a339)
  • <power> being the namespace and ID of a power
    • (e.g: origins:arcane_skin (data/origins/powers/arcane_skin.json))
resource change absolute <target> <power>

Changes the absolute value of a (cooldown or resource) power from the specified target. This adds the provided absolute value to the power's true value as a Float instead of an Integer.

  • <target> being a target selector, can only select one entity at a time
    • (e.g: @a[limit = 1], @p, _xRickAstley, b1b981b6-4081-4abe-afd8-e79269c6a339)
  • <power> being the namespace and ID of a power
    • (e.g: origins:arcane_skin (data/origins/powers/arcane_skin.json))