NoExp - A simple Minecraft experience control plugin

This is a discussion topic for the Ore project, NoExp. View the full project on Ore for downloads and more information.


NoExp - Prevent Players from gaining Experience

The Idea

The idea behind NoExp is simple, in vanilla Minecraft, players can gain experience points through a variety of actions
such as killing mobs, fishing, or mining ores. The aim of NoExp is to restrict which of these actions produce
experience. It does this through the use of a simple config file located at ~/mods/config/NoExp.conf. The default
config is shown below:

# Entites within this map will be monitored by NoExp If their id is set to false then they won't drop exp orbs when bred or killed
entityMap {
    "minecraft:bat"=true
    "minecraft:blaze"=true
    "minecraft:cave_spider"=true
    "minecraft:chicken"=true
    "minecraft:cow"=true
    "minecraft:creeper"=true
    "minecraft:donkey"=true
    "minecraft:elder_guardian"=true
    "minecraft:ender_dragon"=true
    "minecraft:enderman"=true
    "minecraft:endermite"=true
    "minecraft:evocation_illager"=true
    "minecraft:ghast"=true
    "minecraft:giant"=true
    "minecraft:guardian"=true
    "minecraft:horse"=true
    "minecraft:husk"=true
    "minecraft:illusion_illager"=true
    "minecraft:llama"=true
    "minecraft:magma_cube"=true
    "minecraft:mooshroom"=true
    "minecraft:mule"=true
    "minecraft:ocelot"=true
    "minecraft:parrot"=true
    "minecraft:pig"=true
    "minecraft:polar_bear"=true
    "minecraft:rabbit"=true
    "minecraft:sheep"=true
    "minecraft:shulker"=true
    "minecraft:silverfish"=true
    "minecraft:skeleton"=true
    "minecraft:skeleton_horse"=true
    "minecraft:slime"=true
    "minecraft:snowman"=true
    "minecraft:spider"=true
    "minecraft:squid"=true
    "minecraft:stray"=true
    "minecraft:vex"=true
    "minecraft:villager"=true
    "minecraft:villager_golem"=true
    "minecraft:vindication_illager"=true
    "minecraft:witch"=true
    "minecraft:wither"=true
    "minecraft:wither_skeleton"=true
    "minecraft:wolf"=true
    "minecraft:zombie"=true
    "minecraft:zombie_horse"=true
    "minecraft:zombie_pigman"=true
    "minecraft:zombie_villager"=true
}
# Whether exp bottles should produce exp orbs Default:true
expBottle = true
# Whether fishing should produce exp orbs Default:true
fishing = true
# Whether smelting should produce exp orbs Default:true
smelting = true
# Whether disenchanting should produce exp orbs Default:true
disenchanting = true
# Whether trading should produce exp orbs Default:true
trading = true
# Whether mining blocks should produce exp orbs Default:true
mining = true

By setting the node for the corresponding action to false, the action will no long produce experience points.

Planned Features

  • Spliting entity actions into separate breed and kill actions
  • Controlling players dropping experience points when killed
  • Controlling experience drops when mining specific blocks and smelting specific items

Support Me

I will never charge money for the use of my plugins, however they do require a significant amount of work to
maintain and update. If you’d like to show your support and buy me a cup of tea sometime (I don’t drink that horrid
coffee stuff :P) you can do so here

2 Likes

A new version has been released for NoExp, it is available for download here.


Space Out

Release v1.0.1

Minecraft 1.12.2 - Tested on spongeforge-1.12.2-2555-7.1.0-BETA-2817

Changes:

  • Removed spaces in entity IDs within default config file.

Please delete your config and let it regenerate for these changes to take effect if updating from v1.0.0

Enjoy!

A new version has been released for NoExp, it is available for download here.


Rocks, hold the Exp

Release v1.0.2

Minecraft 1.12.2 - Tested on spongeforge-1.12.2-2705-7.1.0-BETA-3304

Changes:

  • Hotfix to correct issue with experience orbs still spawning from mining even when set to false

Enjoy!

A new version has been released for NoExp, it is available for download here.


I Depend on 7?

Release v1.0.3

Minecraft 1.12.2 - Tested on spongeforge-1.12.2-2705-7.1.0-BETA-3304

Changes:

  • Fix plugin metadata to specify dependency on Sponge API 7

Enjoy!

A new version has been released for NoExp, it is available for download here.


New API, Still No Exp!

Release v1.1.0

Minecraft 1.16.5- Tested on spongevanilla-1.16.5-8.0.0-RC1057

Changes:

  • Update to Sponge API 8.0.0
  • Added new config option disenchanting to control giving exp for disenchanting items with a grindstone
  • Added new config option trading to control giving exp for trading with villagers

Enjoy!