{"id":5307,"date":"2026-05-31T16:46:55","date_gmt":"2026-05-31T13:46:55","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/actionlib1\/"},"modified":"2026-05-31T16:46:55","modified_gmt":"2026-05-31T13:46:55","slug":"actionlib1","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/actionlib1\/","title":{"rendered":"ActionLib"},"content":{"rendered":"<p>ActionLib is used to easily implement JSON based data-driven actions, e.g. setting a players health or saturation, or showing a random inventory.<\/p>\n<p>Better documentation can be found here<\/p>\n<p>Default Actions:<br \/> trip: Drops the player&#8217;s entire inventory onto the ground<br \/> teleport_player: Allows teleporting the player<br \/> spawn_entity: Spawns the specified entity randomly within a radius<br \/> smite: Strikes the player with lightning<br \/> show_screen: Shows the player a specified screen (Currently only supports the demo screen)<br \/> set_saturation: Sets the player&#8217;s saturation level<br \/> set_player_armor: Sets the player&#8217;s armor<br \/> set_level: Sets the player&#8217;s xp level<br \/> set_health: Sets the player&#8217;s health<br \/> set_gamemode: Sets the player&#8217;s gamemode<br \/> set_food_level: Sets the player&#8217;s food level<br \/> set_fire: Sets the player on fire<br \/> send_title: Sends a title to the player<br \/> send_message: Sends a message to the player<br \/> potion_effect: Allows adding, removing, and clearing the player&#8217;s potion effects<br \/> player_chat: Has the player send the specified message<br \/> play_sound: Plays a specific sound to the player<br \/> open_inventory: Causes the player to open a random or specified inventory (Different than show_screen)<br \/> launch_entity: Allows launching all entities (or just the player) into the air<br \/> kick_player: Kicks the player<br \/> give_item: Gives the player a specified item<br \/> flip_player: Flips the player 180 degrees<br \/> drop_item: Drops the item in either the player&#8217;s main hand or the player&#8217;s off hand<\/p>\n<p>Adding custom actions:<br \/>Custom actions are added by extending the &#8220;AbstractAction&#8221; class and using the &#8220;ActionType&#8221; annotation<\/p>\n<pre><code>@ActionType(value = \"name_of_action\")<br>public class CustomAction extends AbstractAction {<br><br>    public CustomAction(JavaPlugin plugin) {<br>        super(plugin);<br>    }<br><br>   \/\/ Optional loadFromJson to load from the action's json object<br><br>    @Override<br>    public void execute(Player target, String[] args) {<br>        \/\/ Execution code is here<br>    }<br><br>}<br><\/code><\/pre>\n<p>Registering custom actions:<\/p>\n<pre><code>ActionRegistry.registerActionsFromPackage(\"com.example.package\", javaPluginInstance);<\/code><\/pre>\n<p>Using actions:<\/p>\n<pre><code>ActionObjectManager manager = new ActionObjectManager();<br><br>JsonObject jsonObject = JsonParser.parseReader(new FileReader(file)).getAsJsonObject();<br><br>ActionObject newAction = new ActionObject(plugin, jsonObject);<br>manager.addActionObject(newAction);<br><br>ActionObject action = manager.getEnabledActionObjectByName(args[1]);<br><br>action.execute(target, Arrays.copyOfRange(args, 2, args.length));<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Easily enables plugins to implement data-driven actions<\/p>\n","protected":false},"featured_media":0,"template":"","meta":{"_minecraft_slug":"actionlib1","_minecraft_project_id":"HSAAIwfY","_minecraft_author":"Optic_Fusion1","_minecraft_license":"LicenseRef-All-Rights-Reserved","_minecraft_downloads":39,"_minecraft_follows":0,"_minecraft_client_side":"unsupported","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"actionlib1.zip","_minecraft_size_bytes":1074836,"_minecraft_version_count":1,"_minecraft_updated_at":"2026-05-15T21:38:34.577665Z","_minecraft_date_created":"2025-05-03T00:14:21.659976Z","_minecraft_date_modified":"2025-04-30T18:32:39.312961Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/actionlib1","_minecraft_icon_attachment_id":0,"_minecraft_imported_at":"2026-05-31T13:46:56+00:00","_minecraft_import_hash":"cba30af18a723fd427ba3acfc498eec0","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[89,873,137,127,129,92],"mod_loader":[132,134],"minecraft_version":[438,446,449,110,111,112,113,114,115,116,117,118,119,120,46,47,48,49,50,51,52,53,54,55,56,57,58,59,36,60,93,94,101,102,62,37,40,41,73,74,38,78,79,80,81,82],"class_list":["post-5307","mod","type-mod","status-publish","hentry","mod_category-game-mechanics","mod_category-library","mod_category-mobs","mod_category-paper","mod_category-spigot","mod_category-utility","mod_loader-paper","mod_loader-spigot","minecraft_version-1-13","minecraft_version-1-13-1","minecraft_version-1-13-2","minecraft_version-1-14","minecraft_version-1-14-1","minecraft_version-1-14-2","minecraft_version-1-14-3","minecraft_version-1-14-4","minecraft_version-1-15","minecraft_version-1-15-1","minecraft_version-1-15-2","minecraft_version-1-16","minecraft_version-1-16-1","minecraft_version-1-16-2","minecraft_version-1-16-3","minecraft_version-1-16-4","minecraft_version-1-16-5","minecraft_version-1-17","minecraft_version-1-17-1","minecraft_version-1-18","minecraft_version-1-18-1","minecraft_version-1-18-2","minecraft_version-1-19","minecraft_version-1-19-1","minecraft_version-1-19-2","minecraft_version-1-19-3","minecraft_version-1-19-4","minecraft_version-1-20","minecraft_version-1-20-1","minecraft_version-1-20-2","minecraft_version-1-20-3","minecraft_version-1-20-4","minecraft_version-1-20-5","minecraft_version-1-20-6","minecraft_version-1-21","minecraft_version-1-21-1","minecraft_version-1-21-10","minecraft_version-1-21-11","minecraft_version-1-21-2","minecraft_version-1-21-3","minecraft_version-1-21-4","minecraft_version-1-21-5","minecraft_version-1-21-6","minecraft_version-1-21-7","minecraft_version-1-21-8","minecraft_version-1-21-9"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ActionLib - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/actionlib1\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ActionLib - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Easily enables plugins to implement data-driven actions\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/actionlib1\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/actionlib1\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/actionlib1\\\/\",\"name\":\"ActionLib - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"datePublished\":\"2026-05-31T13:46:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/actionlib1\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/actionlib1\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/actionlib1\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"ActionLib\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ActionLib - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/actionlib1\/","og_locale":"en_US","og_type":"article","og_title":"ActionLib - Minecraft","og_description":"Easily enables plugins to implement data-driven actions","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/actionlib1\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/actionlib1\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/actionlib1\/","name":"ActionLib - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"datePublished":"2026-05-31T13:46:55+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/actionlib1\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/actionlib1\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/actionlib1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"ActionLib"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/5307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=5307"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=5307"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=5307"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=5307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}