Large Enderchest? SOLVED

Discussion in 'Plugin Development' started by theminer199, Oct 8, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    theminer199

    Hi everyone!

    I have a question about the enderchest: can you adjust the enderchest so it gets bigger???
    I'm trying this for some time (I make not so long plugins) so I'd really like it if anyone could help!

    Thanks in advance!

    -theminer199
     
  2. Offline

    MrSnare

    No
     
  3. Offline

    The_Doctor_123

    Yes and no. You technically cannot edit an enderchest's size, but you could make a plugin to override enderchests.
     
  4. Offline

    theminer199

    How do you override the enderchest?

    (Sorry for my bad english. I am Dutch)
     
  5. Offline

    The_Doctor_123

    theminer199
    You cancel whatever event and create your own inventory.
     
  6. Offline

    theminer199

    Eeehhm Ok?
    I may sound a bit n00b now, but...
    How should you do that?
     
  7. Offline

    sgavster

    theminer199 Well, please stop talking like this, and what you'd do is on playerinteractevent, then cancel it:
    Code:java
    1. @EventHandler
    2. public void cancelEvent(PlayerInteractEvent e)
    3. {
    4. if(e.getAction() == Action.RIGHT_CLICK_BLOCK || e.getAction() == Action.LEFT_CLICK_BLOCK)
    5. {
    6. Block block = e.getClickedBlock();
    7. if(block.getType() == Material.ENDER_CHEST)
    8. {
    9. e.setCancelled(true);
    10. }
    11. }
    12. }


    then, go to here to figure out how to make an inventory.
     
  8. Offline

    theminer199

    Thanks!!!!
    Sorry if I was annoying :(
    But thanks!
     
Thread Status:
Not open for further replies.

Share This Page