Sueta

[Ported] JargenAPI

1.0

A simple math API for skript.

·Plugin

3757_dc5623e9e1f08cc68555c965a53294e1.png

This resource is currently discontinued, all advanced math calculations have been moved to the SkRocket API set.

JargenAPI is a basic math API, consisting of addition, subtraction, multiplication, division, and square root calculations.

Installation:
Step 1: Download the JargenAPI.sk
Step 2: Move the JargenAPI.sk file to the /plugins/Skript/scripts folder on your server.
Step 3: Run the command /skript reload JargenAPI or restart your server.

Usage:
If you do not have basic knowledge of skript functions, please refer to this tutorial.

  • calc()
    • calc(number, equation, number)
    • Calculate the answer of two numbers to an equation
    • Example: set {_answer} to calc(1, +, 1)
  • sqrt()
    • sqrt(number)
    • Calculate the square root of a number
    • Example: set {_answer} to sqrt(5)

Examples:

command /calc <number> <text> <number>:
    trigger:
        send "%calc(arg-1, arg-2, arg-3)%" to player
        stop

Similar projects

Plugin →