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
33bc0b5f69
Make the normal arrow able to press mesecons buttons
...
Fixes Mynetest/Mynetest-server#80
2017-03-05 14:29:49 +01:00
upsilon
6de69cdf76
Remove setting check in README example
2017-02-02 20:34:13 +01:00
upsilon
1351906574
Remove arrow object if it cannot be throw
2017-01-17 19:22:49 +01:00
upsilon
9179e12936
on_throw callback: Add a modulo by the main list size to calculate next_index
2017-01-17 19:16:19 +01:00
upsilon
2331ccf9b4
Drop arrow: put the itemstack back to the inventory only in non-creative mode
2017-01-17 19:09:30 +01:00
upsilon
19f5864d67
Add a drop arrow
2017-01-17 19:05:57 +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
709bb4ec16
Record protection violations
2017-01-15 13:05:05 +01:00
upsilon
13aaea70fa
Fix some logging messages
2017-01-15 12:17:52 +01:00
upsilon
c5d7e77828
Remove useless calls to minetest.is_protected in on_hit functions
...
(Already checked in the generic API)
2017-01-15 12:06:16 +01:00
upsilon
ad966cf06d
Crashfix: avoid last_pos to be nil when calling the on_hit function
...
should fix https://github.com/Mynetest/Mynetest-server/issues/64
2017-01-15 12:03:54 +01:00
upsilon
8a27df9c24
Fix calls to minetest.is_protected
...
The name parameter was not specified.
2017-01-13 18:04:41 +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
af35502e61
Use get_look_horizontal instead of deprecated get_look_yaw
2017-01-08 15:16:30 +01:00
upsilon
5a38a386eb
Remove useless timer condition when checking if hitting the hitter
2017-01-08 10:35:53 +01:00
upsilon
15e57c0397
Another crash bugfix, for the same reason as in the previous commit
2017-01-07 18:48:59 +01:00
upsilon
6d84b5d63a
Bugfix: arrow throwed on a player caused a crash
2017-01-07 18:36:06 +01:00
upsilon
98d5fc9449
Bugfix: remove the arrow in the inventory if not in creative mode
2017-01-07 14:37:20 +01:00
upsilon
5bd926a879
Bugfix: hitter parameter for arrows and golden arrows is an ObjectRef, not a player name
2017-01-07 14:30:46 +01:00
minetest-admins
a95f439edd
Remove fire and bucket from depends.txt
2017-01-07 12:57:08 +01:00
minetest-admins
0bdbb21c22
Add LICENSE.txt (Mozilla Public License version 2.0)
2017-01-07 12:50:11 +01:00
upsilon
cdafb81167
Fix a potential usebug
...
Avoid a player to crash the server by disconnecting after throwing the arrow and before it hits.
2017-01-05 20:39:41 +01:00
upsilon
1e1424ab34
First commit
2017-01-04 18:53:37 +01:00