minetest_x_bows/README.md

169 lines
5.9 KiB
Markdown
Raw Normal View History

2021-03-13 22:40:46 -06:00
# Bow and Arrows [x_bows]
2021-03-13 20:39:42 -06:00
2021-03-13 22:40:46 -06:00
Adds bow and arrows to Minetest.
2022-10-16 15:02:04 -05:00
![screenshot](screenshot.1.png)
2021-03-13 22:40:46 -06:00
2021-03-20 21:18:54 -05:00
Video: https://youtu.be/pItpltmUoa8
2021-03-13 22:40:46 -06:00
## Features
2021-03-14 09:30:53 -05:00
* bow will force you sneak when loaded (optional dep. playerphysics)
2021-03-14 09:19:45 -05:00
* loaded bow will slightly adjust the player FOV
* bow uses minetest tool capabilities - if the bow is not loaded for long enough (time from last puch) the arrow will fly shorter range
2022-10-16 15:02:04 -05:00
* charged bow in inventory will discharge and give back the arrow when not selected
2021-03-14 09:19:45 -05:00
* arrow uses raycast
* arrow has chance of critical shots/hits (only on full punch interval)
* arrow uses minetest damage calculation (including 3d_armor) for making damage (no hardcoded values)
* arrows stick to nodes, players and entitites
* arrows remove them self from the world after some time
* arrows remove them self if there are already too many arrows attached to node, player, entity
* arrow continues to fly downwards when attached node is dug
* arrow flies under water for short period of time and then sinks
* arrows adjusts pitch when flying
2021-03-14 09:30:53 -05:00
* arrows can be picked up again after stuck in solid nodes
2021-03-14 09:19:45 -05:00
* registers only one entity reused for all arrows
* target block reduces fall damage by -30
2022-10-16 15:02:04 -05:00
* quiver for more arrow storage (can hold only arrows)
* quiver perks when in inventory (faster arrows, more arrow damage...)
* quiver shows temporarily its inventory in HUD overlay when loading or shooting (quickview)
* quiver item shows its content in infotext (hover over the item)
2021-03-13 22:40:46 -06:00
2022-10-09 21:59:50 -05:00
## How To
2022-10-16 15:02:04 -05:00
### Bow
2022-10-09 21:59:50 -05:00
With the bow selected in hotbar and in your hand, press right click on mouse (PC) or the same action as when placing blocks, to load the bow.
For bow to be loaded you have to have arrows in the main invetory. Charging bow will have slight sound effect and can be fired at any time with left click (PC)
or the same action as when you are digging a block. Waiting for full charge of the bow is recommended
as it will give the arrow full speed (maximum shooting distance) and chance for critical arrow (double damage).
2022-10-09 22:03:55 -05:00
There are few indications on how to know when the bow is fully charged:
2022-10-09 22:01:07 -05:00
2022-10-09 21:59:50 -05:00
* there is a distinct "click" sound
* each arrow has "charge time" in the description
* after shooting, arrow will have particle trail
2022-10-09 22:03:55 -05:00
There are few indications on how to know when the arrow is a critical arrow:
2022-10-09 22:01:07 -05:00
2022-10-09 21:59:50 -05:00
* there is a distinct arrow flying sound
* after shooting, arrow will have red particle trail
If you shoot the arrow before the bow is fully charged the speed/distance will be lower and no arrow particle trail will be shown (also no chance for critical arrow).
Changing the selection in hotbar will unload the bow and give you back arrow from the unloaded bow - this applies also when login in to the game (bow will be discharged and arrow will be returned to inventory) and also when you drop the charged arrow (discharged bow will be dropped with arrow item).
If you have `playerphysics` or `player_monoids` mod installed, charged bow will slow you down until you release the arrow.
2022-10-16 15:02:04 -05:00
### Quiver
Quiver item can hold inventory of arrows. When player has quiver in his/hers inventory, bow can take arrows from quiver, otherwise arrows outside of the quiver are used to load the bow.
Though, if arrow from quivers are used to laod the bow, the arrows have additional speed and damage.
If we are loading/shooting arrows from quiver, there is temporary quickview HUD overlay shown, peeking in to the quivers inventory from which the arrow was taken. Arrows used from quiver will be faster only when the bow is fully charged - see "How To - Bow" for more information on how to know when bow is fully charged.
There are few indications on how to know when the bow shot arrow from quiver:
* there is temporary HUD overview shown peeking in to the quiver inventory
* after shooting, arrow will have blue/purple particle trail (if bow was fully charged)
2021-03-13 22:40:46 -06:00
## Dependencies
- none
## Optional Dependencies
- default (recipes)
2021-03-14 09:30:53 -05:00
- farming (bow and target recipes)
- 3d_armor (calculates damage including the armor)
- mesecons (target can be used to trigger mesecon signal)
- playerphysics (force sneak when holding charged bow)
2022-10-17 09:38:16 -05:00
- player_monoids (force sneak when holding charged bow)
- wool (quiver recipe)
2021-03-13 22:40:46 -06:00
## License:
### Code
GNU Lesser General Public License v2.1 or later (see included LICENSE file)
### Textures
**CC BY-SA 4.0, Pixel Perfection by XSSheep**, https://minecraft.curseforge.com/projects/pixel-perfection-freshly-updated
- x_bows_bow_wood.png
- x_bows_bow_wood_charged.png
- x_bows_arrow_wood.png
- x_bows_arrow_particle.png
- x_bows_bubble.png
- x_bows_target.png
Modified by SaKeL:
- x_bows_arrow_stone.png
- x_bows_arrow_bronze.png
- x_bows_arrow_steel.png
- x_bows_arrow_mese.png
- x_bows_arrow_diamond.png
2022-10-16 15:02:04 -05:00
**CC-BY-SA-3.0, by paramat**
- x_bows_quiver_hotbar_selected.png
- x_bows_quiver_hotbar.png
**LGPL-2.1-or-later, by SaKeL**
- x_bows_quiver.png
- x_bows_quiver_open.png
- x_bows_arrow_slot.png
- x_bows_arrow_mesh.png
2021-03-13 22:40:46 -06:00
### Sounds
**Creative Commons License, EminYILDIRIM**, https://freesound.org
- x_bows_bow_load.1.ogg
- x_bows_bow_load.2.ogg
- x_bows_bow_load.3.ogg
**Creative Commons License, bay_area_bob**, https://freesound.org
- x_bows_bow_loaded.ogg
**Creative Commons License**, https://freesound.org
- x_bows_bow_shoot_crit.ogg
**Creative Commons License, robinhood76**, https://freesound.org
- x_bows_arrow_hit.1.ogg
- x_bows_arrow_hit.2.ogg
- x_bows_arrow_hit.3.ogg
2021-03-14 09:19:45 -05:00
**Creative Commons License, brendan89**, https://freesound.org
- x_bows_bow_shoot.1.ogg
2021-03-13 22:40:46 -06:00
**Creative Commons License, natty23**, https://freesound.org
- x_bows_arrow_successful_hit.ogg
2022-10-16 15:02:04 -05:00
**Creative Commons License, Shamewap**, https://freesound.org
- x_bows_quiver.1.ogg
- x_bows_quiver.2.ogg
- x_bows_quiver.3.ogg
- x_bows_quiver.4.ogg
- x_bows_quiver.5.ogg
- x_bows_quiver.6.ogg
- x_bows_quiver.7.ogg
- x_bows_quiver.8.ogg
- x_bows_quiver.9.ogg
### Models
****LGPL-2.1-or-later, by SaKeL**
- x_bows_arrow.obj
2021-03-13 22:40:46 -06:00
## Installation
see: http://wiki.minetest.com/wiki/Installing_Mods