Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Improved Tridents (datapack)

This datapack adds sensible improvements and quality-of-life to the Trident to make it a viable melee and ranged weapon adjacent to the Sword.

Requires: Minecraft 1.21.x +

The changes are intended to be as fairly balanced as possible. For balance issues and bugs, please open an issue here on Github.

For more detail, see Features and for unfinished work see TODO!

Install

Simply download the archive from Releases, create a new folder named improved-tridents within the datapacks folder, and extract the downloaded archive into that improved-tridents folder.

If downloading from Modrinth:

  • use the Modrinth app to install it
  • or you may download the archive, create a new folder named improved-tridents within the datapacks folder, and extract the downloaded archive into that improved-tridents folder.

Important note: If you have an old version and are NOT using the Modrinth App, be sure to delete the entire folder (improved-tridents folder) from datapacks before installing!

Features

1. Craftable Tridents

Recipe: 3 Prismatic Shards + 2 Breeze Rods

image


2. Smeltable Tridents

A single trident smelts into 1 Breeze Rod

image


3. Loyalty Beyond the Void

Tridents enchanted with Loyalty always return from the Void (pretty nice for the End)


4. Enchantments (see TODO for the unfinished stuff)

  • Looting - mobs to drop more items and increases the chances of rare drops
  • Loyalty - has 30% faster recall-to-hand when thrown
  • Fire Aspect - melee attack sets attacked targets on fire
  • Knockback - increases melee knockback
  • Piercing1 - arrows / projectiles to pass through entities
  • Impaling1 2 - deal extra damage to all wet mobs (in water/rain/waterlogged blocks) and aquatic mobs
  • Sharpness2 - increases melee and ranged/thrown damage
  • Smite2 - increases damage to undead mobs (Bogged, Drowned, Husk, Phantom, Skeleton, Wither, Wither Skeleton, Zoglin, Zombie, Zombie Villager, Zombified Piglin)
  • Bane of Arthropods2 - increases damage to arthropod mobs (spiders, cave spiders, bees, silverfish, and endermites)

1 Piercing may not be applied with Impaling

2 Only ONE of these enchantments (Impaling / Sharpness / Smite/ Bane of Arthropods) may be applied


5. Enchanting Table

Provides the following enchantments with the same vanilla weights as Sword / crossbow enchants:



TODO

  • Trident returns to inventory slot it was thrown from
    • dev note: tag the trident when thrown, save slot value, then run an if command to check if the tag exists and send it to that slot / offhand

  • Enchantments
    • Piercing1 - arrows / projectiles to pass through entities


Developer's Area

Notes

  • Repairable Tridents - use breeze rod(s) to add durability

    Cannot add recipes to Anvil :(

  • Combat Tests update(unreleased experimental snapshot in 2019/2020 - official wiki link):

    Not possible to change item base stats globally - functionality does not exist for datapacks :(

    The enchantment changes might be doable though!

    • Base Damage: 9 image -> 7 image
    • Attack speed: 1.1 -> 2.0
    • Attack Range: 3 blocks -> 3.5 blocks
    • Enchantments:
      • Impaling: Applies to all wet mobs (in water / rain) as well as aquatic mobs
      • Loyalty: tridents thrown to the void (the End) always return to their owner

Datapack Definitions

  • Data Pack
  • Tag
    • Purpose: group different game elements together (also called registry tags)
    • Path: data/<namespace>/tags/function/<name>.json ...
      • not limited to function... can use block, item etc ...
  • Loot table
    • Path: data/<namespace>/loot_table/<name>.json
    • "Vanilla loot tables are grouped into categories with some tables being in subfolders of those"
      • Ie. - the file for zombies would go in: <data pack name>/data/minecraft/loot_table/entities/zombie.json. This makes every zombie in that world use the datapack's loot table rather than the default zombie loot table.
  • Loot context
    • Purpose: set of parameters available to loot tables, predicates, item modifiers, and number providers. Used to determine if a given loot table or predicate is valid to that use case, allowing this check to be done when the data pack is loaded, rather than at runtime
  • Item modifier
    • Purpose: apply modifications to item stacks, such as adjusting the stack size or adding enchantments
    • Path: data/<namespace>/item_modifier/<name>.json
  • Attribute->Modifiers
    • Purpose: values that determine certain properties of mobs, armor stands, and players. Attributes also have modifiers that adjust the strength of their effects
  • Predicates (requirements)
    • Purpose: check conditions within the world
  • Enchantments definitions
  • Recipes - shaped crafting
    • Path: data/<namespace>/recipe
  • Function (Java Edition)
    • Path: data/<namespace>/function
    • Path->Tag: data/namespace/tags/function/load.json|tick.json
    • Commands

Item/Entity Info

Vanilla functionality


Base attributes

Name Value
Base Damage (melee) 9 image
Base Damage (range) 8 image
Attack Range 3 blocks
Base Durability 250
Attack speed (melee) 1.1
Attack speed (range, Loyalty III) 30 blocks/s return time

Enchants - wiki link

Name Description Max Level Method Weight
Loyalty** Causes the trident to return after landing. (10, 20, 30 blocks per level respectively) III image image 5
Channeling** Releases a bolt of lightning when the thrown trident strikes a mob or lightning rod during a thunderstorm. I image image 1
Riptide** Replaces the throw with a charge that hurls the user forward ONLY when wet. III image image 2
Impaling Increases the damage dealt to aquatic‌ mobs. V image image 2
Unbreaking Grants a chance to negate durability consumption. III image image 5
Mending Repairs the trident when obtaining experience. I image 2

** Loyalty and Channeling are incompatable with Riptide

Impaling (damage/level) - wiki link

Only affects all aquatic mobs

Level Increase Melee Ranged
I adds 2.5 (image×1.25) 11.5 (image×5.75) 10.5 (image×5.25)
II adds 5 14 (image×7) 13 (image×6.5)
III adds 7.5 (image×3.75) 16.5 (image×8.25) 15.5 (image×7.75)
IV adds 10 19 (image×9.5) 18 (image×9)
V adds 12.5 (image×6.25) 21.5 (image×10.75) 20.5 (image×10.25)

About

A Minecraft datapack for Tridents to be as viable as Swords

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages