Spears
This mod adds spears to Minetest games. They are versatile weapons that can be used to attack like a normal sword, even if slower, or safely thrown to the bad ones from the distance.These are the spears introduced within throwing enhanced, now improved, and here is where I'll continue their development.
Download from content DB - Minetest version 5.4.0 required
Run git clone https://gitlab.com/echoes91/spears.git from mods folder to clone the repository. Beware, mess in progress :)
Browse the code and report bugs
Dependencies: default
License:
Code under LGPLv2.1
Textures and sounds under CC-BY 3.0
Spoiler
- Spears can be thrown using right mouse button, they either hurt someone or stick where they land on; damage depends on speed and material, flight trajectory is ballistic with (unrealistic) drag.
- Spears can be used to fight, but are slower and weaker than swords.
- Spears can be used to dig, but are slower and weaker and pickaxes.
- If you miss the target it's your fault, the spear is fine.
- You can grab a spear on the fly (or maybe wait until it falls?).
- You can stick a spear into a block, but if you remove the block then the spear falls (obviously).
- If you feel clever, throw a spear right above you and look at it to see what happens.
- You can even throw a spear from above down to your foes, it's easier to hit.
- Someone once reported to have hit its own foot but it takes practice to do that
- This mod contains the word "spear" more than 100 times, if you want the exact number count them yourself.
Spoiler
Stone spear: Lowest damage and resistance, easiest and cheapest to craft.
| | | stone |
| | stick | |
| stick | | |
Steel spear: Good damage and resistance, like steel tools.
| | | Steel ingot |
| | stick | |
| stick | | |
Copper spear: Softer than the steel one, but lasts longer.
| | | Copper ingot |
| | stick | |
| stick | | |
Bronze spear: Like bronze tools, it's as powerful as steel and lasts longer.
| | | Bronze ingot |
| | stick | |
| stick | | |
Obsidian spear: It deals the same damage of a diamond spear but last as long as a steel spear.
| | | Obsidian |
| | stick | |
| stick | | |
Diamond spear: Best damage and resistance, like diamond tools.
| | | Diamond |
| | stick | |
| stick | | |
Golden spear: A golden-plated celebratory spear, soft like copper but lasting as long as diamond.
| | | Gold ingot |
| | stick | |
| stick | | |
Spoiler
- First attempt to detect collisionboxes
- Implemented settings through settingtypes.txt, deprecating "spears.conf"
- Functions rewrite, fixed many vector/variable declarations and unknown node handling
- Added pigiron support
- Updated to Minetest 5.6.0 API
- Changed receipts to avoid being confused with arrows
- Various cleansing and fixes
- "Hit detection" based on spearhead position
- Spears go through buildable_to nodes (snow)
- Ugly fix to not collide in air above slabs (works only if slabs are not rotated)
- Spears ding hard blocks (cracky < 3)
- Fixed stick-into-node position to avoid spears turning black (#2467)
- Player velocity added to throw (it's physics baby)
- Cleaner, streamlined code without deprecated functions
- Spears hurt players
- Spears animated in flight
- Spears stick into nodes
- New textures
- New sound when hitting flesh
- New receipt to fit with default tools
- Drag depends on fluid
- Improved instructions
- New gold-plated spear to celebrate
- Update to make use of new API, requires Minetest version 5.2.0
- First stable release
Spoiler
- Spear stick into air if blocks have collision box smaller than 1x1x1
- Spears fly through mobs meshes if passing too far from entity origin
- Summing up, we need some way to detect collision boxes