Download Clothier — Minecraft Mods — MetaMods

Clothier

Archived

Downloads

2

Last update

1 year ago

Versions

1.20.1
Server
Fabric
Forge
Quilt
Decor
Libraries
Social

Clothier

Clothier is a Figura API that provides access to data from Manic and Sanguine mods. It allows you to retrieve information about the world's Blood Moon status or monitor your character's current Sanity level.

Installation

Client Side

  • Download the GSServerNet script and place it in your Figura avatar's folder.
  • Download the Clothier script and also place it in the same folder.

Server Side

  • Download the GSServerNet datapack and move it to your world's datapacks folder.
  • Install the Clothier datapack in the same directory.

Usage

Important For GSServerNet to function properly, you must enable the "Chat Messages" option in your Figura settings.

Start by importing the API into your avatar's main script file.

script.lua

local clothier = require("Clothier")

Through the clothier variable, the following capabilities are available:

  • Execute a function after complete initialization of Manic and Sanguine data:

    clothier.event.init(function()
    print(clothier.sanity())
    print(clothier.is_blood_moon())
    end)
  • Execute a function every time the Sanity level changes:

    clothier.event.sanity_change(function(value)
    print("Current Sanity level: " .. value)
    end)
  • Get the current Sanity value:

    print(clothier.sanity())

Note Sanity values are represented as integers from -10 to 10, where -10 corresponds to maximum Lunacy, and 10 to maximum Sanity.

  • Execute a function when the world's Blood Moon status changes:

    clothier.event.blood_moon_change(function(state)
    print("World's Blood Moon status: " .. tostring(state))
    end)
  • Check the Blood Moon status:

    print(clothier.is_blood_moon())