๐
1 file
1,024 chars
๐
pasted-code-1775914365947.txt
txt
26 lines
โถ
pasted-code-1775914365947.txt
txt
26 lines
Create a Minecraft Fabric mod for version 1.21.4 named "FastXP".
The mod should make experience (XP) orbs get collected much faster by the player.
Requirements:
- Remove XP orb pickup delay completely (set pickupDelay = 0)
- Increase the speed at which XP orbs move toward the nearest player
- XP orbs should automatically be attracted to players within at least 8 blocks
- The movement toward the player should feel smooth but very fast (almost instant)
- Do NOT remove XP orbs, just speed up their collection
- Keep performance optimized (no lag)
Technical details:
- Use Fabric API
- Use Mixin to modify ExperienceOrbEntity behavior
- Inject into the tick() method of ExperienceOrbEntity
- Apply velocity toward the closest player every tick
- Normalize direction vector and multiply by higher speed (0.5 to 1.5)
Files to generate:
- Main mod class
- ExperienceOrbMixin class
- fabric.mod.json
- mixins config file
Make the code clean, well-structured, and ready to compile into a .jar file.
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code