Create me a minecraft mod where there are 4 custom made tridents, the recipes you can choose, make them have the 4 elemental abilities and passive effects, there is earth, air, water, and fire they all have uniek abilities and passive effects or abilities, they have a setting to turn on 1 time crafting or turn it off
KodariMay 11 at 8:16 pm 58,409 (v2)
Good, I have all the docs I need. Let me plan this out carefully:
Config system for one-time crafting toggle (tracks which players have crafted each trident)
PersistentState to track per-player crafting history
Shaped crafting recipes for each trident
Item model definitions + textures (placeholder)
Events for passive effects (tick-based) and active abilities (throw/use)
ElementalTridents
Adds 4 elemental tridents to Minecraft: Earth (AOE slowness + vine snare on throw), Air (speed/jump boost passive + lightning dash on throw), Water (water breathing/swim speed passive + tidal wave knockback on throw), and Fire (fire resistance passive + explosive inferno on throw). Each trident has unique crafting recipes. Includes a config option to enable one-time crafting per player, preventing duplicate tridents per element.
TridentCraftingState.java — PersistentState tracking which players crafted which trident
EarthTridentItem.java, AirTridentItem.java, WaterTridentItem.java, FireTridentItem.java — each with passive tick logic and throw ability
ElementalTridentEvents.java — registers tick events for passives, projectile hit events for throw abilities
Recipes, item model definitions, lang file, fabric.mod.json, mixin config
Now I have everything I need. Let me build the full project.
ElementalTridents
Adds 4 elemental tridents to Minecraft: Earth (slowness aura + vine snare on throw), Air (speed & jump boost passive + lightning strike on throw), Water (water breathing & swim speed passive + tidal knockback wave on throw), and Fire (fire resistance passive + explosive inferno on throw). Each trident has a unique shaped crafting recipe. Includes a JSON config option to enable one-time crafting per player, preventing players from crafting the same elemental trident more than once.
Now I need a mixin for TridentEntity to detect hits and trigger the throw abilities:
That was a Hytale doc — not relevant. I have enough Fabric knowledge to proceed. Let me now write all the files.
Now the recipes, lang file, and item model definitions:
Now let me verify the TridentEntity mixin — the tridentStack field name and onEntityHit/onBlockHit method names need to be correct in Yarn mappings. The TridentEntity in Yarn has tridentStack as the field and extends PersistentProjectileEntity. Let me also double-check the CraftingResultSlot shadow field name:
I have all I need. Let me now write every file completely:
I need to fix the import for Item in ElementalTridentEvents:
The file is missing the Item import. Let me read all the files I need to create/fix and write them all properly now:
Now I can see all the files. There are several issues to fix:
TridentEntityMixin calls onHitEntity/onHitBlock methods that don’t exist on the item classes — they only have onThrowHit. Need to unify.
CraftingResultSlotMixin calls TridentCraftingState.get(server) but the method is getServerState(server).
ElementalTridentEvents is missing the Item import.
The TridentEntityMixinonEntityHit/onBlockHit method signatures need to match Yarn’s PersistentProjectileEntity — in Yarn 1.21.4 these are onEntityHit(EntityHitResult) and onBlockHit(BlockHitResult) — correct.
The tridentStack field in TridentEntity — in Yarn it’s tridentStack — correct.
Let me fix all these issues now:Let me update all the files that need fixing:
Now let me write all the resource files:
[Generation stopped]
Kodari can make mistakes. Review important code before using.