ThrowAnything

This plugin lets you launch anything from Minecraft with a slingshot !

ThrowAnything

Load Your Slingshot With Anything. See What Happens.

kofi discord twitch


ThrowAnything adds a slingshot that fires any item, and almost every item does something when it lands. Throw TNT and it explodes, throw an axe and it chops the log it hits, throw a lead and you lasso a cow. One simple rule: at range, an item does what it does in your hand.

How It Works

Action How
Aim Hold the slingshot in your main hand and the item to throw in your other hand
Charge Hold right-click, like a bow (no arrows needed)
Fire Release right-click: the more you charge, the further it flies
Quiver Put a bundle in your other hand: its items are fired one by one
  • Every item has a weight: TNT and anvils fly short and slowly, feathers and eggs fly far. Heavy items also take longer to reload.
  • Every item fired uses 1 durability of the slingshot (3 with Volley).

What Happens When It Lands

Item Effect
Blocks Placed where they land (or dropped, if you prefer: see the config)
Food Feeds the player it hits
Armor Equipped on the player, armor stand or zombie/skeleton/piglin it hits
Weapons Deal their melee damage (and lose 1 durability)
Axe, pickaxe, shovel, hoe Break the block they hit if it's the right tool and tier, with Fortune and Silk Touch (2 durability)
Mace The further it flies, the harder it hits (Density increases the bonus)
Spears (1.21.11+) Fly like a javelin, stick where they land and are picked back up
Name tag, lead, shears, dye Rename, lasso, shear or dye the mob they hit
Breeding food Puts the animal it hits in love mode
Spawn eggs, buckets of fish/axolotl Spawn or release the creature
Totem of Undying Goes straight into the off hand of the teammate it hits
TNT / gunpowder Explosion / small explosion that doesn't break blocks
Water, lava, powder snow buckets, cobweb Placed where they land (the empty bucket drops back)
Bone meal Grows everything around
Coal / charcoal Lights a small fire
Lightning rod Strikes lightning
Slime ball / glowstone dust / pufferfish / feather Oozing / Glowing / Poison / Levitation on nearby creatures
Heart of the Sea Night Vision and Water Breathing for 30 seconds (not consumed)
Anything else Drops on the ground

Items that are already projectiles fly for real: ender pearls teleport you, tridents keep Loyalty and Channeling, fireworks fly straight like from a crossbow, and splash potions, wind charges, arrows, fire charges, eggs and snowballs work just like in vanilla, only further. Vanilla cooldowns are kept. All the effects that are here can be configured in the config.yml

Slingshot Tiers

Crafted in a Y shape (screenshot available): two pieces of the tier's material on top, a string in the middle, a stick below. Netherite is a diamond slingshot upgraded in a smithing table.

Tier Max speed Full charge Power Durability Repair with
Wood 2.5 1 s ×1 200 shots Planks
Iron 2.8 0.85 s ×1.15 450 shots Iron ingot
Diamond 3.1 0.7 s ×1.3 1200 shots Diamond
Netherite 3.4 0.55 s ×1.45 1800 shots Netherite ingot (and it survives fire and lava)

Power multiplies the damage of direct hits: thrown weapons, mace, spears, tridents, arrows. Explosions are not affected. Like with a bow, damage also grows with the charge.

Enchantments

Slingshots have their own enchantments, found like vanilla ones: enchanting table, enchanted books (loot, fishing, librarians) and anvil. Unbreaking, Mending and Curse of Vanishing work too.

Enchantment Levels Effect
Tension I–V +10 % speed and +5 % damage per level
Quick Draw I–III −20 % charge time per level
Impact I–II Knocks back the creature hit, like Punch
Return I The thrown item comes back to your inventory instead of dropping; tridents and spears fly back like with Loyalty
Volley I Fires 3 items at once in a fan, like Multishot; each one is used up and costs 1 durability
Curse of Clumsiness I Shots fly off course at random. Never offered by enchanting tables or villagers: found on books in chests and from fishing. A grindstone doesn't remove it

Advancements

A new ThrowAnything tab with 10 advancements (9 before 1.21.11, which has no spears): craft every tier, throw TNT, hit a creature from 40 blocks away, chop a log with a thrown axe, lasso a mob, hit a mob with a spear, throw a totem to a friend…

Additional Details

  • Protection plugins (WorldGuard, GriefPrevention…) are respected: placing, breaking, explosions and interactions with animals go through the usual events, attributed to the thrower.
  • If the thrower logs out mid-flight, nothing is placed, broken, burned or blown up: the item just drops.
  • A thrown item that never lands (killed by a command, removed by another plugin) drops instead of vanishing.
  • Thrown tools and weapons spin through the air, like a thrown axe.
  • Thrown items burn in lava, even with Return, except fire-resistant ones (netherite) and obsidian.
  • Languages: English and French included. Each player sees messages in their own game language, and you can add your own language files.
  • Commands (permission throwanything.admin, ops by default): /throwanything give [player] [wood|iron|diamond|netherite] and /throwanything reload (alias /ta).
Permission Default Effect
throwanything.use Everyone Fire the slingshot
throwanything.throw.<item> Allowed Set to false to forbid one item (e.g. throwanything.throw.tnt)
throwanything.admin Operators Commands

Configuration

Configuration file: plugins/ThrowAnything/config.yml (fully commented). New settings are added to it automatically when the plugin updates, without touching your changes.

Option Default
Effect of each item, or of an item tag (#minecraft:wool) See the table above
Weight (speed and reload time) of each item Heavy: TNT, anvils, mace. Light: feathers, eggs
Speed, charge time, power, durability and model of each tier See the tiers table
Each enchantment: on or off, strength per level All on, see the enchantments table
Minimum charge to fire 0.2 seconds
Fallback language English
How players get the resource pack Served by the plugin, port 8163

Resource Pack (included)

The ThrowAnything resource pack comes with the plugin: the real slingshot model for each tier, with its pull animation (faster with Quick Draw), and the names of the advancements and enchantments. Nothing to download: choose how players get it in the config (resource-pack.mode).

Mode How it works
self-host (default) The plugin serves the pack itself and sends it to players when they join. Needs one extra open port (8163 by default): on most hosts, add a port in the panel
url The plugin sends the pack from your own link
external Nexo or ItemsAdder includes it in its own pack: the plugin copies it into their folder for you. For anything else, merge the .zip saved in plugins/ThrowAnything
none No pack

Players who decline the pack, or don't have it, just see slingshots as bows.

Installation

  • Minecraft 1.21.4 to 26.3, Paper (use the latest Paper build of your version). One jar for every version.
  • Content newer than your version is simply not there: spears need 1.21.11, blue and brown eggs 1.21.5.
  • Server only: players don't need any mod.
  • Drop the jar in the plugins folder and restart the server. To send the resource pack, open port 8163 (or change resource-pack in the config).

paper

Lancez n'importe quoi !

ThrowAnything ajoute un lance-pierre qui peut tirer n'importe quel item, et presque chaque item fait quelque chose en atterrissant. Lancez de la TNT et elle explose, lancez une hache et elle coupe la bûche qu'elle touche, lancez une laisse et vous attrapez une vache au lasso. Une règle simple : à distance, un item fait ce qu'il fait dans votre main.

Comment ça marche

Action Comment faire
Viser Tenir le lance-pierre en main principale et l'item à lancer dans l'autre main
Charger Maintenir clic droit, comme un arc (pas besoin de flèches)
Tirer Relâcher le clic droit : plus la charge est longue, plus l'item va loin
Carquois Mettre un bundle dans l'autre main : ses items partent un par un
  • Chaque item a un poids : la TNT et les enclumes partent lentement et pas loin, les plumes et les œufs vont loin. Les items lourds demandent aussi plus de temps de recharge.
  • Chaque item tiré use le lance-pierre de 1 point de durabilité (3 avec Rafale).

Ce qui se passe à l'atterrissage

Item Effet
Blocs Posés là où ils atterrissent (ou lâchés en item, au choix dans la config)
Nourriture Nourrit le joueur touché
Armure S'équipe sur le joueur, le porte-armure ou le zombie/squelette/piglin touché
Armes Infligent leurs dégâts de mêlée (et perdent 1 point de durabilité)
Hache, pioche, pelle, houe Cassent le bloc touché si c'est le bon outil et le bon niveau, avec Fortune et Toucher de soie (2 points de durabilité)
Masse Plus elle vole loin, plus elle frappe fort (Densité augmente le bonus)
Lances (1.21.11+) Volent comme un javelot, se plantent et se ramassent
Étiquette, laisse, cisailles, colorant Renomment, attrapent au lasso, tondent ou teignent le mob touché
Nourriture d'élevage Met l'animal touché en mode reproduction
Œufs d'apparition, seaux de poisson/axolotl Font apparaître ou libèrent la créature
Totem d'immortalité Va directement dans la main secondaire du coéquipier touché
TNT / poudre à canon Explosion / petite explosion qui ne casse pas de blocs
Seaux d'eau, de lave, de neige poudreuse, toile d'araignée Posés là où ils atterrissent (le seau vide retombe)
Poudre d'os Fait pousser tout autour
Charbon / charbon de bois Allume un petit feu
Paratonnerre Invoque la foudre
Boule de slime / poudre de glowstone / poisson-globe / plume Suintement / Surbrillance / Poison / Lévitation sur les créatures proches
Cœur de la mer Vision nocturne et respiration aquatique pendant 30 secondes (non consommé)
Tout le reste Retombe au sol

Les items qui sont déjà des projectiles volent pour de vrai : les perles de l'Ender vous téléportent, les tridents gardent Loyauté et Canalisation, les feux d'artifice partent tout droit comme à l'arbalète, et les potions jetables, charges de vent, flèches, boules de feu, œufs et boules de neige fonctionnent comme en vanilla, mais plus loin. Les délais vanilla sont conservés. Tous les effets si dessus son configurable dans le config.yml

Paliers de lance-pierre

Fabrication en forme de Y (screenshot dispo) : deux morceaux du matériau du palier en haut, une ficelle au milieu, un bâton en dessous. Le lance-pierre en netherite s'obtient en améliorant celui en diamant à la table de forgeron.

Palier Vitesse max Charge complète Puissance Durabilité Réparation avec
Bois 2,5 1 s ×1 200 tirs Planches
Fer 2,8 0,85 s ×1,15 450 tirs Lingot de fer
Diamant 3,1 0,7 s ×1,3 1200 tirs Diamant
Netherite 3,4 0,55 s ×1,45 1800 tirs Lingot de netherite (et il résiste au feu et à la lave)

La puissance multiplie les dégâts des coups directs : armes lancées, masse, lances, tridents, flèches. Les explosions ne sont pas concernées. Comme avec un arc, les dégâts augmentent aussi avec la charge.

Enchantements

Les lance-pierres ont leurs propres enchantements, qui s'obtiennent comme ceux du jeu : table d'enchantement, livres enchantés (coffres, pêche, bibliothécaires) et enclume. Solidité, Raccommodage et Malédiction de disparition fonctionnent aussi.

Enchantement Niveaux Effet
Tension I–V +10 % de vitesse et +5 % de dégâts par niveau
Tir rapide I–III −20 % de temps de charge par niveau
Impact I–II Repousse la créature touchée, comme Frappe
Retour I L'item lancé revient dans votre inventaire au lieu de tomber au sol ; tridents et lances reviennent comme avec Loyauté
Rafale I Tire 3 items d'un coup en éventail, comme Tir multiple ; chacun est consommé et coûte 1 de durabilité
Malédiction de maladresse I Les tirs partent de travers au hasard. Ni la table d'enchantement ni les villageois ne la proposent : elle se trouve sur des livres dans les coffres et à la pêche. La meule ne l'enlève pas

Progrès

Un nouvel onglet ThrowAnything avec 10 progrès (9 avant la 1.21.11, qui n'a pas de lances) : fabriquer chaque palier, lancer de la TNT, toucher une créature à 40 blocs, couper une bûche avec une hache lancée, attraper un mob au lasso, toucher un mob avec une lance, lancer un totem à un ami…

Détails supplémentaires

  • Les plugins de protection (WorldGuard, GriefPrevention…) sont respectés : la pose, la casse, les explosions et les interactions avec les animaux passent par les événements habituels, attribués au lanceur.
  • Si le lanceur se déconnecte pendant le vol, rien n'est posé, cassé, brûlé ni explosé : l'item retombe simplement au sol.
  • Un item lancé qui n'atterrit jamais (tué par une commande, supprimé par un autre plugin) retombe au lieu de disparaître.
  • Les outils et armes lancés tournoient en l'air, comme une hache lancée.
  • Les items lancés brûlent dans la lave, même avec Retour, sauf ceux qui résistent au feu (netherite) et l'obsidienne.
  • Langues : anglais et français inclus. Chaque joueur voit les messages dans la langue de son jeu, et vous pouvez ajouter vos propres fichiers de langue.
  • Commandes (permission throwanything.admin, opérateurs par défaut) : /throwanything give [joueur] [wood|iron|diamond|netherite] et /throwanything reload (alias /ta).
Permission Par défaut Effet
throwanything.use Tout le monde Tirer avec le lance-pierre
throwanything.throw.<item> Autorisé Mettre à false pour interdire un item (ex. throwanything.throw.tnt)
throwanything.admin Opérateurs Commandes

Configuration

Fichier de configuration : plugins/ThrowAnything/config.yml (entièrement commenté). Les nouveaux réglages y sont ajoutés automatiquement lors des mises à jour du plugin, sans toucher à vos modifications.

Option Valeur par défaut
Effet de chaque item, ou d'un tag d'item (#minecraft:wool) Voir le tableau plus haut
Poids (vitesse et recharge) de chaque item Lourds : TNT, enclumes, masse. Légers : plumes, œufs
Vitesse, temps de charge, puissance, durabilité et modèle de chaque palier Voir le tableau des paliers
Chaque enchantement : activé ou non, force par niveau Tous activés, voir le tableau des enchantements
Charge minimale pour tirer 0,2 seconde
Langue de secours Anglais
Façon dont les joueurs reçoivent le resource pack Servi par le plugin, port 8163

Resource pack (inclus)

Le resource pack ThrowAnything est fourni avec le plugin : le vrai modèle du lance-pierre pour chaque palier, avec son animation de tension (plus rapide avec Tir rapide), et les noms des progrès et des enchantements. Rien à télécharger : choisissez comment les joueurs le reçoivent dans la config (resource-pack.mode).

Mode Fonctionnement
self-host (défaut) Le plugin sert le pack lui-même et l'envoie aux joueurs à leur connexion. Il faut un port ouvert en plus (8163 par défaut) : chez la plupart des hébergeurs, ajoutez un port dans le panel
url Le plugin envoie le pack depuis votre propre lien
external Nexo ou ItemsAdder l'intègre à son propre pack : le plugin le copie pour vous dans leur dossier. Pour tout autre cas, fusionnez le .zip enregistré dans plugins/ThrowAnything
none Pas de pack

Les joueurs qui refusent le pack, ou ne l'ont pas, voient simplement les lance-pierres comme des arcs.

Installation

  • Minecraft 1.21.4 à 26.3, Paper (prenez le dernier build Paper de votre version). Un seul jar pour toutes les versions.
  • Le contenu plus récent que votre version n'est simplement pas là : les lances demandent la 1.21.11, les œufs bleus et marron la 1.21.5.
  • Serveur uniquement : les joueurs n'ont besoin d'aucun mod.
  • Placez le jar dans le dossier plugins et redémarrez le serveur. Pour envoyer le resource pack, ouvrez le port 8163 (ou changez resource-pack dans la config).

paper

You have a suggestion or a bug to report ?

Come tell me on discord or by an e-mail !

ThrowAnything Team

profile avatar
  • 6
    Projects
  • 263
    Downloads

A question ? A comment ? Come tell me on Discord or via an email ! My web site : https://notdreams.fr

Donate

More from N0TDREAMSView all