Iri al dosiero
Jaidyn Ann 0b758cbca4 Add Esperanto translation 2024-05-20 12:54:46 -05:00
assets Add gitattributes 2022-12-05 14:53:46 -05:00
locale Add Esperanto translation 2024-05-20 12:54:46 -05:00
models Add gitattributes 2022-12-05 14:53:46 -05:00
scripts Update license year 2024-01-04 18:11:46 -05:00
sounds Add arrow fly by sounds 2023-07-12 15:21:53 -04:00
textures Update textures and prevent double shooting while async after is being executed 2023-04-25 13:45:26 -04:00
.cdb.json Update licensing 2022-11-28 15:46:55 -05:00
.editorconfig improve type checking 2022-10-12 21:13:06 -04:00
.gitattributes Cleanup lls 2024-01-04 18:07:21 -05:00
.gitignore Add lua language server checks 2022-11-03 11:37:33 -04:00
.luacheckrc add sfinv to luacheck globals 2024-01-04 18:57:06 -05:00
.npmrc Add CI release to ContentDB 2022-11-03 00:04:43 -04:00
.nvmrc Add nvmrc file 2023-02-23 23:45:57 -05:00
LICENSE.txt Add arrow fly by sounds 2023-07-12 15:21:53 -04:00
README.md Update textures and prevent double shooting while async after is being executed 2023-04-25 13:45:26 -04:00
api.lua Make X Bows tab-name translatable 2024-05-20 12:53:15 -05:00
arrow.lua Update license year 2024-01-04 18:11:46 -05:00
bitbucket-pipelines.yml Cleanup lls 2024-01-04 18:07:21 -05:00
i18n.py add translations 2022-10-28 11:51:49 -04:00
init.lua Update license year 2024-01-04 18:11:46 -05:00
items.lua Update license year 2024-01-04 18:11:46 -05:00
mod.conf Update licensing 2022-11-28 15:46:55 -05:00
nodes.lua Update license year 2024-01-04 18:11:46 -05:00
package-lock.json Cleanup lls 2024-01-04 18:07:21 -05:00
package.json Cleanup lls 2024-01-04 18:07:21 -05:00
particle_effects.lua Update license year 2024-01-04 18:11:46 -05: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
screenshot.4.png add more screenshots 2022-10-28 13:50:31 -04:00
screenshot.5.png add more screenshots 2022-10-28 13:50:31 -04:00
screenshot.png Update screenshot 2023-04-25 14:13:50 -04:00
settingtypes.txt add setting to disable 3d quiver 2022-10-31 20:49:08 -04:00

Bow and Arrows [x_bows]

Adds bow and arrows with API. 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
  • 3d quiver shown in 3rd person view (compatible with 3d armor)
  • x_enchanting support

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 arrow/quiver inventory - there should be extra tab in your inventory MOD to show arrow and quiver inventory slots. Arrows and quivers in the players main inventory don't count and will not be used. You have to have arrows and/or quiver in dedicated arrow/quiver inventory slots in order to charge the bow. 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 quiver inventory slot - there should be extra tab in your inventory MOD to show arrow and quiver inventory slots, bow can take arrows from quiver, otherwise arrows outside of the quiver are used to load the bow. Though, if arrows from quiver are used to load 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)
  • i3
  • unified_inventory
  • simple_skins
  • u_skins
  • wardrobe
  • sfinv
  • skinsdb
  • player_api (shows 3d quiver)

License:

  • see included LICENSE.txt file

Installation

see: https://wiki.minetest.net/Installing_Mods