Skip to main content

Module: works

Overview

Module

Provides a bill-board, for players to post and share their works.

Color Boxes

Note

◉ The difference between non-production work and production work.

For a production work, we provide the production sample to count the hopper and minecart-hopper.

Tip

◉ What is the sample in a production work?

It's a counter for hopper and minecart-hopper.

It will counts the rate of items transferred in defined sample duration.

For example, you can use it to count how many bone, string and coal is transferred during the sample duration.

It's something like the hopper counter in carpet mod.

You can use both of them at the same time.

The hopper counter provided by carpet mod will destroy the output item.

But the hopper counter provided by this module will not.

Configurations

The following JSON content is provided for reference only. It must NOT be copied directly into the configuration directory, as it does not represent valid JSON syntax.

Config
  • File Name: config.json
  • File Content:
Click to see the default content...
config/fuji/modules/works/config.json
{
/* The `duration` used for `sample` for `production work`. */
"sample_time_ms": 3600000
/* The `max distance` allowed for `production work`. */,
"sample_distance_limit": 512
/* The max types of items to display for `production work`. */,
"sample_counter_top_n": 20
}
Config
  • File Name: works.json
  • File Content:
Click to see the default content...
config/fuji/modules/works/works.json
{
/* The created `work` list. */
"works": []
}

Jobs

Job
  • Job Name: ConfigurationHandlerWriteStorageJob

  • Document: This job is used to write data from memory into storage.

    NOTE: If you modify the file in disk, then you need to issue /fuji reload as soon as possible.

    NOTE: The disk will be overridden when fire this job.

Job
  • Job Name: WorksOnScheduleDispatcherJob

  • Document: This job is used to dispatch the onSchedule event for each work.

    For example:

    1. To end the sample of a production work.

Commands

Command
  • Command Syntax: /works

  • Document: Open the works GUI.

  • Can be executed by console: false

  • Required Level Permission: 0

  • Required String Permission: null