Limit Items Per-chunk

Discussion in 'Plugin Requests' started by xOrlxndo, Aug 27, 2016.

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

    xOrlxndo

    Plugin category: Admin Tools

    Minecraft version: Spigot 1.10 ~Java 8~

    Suggested name: LimitChunkItems

    What I want: I'd like a plugin that will limit how many blocks, items, and entities can be placed/spawned in one chunk. All of the items and how many are to be placed per-chunk are customizable in config. Also, when a player exceeds the amount of blocks, items, or entities a message will appear to the player (messages are customizable in config) and the placement will be canceled.

    Idea for config: http://hastebin.com/nihiqikule.vbs


    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: Items.Bypass // Allows the player to bypass the plugin {Default: OP}

    When I'd like it by: Soon :)
     
    Last edited: Aug 27, 2016
  2. Offline

    TheSimufreak

    I wrote a plugin that cancells the player-item-drop if a given limit is exceeded. I will add entities if you want to.
    The block thing is a bit more complicated since I have to keep track of the blocks by myself, but I'll look into it soon.
     

    Attached Files:

  3. Offline

    xOrlxndo

    I actually don't need blocks, I just add entities
     
  4. Offline

    TheSimufreak

    Here you go. Unfortunately there seems to be no efficient way to send the player a message when the mob spawning is cancelled. The plugin also cancells natural spawning.
     

    Attached Files:

  5. Offline

    xOrlxndo

    Okay, so I finally got to test the plugin out (I was away) and I actually wanted PLACING to be limited not dropping xD
    Example: A player can only place 16 item frames in one chunk.
     
  6. Offline

    TheSimufreak

    So you want to limit the amount of ItemFrames a Player can PLACE and how many Entities (ie. Mobs, Minecarts, Boats etc) can spawn in a chunk?
     
  7. Offline

    BlockHeads36

    @xOrlxndo I think dropped items could come in handy too... just saying
     
  8. Offline

    xOrlxndo

    Yes :)

    Already have a plugin for that :p
     
  9. Offline

    TheSimufreak

    The plugin checks for item frames now. I didn't removed the item-drop limit, but you can turn the function off by leaving the Items-section in the config empty.
     

    Attached Files:

  10. Offline

    xOrlxndo

    Can you make it for it does not only check for item frames. I want it for I can limit how many blocks/items/entities a player can place.
    Examples:
    A Player can only place 32 skulls in a chunk
    A player can only place 32 banners in a chunk
    ect...
     
  11. Offline

    TheSimufreak

    This version supports tile entities, i.e. banner, skulls, signs etc. You can find a list of tile entities here:
    http://minecraft.gamepedia.com/Chunk_format#Block_entity_format
    The Plugin handels ambiguitys, like Standing_Banner and Wall_Banner, itself, you just need to specify banner in the config
    EDIT: I also added the permission LCI.bypass, default op
     

    Attached Files:

    Last edited: Aug 31, 2016
  12. Offline

    xOrlxndo

    Thanks:)
     
Thread Status:
Not open for further replies.

Share This Page