Sign in
mod

Bows, slings and spears

by Potluck · version 1 · Checked for all ages

A bow shoots arrows, a sling throws cobblestone and a spear flies far and hard. Hold one and Interact looking where you'd like it to go. They hit creatures from afar (a Gloomling pops at an arrow), and arrows that miss can sometimes be found again; a thrown spear comes back to you. Make them at a workbench.

1name = "Bows, slings and spears"
2by = "Potluck"
3kind = "mod"
4about = "A bow shoots arrows, a sling throws cobblestone and a spear flies far and hard. Hold one and Interact looking where you'd like it to go. They hit creatures from afar (a Gloomling pops at an arrow), and arrows that miss can sometimes be found again; a thrown spear comes back to you. Make them at a workbench."
5main = "main.luau"
6version = 1
7license = "CC-BY-4.0"
8
9[needs]
10world = "0.28"
11tweak = "0.1"
12ui = "0.2"
13sound = "0.2"
14
15# A bow's string, a sling's whirr and a spear's throw, and something hit.
16[sounds.twang]
17caption = "A bowstring twangs"
18wave = "triangle"
19pitch = [220, 160]
20length = 0.3
21attack = 0.002
22decay = 0.12
23
24[[sounds.twang.layers]]
25wave = "noise"
26pitch = 2400
27length = 0.08
28attack = 0.002
29decay = 0.03
30highpass = 1200
31gain = 0.6
32
33[sounds.whirr]
34caption = "A sling whirrs"
35wave = "noise"
36pitch = [600, 1800]
37length = 0.3
38attack = 0.08
39decay = 0.08
40lowpass = 2600
41highpass = 300
42
43[sounds.whoosh]
44caption = "A spear is thrown"
45wave = "noise"
46pitch = [1400, 500]
47length = 0.4
48attack = 0.03
49decay = 0.15
50lowpass = 1800
51
52[sounds.thud]
53caption = "Something hits"
54wave = "sine"
55pitch = [180, 90]
56length = 0.15
57attack = 0.002
58decay = 0.06
59
60[[sounds.thud.layers]]
61wave = "noise"
62pitch = 900
63length = 0.06
64attack = 0.001
65decay = 0.02
66lowpass = 1500
67gain = 0.7