Iri al dosiero
Juraj Vajda 9a95e998a3 quiver inventory - initial commit sfinv 2022-10-25 21:19:31 -04:00
docs add arrow animations 2022-10-24 10:52:00 -04:00
models Improve arrow visibility 2022-10-24 16:31:23 -04:00
sounds Add quiver 2022-10-16 16:02:04 -04:00
textures quiver inventory - initial commit sfinv 2022-10-25 21:19:31 -04:00
types quiver inventory - initial commit sfinv 2022-10-25 21:19:31 -04:00
.cdb.json add ldoc documentation 2022-10-22 23:20:02 -04:00
.editorconfig improve type checking 2022-10-12 21:13:06 -04:00
.gitignore add ldoc documentation 2022-10-22 23:20:02 -04:00
.luacheckrc Introduce classes and reusable OOP 2022-10-20 09:13:35 -04:00
LICENSE.txt add readme, license and optimize files 2021-03-13 23:40:46 -05:00
README.md readme update 2022-10-21 15:56:11 -04:00
api.lua quiver inventory - initial commit sfinv 2022-10-25 21:19:31 -04:00
arrow.lua add arrow animations 2022-10-24 10:52:00 -04:00
bitbucket-pipelines.yml run pipeline also in master 2022-10-09 22:26:13 -04:00
config.ld add ldoc documentation 2022-10-22 23:20:02 -04:00
init.lua quiver inventory - initial commit sfinv 2022-10-25 21:19:31 -04:00
items.lua Introduce classes and reusable OOP 2022-10-21 13:37:35 -04:00
mod.conf Introduce classes and reusable OOP 2022-10-21 13:37:35 -04:00
nodes.lua add arrow animations 2022-10-24 10:52:00 -04:00
particle_effects.lua Improve arrow visibility 2022-10-24 16:31:23 -04:00
quiver.lua Introduce classes and reusable OOP 2022-10-20 09:13:35 -04:00
screenshot.1.png Add quiver 2022-10-16 16:02:04 -04:00
screenshot.2.png Add quiver 2022-10-16 16:02:04 -04:00
screenshot.3.png Add quiver 2022-10-16 16:02:04 -04:00
settingtypes.txt add settingtypes and disable attached arrows to entitties by default 2021-03-21 14:39:02 -04:00

Bow and Arrows [x_bows]

Adds bow and arrows to Minetest. The goal of this Mod is to make most complete single bow with arrow what will work with MTG damage system, time from last punch as simple as possible. Eventually due to the damage tiers in MTG additional arrows were added.

screenshot

Video: https://youtu.be/pItpltmUoa8

Features

  • bow will force you sneak when loaded (optional dep. playerphysics)
  • 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
  • charged bow in inventory will discharge and give back the arrow when not selected
  • 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
  • arrows can be picked up again after stuck in solid nodes
  • registers only one entity reused for all arrows
  • target block reduces fall damage by -30
  • 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)
  • X Bows API for creating custom shooters and projectiles

How To

Bow

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).

There are few indications on how to know when the bow is fully charged:

  • there is a distinct "click" sound
  • each arrow has "charge time" in the description
  • after shooting, arrow will have particle trail

There are few indications on how to know when the arrow is a critical arrow:

  • 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.

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)

Dependencies

  • none

Optional Dependencies

  • default (recipes)
  • 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)
  • player_monoids (force sneak when holding charged bow)
  • wool (quiver recipe)

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

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

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

Creative Commons License, brendan89, https://freesound.org

  • x_bows_bow_shoot.1.ogg

Creative Commons License, natty23, https://freesound.org

  • x_bows_arrow_successful_hit.ogg

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

Installation

see: http://wiki.minetest.com/wiki/Installing_Mods