Skip to content

Reaction Cull Drops

Daniel Mills edited this page Apr 15, 2016 · 1 revision

What does it do?

This action culls drops in highly populated chunks. This drop culler works differently, however. This drop culler prioritizes the culling of less valuable drops before it begins culling items such as diamonds or mined resources. This all works on a priority/worth system that is entirely configurable.

When is it used?

This is used when the server has too many drops per chunk, per individual chunk. The base interval is one minute. Typically you shouldn't need to change this that much, but you can if need be.

Configuration

Located at plugins/React/reactions/action-cull-drops.yml

component:
  # The base interval is 60 seconds. This should not need to be changed, however it is here if you need it.
  # Drop culling takes time to do, and it should not be rushed (setting a fast interval)
  interval: 1200
  
  # You can disable this feature entirley here.
  enable: true

# When culling, you can disable reacts "smart culling" and just remove drops like any old plugin.
ignore-all-worth-when-culling: false

# Here you can define the limit of drops per chunk before react starts picking off items for removal
drops-per-chunk: 32

# Here you can define the categories of worth values. Below this, you can change what is 
# Inside of each category. Here, the numbers are in double format (ex. 0.3432)
worth:
  # All of these worth values corespond to the below defined categories.
  cheap-tools-armor: 0.7
  expensive-tools-armor: 1.0
  lumber: 0.5
  rare-materials: 0.8
  herbs: 0.2
  food: 0.4
  rubble: 0.1
  other: 1.1
  cheap-materials: 0.6
  mob-drops: 0.3
  ore: 0.9
  
  # Undefined is NOT a category, this category represents every item in the game that is NOT defined.
  # However dont worry, since any items you dont define have the highest worth to be safe, it wont cull those
  # Unless react has no other choice!
  undefined: 1.2

# Here, each category is defined with material data. You can find all of the material values
# On spigot here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
define:

  # General brush and herbs such as sugarcane seeds, and more.
  herbs:
  - SEEDS
  - SUGAR
  - SUGAR_CANE
  - SUGAR_CANE_BLOCK
  - MELON_SEEDS
  - PUMPKIN_SEEDS
  - CROPS
  - SAPLING
  - VINE
  - BROWN_MUSHROOM
  - YELLOW_FLOWER
  - INK_SACK
  - RED_MUSHROOM
  - HUGE_MUSHROOM_1
  - HUGE_MUSHROOM_2
  - CACTUS
  - DEAD_BUSH
  - LONG_GRASS
  - LEAVES
  - LEAVES_2

  # Other is where you would want to put more expensive things as they may not
  # Fit in another category. However, if you change the worth value, be careful
  other:
  - GOLDEN_APPLE
  - ENDER_PEARL
  - ENCHANTED_BOOK

  # Rubble is typically worthless because it is so common in the world.
  rubble:
  - DIRT
  - GRASS
  - COBBLESTONE
  - COBBLE_WALL
  - COBBLESTONE_STAIRS
  - MOSSY_COBBLESTONE
  - BEDROCK
  - SANDSTONE
  - SAND
  - CLAY
  - STAINED_CLAY
  - HARD_CLAY
  - STONE
  
  # Wood within the world such as planks, and logs. Even fences and more.
  lumber:
  - WOOD
  - LOG
  - LOG_2
  - FENCE
  - FENCE_GATE
  - ACACIA_FENCE
  - ACACIA_FENCE_GATE
  - BIRCH_FENCE
  - BIRCH_FENCE_GATE
  - DARK_OAK_FENCE
  - DARK_OAK_FENCE_GATE
  - JUNGLE_FENCE
  - JUNGLE_FENCE_GATE
  - SPRUCE_FENCE
  - SPRUCE_FENCE_GATE
  - ACACIA_DOOR
  - ACACIA_DOOR_ITEM
  - ACACIA_STAIRS
  - BIRCH_DOOR
  - BIRCH_DOOR_ITEM
  - BIRCH_WOOD_STAIRS
  - JUNGLE_DOOR
  - JUNGLE_DOOR_ITEM
  - JUNGLE_WOOD_STAIRS
  - SPRUCE_DOOR
  - SPRUCE_DOOR_ITEM
  - SPRUCE_WOOD_STAIRS

  # Cheap materials are more like cheap to moderate worth in value. This can be modified.
  # You can also move items around how you see fit if your server is going for a different theme.
  cheap-materials:
  - TNT
  - IRON_FENCE
  - NETHER_FENCE
  - NETHERRACK
  - OBSIDIAN
  - STICK
  - CARROT_STICK
  - BANNER
  - WOOL
  - CARPET
  - BED
  - BED_BLOCK
  - WRITTEN_BOOK
  - BOOK
  - BOOK_AND_QUILL
  - BOOKSHELF
  - CLAY_BALL
  - SNOW_BALL
  - SNOW
  - SNOW_BLOCK
  
  # These materials are the items that would really REALLY suck for players to loose. 
  # These items will not be culled unless there are so many drops that are of high value (5k diamond drops)
  rare-materials:
  - DIAMOND
  - EMERALD
  - IRON_INGOT
  - GOLD_INGOT
  - REDSTONE
  - GLOWSTONE
  - GLOWSTONE_DUST
  - COAL_BLOCK
  - COAL
  - DIAMOND_BLOCK
  - EMERALD_BLOCK
  - GOLD_BLOCK
  - IRON_BLOCK
  - LAPIS_BLOCK
  - QUARTZ
  - QUARTZ_BLOCK

  # Ores. They have worth, but not the most.
  ore:
  - QUARTZ_ORE
  - LAPIS_ORE
  - DIAMOND_ORE
  - EMERALD_ORE
  - COAL_ORE
  - GOLD_ORE
  - IRON_ORE
  - REDSTONE_ORE

  # Food has a category as it provides a specific task within the game. Keeping you alive in most cases.
  food:
  - COOKED_BEEF
  - GRILLED_PORK
  - COOKED_CHICKEN
  - COOKED_FISH
  - COOKED_MUTTON
  - COOKED_RABBIT

  # Here are all of the cheap tools and armor that are used.
  cheap-tools-armor:
  - WOOD_AXE
  - WOOD_HOE
  - WOOD_PICKAXE
  - WOOD_SPADE
  - WOOD_SWORD
  - WOOD_PLATE
  - WOOD_BUTTON
  - LEATHER_BOOTS
  - LEATHER_CHESTPLATE
  - LEATHER_HELMET
  - LEATHER_LEGGINGS

  # These are the moderate to expensive tools. The stuff you really shouldnt loose.
  expensive-tools-armor:
  - DIAMOND_AXE
  - DIAMOND_BARDING
  - DIAMOND_BOOTS
  - DIAMOND_CHESTPLATE
  - DIAMOND_HELMET
  - DIAMOND_LEGGINGS
  - DIAMOND_HOE
  - DIAMOND_PICKAXE
  - DIAMOND_SPADE
  - DIAMOND_SWORD
  - GOLD_AXE
  - GOLD_BARDING
  - IRON_BARDING
  - GOLD_BOOTS
  - GOLD_CHESTPLATE
  - GOLD_HELMET
  - GOLD_LEGGINGS
  - GOLD_NUGGET
  - GOLD_PICKAXE
  - GOLD_SPADE
  - GOLD_SWORD
  - IRON_AXE
  - IRON_BOOTS
  - IRON_CHESTPLATE
  - IRON_HELMET
  - IRON_LEGGINGS
  - IRON_HOE
  - IRON_PICKAXE
  - IRON_SPADE
  - IRON_SWORD

  # Random drops from mobs that should be culled if left behind. But not a nether star!
  mob-drops:
  - SULPHUR
  - EGG
  - LEATHER
  - RAW_BEEF
  - RAW_CHICKEN
  - RAW_FISH
  - FEATHER
  - PORK
  - ROTTEN_FLESH
  - MUTTON
  - RABBIT_FOOT
  - RABBIT
  - RABBIT_HIDE