Throwable

Throwable

Mod

Throw everything!

Client and server Game MechanicsUtility

279 downloads
2 followers
Follow Save

Throwable

This mod can make everything throwable, with a configuration system.

If you want to make something throwable, add to #throwable:throwable item tag.

By default, all swords can be thrown. Once you have thrown, you need to click it to pick up. (Configurable)

If the throwable items have fire aspect enchantment, it will set the target on fire for level*5 seconds.

1.21+ only You can use loyalty enchantment on any throwable items.

Configuration

Global

Create file .minecraft/config/throwable.json (may exist).

{
  //Whether only owner can pick up the throwable thing.
  "ownerPickUpOnly": false,
  //Whether auto pickup when near.
  "autoPick": false,
  //Whether become an item entity when despawn
  "dropWhenDespawn": true,
  //Ticks before despawn, -1 for infinite time (not recommended)
  "despawnDelayTicks": 6000
}

Item Specific

Create file data/<item namespace>/throwable/throwable/<item id>.json, then write following contents:

{
  //All keys are optional, following are default values
  //Use time to grant critical damage
  "maxUseTime": 72000,
  //Damage Ratio to item base damage
  "damageScale": 0.5,
  //Render Size Scale
  "scale": 1,
  //Rotate based on renders in item frame
  "rotateOffset": 0,
  //Sound played when item thrown
  "throwSound": "minecraft:item.trident.throw",
  //Sound played when hit ground
  "hitGroundSound": "minecraft:item.trident.hit_ground"
}

Project members

Code Of Ardonia

Code Of Ardonia

Organization

Details

Licensed ARR
Published a month ago
Updated a month ago