From d5adec41d2b716c9d29b4f420c03fc116be0113d Mon Sep 17 00:00:00 2001 From: echoes91 Date: Sat, 3 Feb 2024 10:57:32 +0100 Subject: [PATCH] Version 3.0 --- README.md | 30 ++++++++++++++++++++++++++++++ settingtypes.txt | 17 +++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 README.md create mode 100644 settingtypes.txt diff --git a/README.md b/README.md new file mode 100644 index 0000000..b6dfc9e --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +=== SPEARS for MINETEST by Echoes91 === + +This mod adds spears to Minetest. + +How to download: +If you have this file, you probably know. +If you're reading from gitlab.com, you already know. + +Forum topic: +https://forum.minetest.net/viewtopic.php?f=11&t=13367 + +How to install: +Minetest content DB is the way! +http://wiki.minetest.com/wiki/Installing_Mods + +How to use the mod: +Craft a spear with | | | (material) | + | | stick | | + | stick | | |, +works also mirrored. +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). +This mod contains the word "spear" more than 100 times, if you want the exact number you can count them. +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 even easier to hit. +Someone once reported to have hit its own foot but it takes practice to do that. diff --git a/settingtypes.txt b/settingtypes.txt new file mode 100644 index 0000000..b7c42c5 --- /dev/null +++ b/settingtypes.txt @@ -0,0 +1,17 @@ +# Initial speed +spears_throw_speed (Spear's speed when throwing) float 13 + +# Drag and fluid viscosity slows down the spear +spears_drag_coeff (Drag coefficient for spears in air) float 0.1 + +# Crackyness limit to stick a spear into a node instead of bouncing +spears_node_cracky_limit (Cracky node level limit to stick a spear) int 3 + +spears_enable_stone_spear (Stone spear enabled) bool true +spears_enable_iron_spear (Iron spear enabled, requires pigiron mod) bool false +spears_enable_steel_spear (Steel spear enabled) bool true +spears_enable_copper_spear (Copper spear enabled) bool true +spears_enable_bronze_spear (Bronze spear enabled) bool true +spears_enable_obsidian_spear (Obsidian spear enabled) bool true +spears_enable_diamond_spear (Diamond spear enabled) bool true +spears_enable_gold_spear (Gold spear enabled) bool true