Locked Chest Remain

Discussion in 'Archived: Plugin Requests' started by DrKley, Oct 22, 2012.

  1. Offline

    DrKley

    Ok my pluign request is simple, I dont know if its possible but i need a plugin that stops locked chest from disappear; it's simple.
     
  2. Offline

    Infamous Jeezy

    A locked chest?
    I'm not exactly sure what you're asking for here.
     
  3. Offline

    Woobie

    A locked chest.. is a locked chest, Minecraft item that you cant get in singleplayer without cheats.
    http://www.minecraftwiki.net/wiki/Locked_Chest

    DrKley
    Ill do this later, should be very simple
     
  4. Offline

    DrKley

    Ok thank you so much :)

    And the chest was a notch's april fool joke
     
  5. Offline

    PogoStick29

    For devs:
    Make an ItemDespawnEvent, then check if the item is locked chest. If it is, then cancel the event ;)
     
  6. Offline

    Woobie

    Item despawn event is for entities, not blocks :)
    Code:
    @EventHandler
    public void onPlace(BlockPlaceEvent e){
    Player p = e.getPlayer();
    if(p.getInventory().getItemInHand().equals(Material.LOCKED_CHEST))){
    e.setCancelled(true);
    p.setTargetBlock(Material.LOCKED_CHEST); //something like this, using my phone atm
    p.getInventory().getItemInHand().setAmount(-1)); //cant remember right code
     
  7. Offline

    Infamous Jeezy

    Oh I must have missed that. :x
    Although the minecraft wiki claims it no longer has a chest texture?
     
  8. Offline

    Woobie

    True, it is a mix of emerald block and diamond block, therefore, this request has no point.
    Also, just tested, you can place locked chest in 1.3
     
  9. Offline

    DrKley

    The block disappear like a minute after you place it
     
  10. Offline

    Woobie

    Well thats interesting, you should've told that. I thought that YOU cant place them at all. Not sure if I can do this afterall, unless the ItemDespawnEvent works.
    Why do you want this? The chest has no texture, unless you have server wide texturepack.
     
  11. Offline

    seiterseiter1

    in 1.4_01 it says that locked chests were removed from the game and are now a place holder block they have the texture of emerald and purple on the other sides. like chests were made to be destroyed with one hit and despawn like leaves do.

    and i would also like this plugin to just place purple blocks everywhere would be fun.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
  12. Offline

    DrKley

    I have texture and i need this to be a block that cant be obtained in survival (i need 2 so its sponge and this)
     
  13. Offline

    Woobie

    Not sure if this is possible, BlockPhysics and BlockFade events doesnt work.. ItemDespawnEvent is for item entities on ground..
     
  14. Offline

    DrKley

    maybe the event that world guard uses for leaf despawn flag ???
     
  15. Offline

    seiterseiter1

    I know this can be done because a server I just found lets you do it some how.
     
  16. Offline

    Woobie

    LeavesDecayEvent doesnt work either.
     
  17. Offline

    PogoStick29

    BlockDespawnEvent?
     
  18. Offline

    Woobie

    No such event :p
     
  19. Offline

    PogoStick29

    :(
     
  20. Offline

    llamasaylol

    I was looking into this a few days ago as I like the emerald block with the light effect. Couldn't find the NMS code where it is removed/despawned so I just used emeralds and fixed the lighting where I placed them. If you do figure it out please tell me.
     
  21. Offline

    Woobie

    DrKley
    I could edit the actual bukkit jar file, and remove the locked chest despawning if you want.
     
  22. Offline

    DrKley

    it would be perfect :)
     
  23. Offline

    seiterseiter1

    I would like this as well if possible.
     

Share This Page