GithubHelp home page GithubHelp logo

prisonutilmod's People

Contributors

tais993 avatar

Watchers

 avatar

prisonutilmod's Issues

Create the GUI for the to-do list

Display the to-do list:

Display the icon of the item, and include the display name.
This follows the total required / total left or something alike.

Easy access way to pick items

Improve to-do list

  • Refactor recipe checking to a different class
  • Add support for multiple items
  • Add support for 1 item being selected multiple times
  • Add support for only listing the vanilla Minecraft items

Make commands universal

Rework the commands, so they're all in a single place, which majorly can improve maintenance.

  • Single place for commands
  • Help commands

Crafting improvements

There are 2 ways to receive an item, 1 is by purchasing, the other by crafting the item.
Purchasing an item can only happen a certain number of times, this is also the case for purchasing the item you need to craft.

It also is a factor that crafting takes time, directly buying a part can be a lot faster over crafting it.

This means that a pure craft should contain a multitude of items, which are:

  • item identification

    • item tag
    • nbt display name
  • purchase price

  • sell price

  • recipe

To actually identify the most useful way of money, some things should be added

  • purchase limit
  • should buy instead of craft
  • whenever to smelt before selling

Rework the itemToFurnaceResult map

Currently the map gets loaded the first time the method or the !reset-map command gets ran, this is inaccurate.

Preferably, it automatically reloads when new recipes are given to the client.
Or, when the player leaves/joins a world.

Mine reset counter

The mine gets reset EVERY 5 minutes, even when no blocks have been mined or no player is around.
So create a timer which starts when the blocks respawn, and resets every 5 minutes.
If possible, store the timer & server state somewhere. So the user can log back in, or possibly even restart and the timer keeps working.
Unsure whenever it's possible to know or the server has restarted in the main time.

  • Detect mine reset
  • Timer which resets every 5 minutes
  • Figure a way out to know or a server has been restarted since the last time online
  • Make timer persistent throughout client restarts

Crossed out items will be moved to separate issues

Add readme

Add a readme which explains how to install, use and modify the mod.

  • How to install the mod
  • How to use the mod (in game)
  • How to edit options
  • Index

Detect mine reset

Detecting a mine reset should be done by listening to block changes

The issue

Due to the way Forge was build, it isn't possible to listen to block changes made by people.
Listening to the event in the network was mentioned as impossible as-well.

This means there's as of right now no viable way of detecting mine resets.

The solution

The alternative is a plugin, which sends all clients / all clients with the mod an custom event, so the clients know the mine is reset.
This requires the server owner to add a plugin though, I'll try to talk about the owner with it. But doubtful in success, when the prison plugin gets replaced by the rework changes are much higher it's possible. As of right now, nothing will be done.

Make time persistent throughout restarts

Make the timer persistent, this way quick restarts won't break the gameplay.

But, when the game is restarted add a warning until the timer has been verified.
The timer can be verified by #11

Dependencies

#11

Item objects

Create BasicItem class

This class should maintain an item's info:

  • item purchase price
  • item sell price
  • item key
  • item NBT display.name if exists
  • recipe for craft

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.