mr:compound_bow_item
Table of Contents
Compound Bow Item - Machine Readable Reference
Description
The Compound Bow is a ranged weapon that offers superior damage and accuracy compared to standard bows, though at the expense of attack speed.
Entity Information
- Entity Kind: CompoundBow
- Type: Weapon (Ranged)
- Class: Bow
- Category: Ranged Weapons
Java Classes
- CompoundBow.java - Main item implementation
- Bow.java - Base class for bow weapons
- ItemFactory.java - Item registration
- MissileWeapon.java - Base class for ranged weapons
JSON Configuration
- SpidersTreasury.json - Contains drop rate information (“CompoundBow”: 3)
- Treasury.json - Contains drop rate information (“CompoundBow”: 3)
String Resources
<!-- English --> <string name="CompoundBow_Name">compound bow</string> <string name="CompoundBow_Info">Arrows launched from this compound bow deal a great amount of damage and have improved accuracy over a wooden bow at the cost of some speed.</string> <string name="CompoundBow_Gender">masculine</string> <!-- Russian --> <string name="CompoundBow_Name">блочный лук</string> <string name="CompoundBow_Info">Стрелы, выпущенные из блочного лука, с лёгкостью находят цель и наносят серьёзный урон, однако он не так быстр, как простой лук.</string> <string name="CompoundBow_Gender">masculine</string> <!-- Spanish --> <string name="CompoundBow_Name">arco compuesto</string> <string name="CompoundBow_Info">Las flechas disparadas con un arco compuesto hacen gran cantidad de daño y van mejor dirigidas, a costa de ser más lentas.</string>
Lua Scripts
No custom Lua scripts exist for this item; implemented in Java
Properties
// Weapon Stats attackDelay = 1.5f; // Slower than basic bow damageRange = {12, 20}; // Higher damage range accuracyBonus = +15%; // Improved accuracy
Modding Considerations
- Extends the base Bow class
- Compatible with arrow-based mechanics
- Can be enhanced with standard weapon upgrades
- Suitable for DEX-based hero classes
Related Entities
Implementation Notes
- Uses the getEntityKind() method with value “CompoundBow” to connect Java code with JSON configs
- Follows standard weapon upgrade mechanics
- Balancing: higher damage/accuracy at cost of speed
mr/compound_bow_item.txt · Last modified: by 127.0.0.1
