Code Monkey home page Code Monkey logo

itemsorter's People

Contributors

programie avatar

Watchers

 avatar  avatar

itemsorter's Issues

[Feature Request] Make target chest item persistent

Currently, ItemSorter only stores chest type, its location and order to database.

PreparedStatement statement = connection.prepareStatement("INSERT INTO `links` (`uuid`, `player`, `name`, `type`, `order`, `world`, `x`, `y`, `z`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)");

I think it should also save 'item data' to the database if the type is 'target'.


Here is an example image.

1

Since double chest isn't enough for me, I usually build nested double chests with hoppers like this, to allow me to store tons of items in it.

As you can see in that image, hopper is placed below of the ItemTarget chest. It will always try to extract items from ItemTarget chest, no matter of what item is inserted to it.

But this breaks ItemSorter plugin behavior, because the plugin tries to find out which item should be inserted to ItemTarget chest by its content that, in this case, always empty because of the hopper.
ItemSorter can't find which chest to send item from ItemSource chest.


So I want ItemSorter plugin to store 'item data' to the database too, for 'target' typed chest.

In my knowledge, ItemStack consist of four data:

  • Material: Something like Material.IRON_PICKAXE.
  • Amount: Amount of item in ItemStack.
  • Damage: Damage of the item in ItemStack.
  • ItemMeta: Meta data of the item like Enchantments, Lore, Display Name etc. ItemMeta is serializable.

So, we can have these comparison types:

  • Full: Material, Damage, ItemMeta must be same
  • Material: Only Material is compared
  • ItemMeta: Material and ItemMeta should be same (Ignore damage)

I didn't think about how the sign should be displayed because every line is already in use. Maybe it should display chat message about the item if we right-click the sign.

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.