SpearsBy EchoesThis 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 I introduced within
throwing enhanced, now with improved code, and here is where I'll continue their development.
Get the latest release hereTo install, unzip the archive into a folder named 'spears' inside your mod folder, or run
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
git clone https://gitlab.com/echoes91/spears.git
directly from your mod folder so that you can track changes by running
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
after any update.
Browse the codeDependencies: default
License:Code under
LGPLv2.1Textures and sounds under
CC-BY 3.0
Use a spear like a sword for melee attacks; all spears weight about the same so they share the same full_punch_interval, which is slower than any sword's one. Spears' damage and resistance depends on material with similar proportion to default's tools. They have also limited digging capabilities (like a weak pickaxe).
You can disable/enable any spear by creating a text file named spear.conf and looking at the example, please avoid editing other files for such purpose 'cause they get overwritten by git updates.
Throw a spear with the drop key, that's 'Q' by default; spears follow a ballistic trajectory and slowly decelerate due to drag. They will damage any entity they shall hit for an amount that's more than linearly proportional to speed and depends also on the material.
Place a spear on the ground with the place key, that's right click by default. Unluckily these two commands cannot be inverted due to API limitations.
Spears will wear after any use, also by throwing.
Please note that spears are entities which collide with other entities such as dungeon master's fireballs and mese monster's fragments, so if you can't kill them just look at logs: spears are fine but you're not hitting the target.
All recipes work also horizontally mirrored. Any member of the same
group can be used.
Stone spear: Lowest damage and resistance, easiest and cheapest to craft.
|
wood |
wood |
stone |
Steel spear: Good damage and resistance, like steel tools.
|
wood |
wood | steel |
Copper spear: Softer than the steel one, but lasts longer.
|
wood |
wood | copper |
Bronze spear: Like bronze tools, it's as powerful as steel and lasts longer.
|
wood |
wood | bronze |
Obsidian spear: It deals the same damage of a diamond spear but last as long as a steel spear.
|
wood |
wood | obsidian |
Diamond spear: Best damage and resistance, like diamond tools.
|
wood |
wood | diamond |
Future goals are to make spear look better while being thrown and also stick into nodes.
Please read all information before trying them or posting issues, they'll save you some time.
Have fun!