MC-World-Compressor / MC-World-Compressor/Backend

Use the Thanos library internally as in the test controller

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
Dominant language
PHP
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Use the Thanos library to compress worlds using Laravel jobs instead of the library externally (by running the php command thanos.php...)
Ex:

$world = new AnvilWorld($worldSourcePath, $optimizedWorldPath);
$thanos = new Thanos();
$thanos->setMinInhabitedTime(1); 
$removedChunks = $thanos->snap($world);

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing thanos.php command invocation and the test controller referenced in the issue. Compare that flow with the shown AnvilWorld and Thanos usage, then trace how Laravel jobs are dispatched. Done means world compression runs through the internal Thanos library and Laravel jobs rather than the external PHP command.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php
Domain
backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.