MINI-BLOCKS v1.3.5:
- Contributors:
- _Ug
What is this?
Ever wanted small or tiny items lying on the ground? Or lesser sized blocks to add more custom designs to your plug-in? This is for you. This is a very simple way to add tiny items to your server that people can walk right though! There are endless uses for this. For example, I just made a stop light plug-in with this library. The possibilities are only limited to that of your imagination.
How to use method?
Very simple!
MiniBlock block = new MiniBlock(location, item, size);
location: Location at which you want the item to spawn.
item: Item that you wish to spawn at above said location. Be sure you match the item with the right type (block / item).
size: Determine size of item. Options are 1, 2, and for blocks only, 3. You can see the sizes in the image above.
Warning!
It is possible for users to interact with these blocks and remove items / add items to their wishing. I have decided that perhaps someone would want to have a drop plug-in where drops drop like this or something of the sort, so I left this part up to you guys. Be sure to disable it if you don't want this to happen. (You can cancel the EntityInteractAtEntityEvent).
Update Log:
v1.3- Huge and long needed update. Changed from an ugly class to an object. Added useful commenting in code along with parameters for those who don't read this post. Removed isBlock and removeTime requirements. Added a teleport and remove feature.
v1.2- Added size 3 to blocks. Made items more centered than previously.
Anyone can use this code without any form of thanks or acknowledgement. It is 100% free for the public. Enjoy!

Mini-Blocks Library 1.3.5
Use this method to create tiny blocks or ground-laying items!
Recent Updates
- Rotation Fix Dec 28, 2015
- MiniBlock Dec 28, 2015
- Mini-Blocks API Aug 23, 2015