programie / itemsorter Goto Github PK
View Code? Open in Web Editor NEWA Minecraft Bukkit plugin which transfers and sorts items from inventories like chests into other inventories
License: MIT License
A Minecraft Bukkit plugin which transfers and sorts items from inventories like chests into other inventories
License: MIT License
Currently, ItemSorter only stores chest type, its location and order to database.
I think it should also save 'item data' to the database if the type is 'target'.
Here is an example image.
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
.ItemStack
.ItemStack
.ItemMeta
: Meta data of the item like Enchantments, Lore, Display Name etc. ItemMeta
is serializable.So, we can have these comparison types:
Material
, Damage, ItemMeta
must be sameMaterial
is comparedMaterial
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.