Mini-Blocks Library 1.3.5

Use this method to create tiny blocks or ground-laying items!

  1. _Ug
    Contributors:
    _Ug
    MINI-BLOCKS v1.3.5:

    [​IMG]

    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!
    stormtrooper28, jkl123m14 and ChaoZ like this.

Recent Updates

  1. Rotation Fix
  2. MiniBlock
  3. Mini-Blocks API

Recent Reviews

  1. x9nico
    x9nico
    4/5,
    Version: 1.3.5
    Nice API ! Can you do a fonction for example :

    p.getItem().getName();
    p.getItem().getID(); (p = player)
    p.getItem().getSize();
    and for remove the item please.
  2. DJJujuVI
    DJJujuVI
    5/5,
    Version: 1.3.5
    Great API! I just love the idea but I am having a few troubles on testing it. Could you give an example? I am a newbie and I need some help.
    Thanks!
    1. _Ug
      Author's Response
      Not positive that it is working on the current version... I will update it soon though. If it is still working perfectly, it would be:
      MiniBlock miniBlock = new MiniBlock(location, item, size);
      Size can only be 1-3 by the way.
  3. Joaquim
    Joaquim
    5/5,
    Version: 1.3.5
    1. _Ug
  4. Egetheking
    Egetheking
    5/5,
    Version: 1.3.5
    Very nice API, easy to use and doesnt seem to have any bugs as of now!
    Also nice support. Dev is answering fast :)
  5. stormtrooper28
    stormtrooper28
    5/5,
    Version: 1.2
    Great API, and thanks for the source!!
    1. _Ug
      Author's Response
      No worries, hope you make something cool with it!
  6. iHolden
    iHolden
    4/5,
    Version: 1.2
    Nice! Has some bugs though. Test it more.
    1. _Ug
      Author's Response
      Thanks- I will test it a bit more but if you wouldn't mind messaging me with the bugs I'd love to patch them as it appears to me to be bug free.