Your Ad Here for $15.00 USD per day.

Item Collector

Free Item Collector 1.04

No permission to download
This prefix applies to any resources that are considered free and not paid.
Join my Discord Channel for more support!
If you enjoy my plugins, please leave a rating!

DESCRIPTION


A simple plugin to add Item Collectors to your server!
  • Currently collects fertilized eggs, Gacha crystals, dropped eggs, poop and snow owl pellets.
  • Will only collect items dropped by tribe dinos, will not collect other tribes' items.
  • Configure and limit the number of collectors by permission.
  • Collection structures are configurable.
  • It will also rename the structure to item it is collecting when active.
  • Collectors are reloaded on map restart.
Each command is configurable by Permissions and can be configured to cost Ark Shop points or Tokens via TokenBank!

**** PLEASE NOTE: Group Permissions are used, not the Group Name. So, in your "Default" Group Name, you should also have a permission called "Default" (or whatever you want to call it, I chose Default) in order for the plugin to work correctly. ****
PLEASE be sure you TEST as a PLAYER and not an Admin, and do not use the enablecheats command as this makes you Admin also.


THE COMMANDS

Crystal Collector

/collectcrystals - will force the Storage Box or Vault you are looking at to start collecting Gacha crystals in the area.

Fertilized Egg Collector
/collecteggsfert - will force the refrigerator or preserving bin you are looking at to start collecting fertilized eggs in the area.

Egg Collector
/collecteggs - will force the refrigerator or preserving bin you are looking at to start collecting dropped eggs in the area.

Poop Collector
/collectpoop - will force the Storage Box or Vault you are looking at to start collecting poop in the area.

Pellet Collector
/collectpellets - will force the Storage Box or Vault you are looking at to start collecting Snow Owl pellets in the area.

*Use the command again to toggle off the collector

1651641373372.png


1651641421656.png


1651642456450.png

Configuration:
JSON:
{
    "ItemCollector":{
        "UseTokens": false,   // if true then uses the TokenBank plugin, and price is the number of tokens needed to use command  
        "DatabaseSaveIntervalMinutes": 15,  
        "EggFertCheckIntervalMinutes": 3,        
        "EggCheckIntervalMinutes": 5,          
        "PoopCheckIntervalMinutes": 1,  // unclaimed poop decays in 60 seconds
        "PelletsCheckIntervalMinutes": 1, // unclaimed pellets decays in 60 seconds
  
        "GroupPermission":{
            "Default":{
                "Priority": 99,

                "CollectCrystalsEnabled": true,
                "CollectCrystalsLimit": 2,
                "CollectCrystalsPrice": 0,
          
                "CollectEggsFertEnabled": true,
                "CollectEggsFertLimit": 2,
                "CollectEggsFertPrice": 0,

                "CollectEggsEnabled":  true,
                "CollectEggsLimit":  2,
                "CollectEggsPrice":  0,

                "CollectPoopEnabled":  true,
                "CollectPoopLimit":  2,
                "CollectPoopPrice":  0,

                "CollectPelletsEnabled": true,
                "CollectPelletsLimit": 2,
                "CollectPelletsPrice": 0
            }
        },  

        "CollectCrystals":{   // collects Gacha Crystals
            "Enabled": true,
            "ChatCommand": "/collectcrystals",
            "TokenName": "CollectCrystals",
            "CommandCooldownInSeconds": 5, // how fast the player can use the command
            "FoundationDistanceLimit" : 5, // how close the player has to be to use the command
            "FoundationRange" : 40 // the number foundations within the range of the structure to collect fertilized eggs in
        },
  
        "CollectEggsFert":{   // collects fertilized eggs
            "Enabled": true,
            "ChatCommand": "/collecteggsfert",
            "TokenName": "CollectEggsFert",
            "CommandCooldownInSeconds": 5,
            "FoundationDistanceLimit": 5,
            "FoundationRange": 40
        },
        "CollectEggs":{
            "Enabled": true,
            "ChatCommand": "/collecteggs",
            "TokenName": "CollectEggs",
            "CommandCooldownInSeconds": 5,
            "FoundationDistanceLimit": 5,
            "FoundationRange": 40
        },
        "CollectPoop":{
            "Enabled": true,
            "ChatCommand": "/collectpoop",
            "TokenName": "CollectPoop",
            "CommandCooldownInSeconds": 5,
            "FoundationDistanceLimit": 5,
            "FoundationRange": 40
        },
        "CollectPellets":{   // collects snow owl pellets
            "Enabled": true,
            "ChatCommand": "/collectpellets",
            "TokenName": "CollectPellets",
            "CommandCooldownInSeconds": 5,
            "FoundationDistanceLimit": 5,
            "FoundationRange": 40
        },
  
        //The acceptable strucutures for item collection
        // Planned future versions of this plugin will auto distribute these items to their target containers
        // For example, poop will automatically goto dung beetles and compost bins, pellets will goto crop plots and Gacha's
        // so keep that in mind, that is why I put vaults in here instead of compost bins
        "Collectors": {
            "Crystal": [
                "Blueprint'/Game/PrimalEarth/Structures/StorageBox_Huge.StorageBox_Huge'",
                "Blueprint'/Game/PrimalEarth/Structures/StorageBox_Large.StorageBox_Large'"
            ],      
            "EggFert": [
                "Blueprint'/Game/PrimalEarth/Structures/Electric/IceBox.IceBox'",          
                "Blueprint'/Game/PrimalEarth/Structures/PreservingBin/PreservingBin.PreservingBin'"
            ],
            "Egg": [
                "Blueprint'/Game/PrimalEarth/Structures/Electric/IceBox.IceBox'",          
                "Blueprint'/Game/PrimalEarth/Structures/PreservingBin/PreservingBin.PreservingBin'"
            ],
            "Poop": [
                "Blueprint'/Game/PrimalEarth/Structures/StorageBox_Huge.StorageBox_Huge'",
                "Blueprint'/Game/PrimalEarth/Structures/StorageBox_Large.StorageBox_Large'"
            ],
            "Pellet": [
                "Blueprint'/Game/PrimalEarth/Structures/StorageBox_Huge.StorageBox_Huge'",
                "Blueprint'/Game/PrimalEarth/Structures/StorageBox_Large.StorageBox_Large'"
            ]
        },      
  
        "Messages":{
            "GroupPermission": {
                "Default":{
                    "Priority": 99,
                    "NoPermission": "You do not have permission to use this command",
                    "PlayerHelpCommand": "All your available commands for Item Collector have been printed out for you in the tab console. Press your tab twice to see the results.",
                    "PlayerHelpCommandResults": "Command: {} for {} points",
                    "SenderNameInChat": "SERVER",
                    "NotEnabled": "This feature is not enabled on the server",
                    "NotEnoughTokens": "You don't have enough tokens to use this command",
                    "NoPoints": "You do not have enough points ({} needed)",
                    "CommandPurchased": "Command purchased for {} points",
                    "CollectFail": "This structure is already being used as a collector",
                    "CollectEggsFert": "This structure will now collect fertilized eggs",
                    "CollectEggs": "This structure will now collect eggs",
                    "CollectPoop": "This structure will now collect poop",
                    "CollectPellets": "This structure will now collect pellets",
                    "CollectCrystals": "This structure will now collect Gacha Crystals",
                    "CollectEggsFertOff": "This structure is no longer collecting fertilized eggs",
                    "CollectEggsOff": "This structure is no longer collecting eggs",
                    "CollectPoopOff": "This structure is no longer collecting poop",
                    "CollectPelletsOff": "This structure is no longer collecting snow owl pellets",
                    "CollectCrystalsOff": "This structure is no longer collecting Gacha Crystals",
                    "CommandCooldown": "You cannot use this command so quickly, try again in a moment",
                    "CollectEggsFertMax": "You have reached the max limit for Fertilized Egg Collectors on this map",
                    "CollectEggsMax": "You have reached the max limit for Egg Collectors on this map",
                    "CollectPoopMax": "You have reached the max limit for Poop Collectors on this map",
                    "CollectPelletsMax": "You have reached the max limit for Snow Owl Pellet Collectors on this map",
                    "CollectCrystalsMax": "You have reached the max limit for Crystal Collectors on this map",
                    "GetCloser": "You are too far away to use this command",
                    "NoTarget": "You must be looking at a valid structure",
                    "NoTarget2": "You must be looking at your structure",
                    "NoTarget3": "You must be looking at the correct structure for this command",
                    "Collecting": "Collecting",
                    "EggsFert": "Fertilized Eggs",
                    "Eggs": "Eggs",
                    "Poop": "Poop",
                    "Pellets": "Pellets"
                }
            }      
        }
    }
}
Please note: This plugin cannot be unloaded via plugins.unload. It will crash.
Config reload command: ItemCollector.reload

If you enjoy my plugins, please leave a rating!
Join my Discord Channel for more support!
Author
jraServerAPI
Downloads
42
Views
576
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from jraServerAPI

Latest updates

  1. Version 1.04 Update

    What's new in version 1.04: Fixed Gacha crystals from being empty after collected. Fixed...
  2. Version 1.03 Update

    What's new in version 1.03 Added collecting Gacha Crystals config file has changed
  3. Version 1.02 Update

    Whats new in Version 1.02 Fixed counting issue with picking up items with more than 1 quantity...

Latest reviews

it is a good alternative for those servers that cannot have mods and maybe with the following updates you will have other types of materials
J
jraServerAPI
thank you for the kind words
Top