Commit Graph

32 Commits

Author SHA1 Message Date
upsilon 49f3f36bdf
Better documentation for new physics in README.md 2020-04-03 08:13:57 +02:00
upsilon 0dd44bb30c
New physics 2020-04-02 17:17:31 +02:00
Louis Royer bd4d040c4e
Add toolrank optional support (#21)
* Add toolrank support

* Make bow shot able to level up the bow

* Add requested changes

* Change enable_toolranks to no_toolranks

* Remove the overwritting

* no_toolranks in defs in throwing.register_bow

* Toolranks support: minor changes
Reword documentation in README.md, fix a typo in init.lua and enable toolranks even if def.original_description exists---but do not overwrite it.

* Wait until the arrow hits its target before updating bow toolranks uses

* Add a throwing.toolranks settting to allow globally disabling toolranks

Co-authored-by: upsilon <upsilon@langg.net>
2020-04-02 16:11:42 +02:00
upsilon 1449f49af7
Move craft registration from throwing to throwing_arrows 2020-02-11 20:01:13 +01:00
upsilon cae8d38cfb
Remove outdated information from README.lua, add mention of the Native-American-Village mod by Steamed-Punk 2019-09-23 17:39:47 +02:00
upsilon 3758affc98
Update repo URLs in README.md 2018-08-20 10:08:14 +02:00
upsilon 35442d8ac4 Revert "Merge throwing and throwing_arrows into a single modpack."
This reverts commit 8545ebb743.
2018-08-20 10:07:08 +02:00
upsilon c89fb00cb4 Revert "Add upstream repositories links in README.md"
This reverts commit b9f17b0bd6.
2018-08-20 10:06:57 +02:00
upsilon b9f17b0bd6
Add upstream repositories links in README.md 2018-08-19 11:17:30 +02:00
upsilon 8545ebb743
Merge throwing and throwing_arrows into a single modpack. 2018-08-13 10:51:06 +02:00
upsilon 154566bd72 Fix typos and update README
* Mynetest has been renamed Eurythmia,
* "Developed" contains only one P,
* Bugs using `throw_itself` are to be expected as this field is mostly untested,
* And the last paragraph is of questionable grammatical correctness.
2018-08-13 10:41:23 +02:00
upsilon 3dc99c1fce
Split this mod between the API and the bows/arrows
Fixes #13
2017-07-09 18:52:25 +02:00
upsilon e9acbfa6d1
Tell the `allow_shot` function if it is its last run 2017-07-09 11:12:04 +02:00
upsilon 094613eb29
Add a sound a delay to the bow 2017-06-21 17:29:20 +02:00
upsilon 000c16d292
Extend throwing.register_bow, change params order 2017-06-21 17:08:32 +02:00
upsilon d7fae754f9
Add a spawn_arrow_entity field to the register_bow definition table 2017-06-21 10:39:59 +02:00
upsilon 1be6638b56
Add a cooldown 2017-06-20 20:19:27 +02:00
upsilon 541f102b15
Add a "uses" field, add a gold bow 2017-06-20 17:32:00 +02:00
upsilon 01c10dff75 Add a throw_itself field to throwing.register_bow definition table 2017-06-20 17:09:06 +02:00
upsilon d33a8b69ca
Make the on_hit field optional 2017-06-20 16:42:35 +02:00
upsilon 552b958dba
Check for the presence of a throwing_entity field in item definition table 2017-06-20 16:39:03 +02:00
upsilon a45399bfea
Allow external mod to choose the bow/arrow prefix 2017-06-20 16:29:36 +02:00
upsilon 1778b89597
Add an allow_shot field to throwing.register_bow definition table
And make the throwing.throw_arrow function able to throw any item
2017-06-20 16:25:34 +02:00
upsilon 4fe2a0c88c
Add a allow_protected definition parameter 2017-03-05 15:30:02 +01:00
upsilon 6de69cdf76
Remove setting check in README example 2017-02-02 20:34:13 +01:00
upsilon 307b2d60e6 Improve API again 2017-01-17 19:03:53 +01:00
upsilon c3ac46697b Improve the API by using definition tables.
This commit totally breaks retro-compatibility.
2017-01-17 17:43:10 +01:00
upsilon ba3838842b Improve the API
This commit breaks retro-compatibility. (Although not too much)
2017-01-17 16:32:30 +01:00
upsilon a6ce9315b0 Many things:
* Use global variable throwing.modname instead of local modname
* Use minetest.place_node instead of minetest.set_node for torch arrow and build arrow
* Add an error return value to the on_hit function
2017-01-12 20:49:42 +01:00
upsilon e7ae9a01cf Fix arrow placing issues 2017-01-12 19:17:51 +01:00
upsilon 318bf9e23c Add three settings
throwing.velocity_factor, throwing.horizontal_acceleration_factor, throwing.vertical_acceleration
2017-01-08 15:29:25 +01:00
upsilon 1e1424ab34 First commit 2017-01-04 18:53:37 +01:00