Commit Graph

41 Commits

Author SHA1 Message Date
1F616EMO~nya
cd3a42cfd7
Fix deprecated function calls (#104)
* Calls to `ObjectRef:moveto()` (Replaced by `ObjectRef:add_pos()` or `ObjectRef:move_to()` depending on engine version)
* Calls to `ObjectRef:setyaw()` (Replaced by `ObjectRef:set_yaw()`)
* Calling `MetaDataRef:set_string()` with `nil` as the second parameter (Replaced by `""`)
2024-06-25 21:31:20 +02:00
1F616EMO~nya
1b4628e491
Avoid falling nodes eating digger heads (#94)
If the interval of the digtron is too short (e.g. 1s) while the falling time of nodes in front of the digtron is too long, digtrons may run into them. Previously, this would result in falling nodes destroying the digger head. With this change, the digtron absorbs the falling node and puts it into its inventory.
2024-01-15 14:16:46 +01:00
Buckaroo Banzai
f746e64c5f
provide default for offset var in case of nil
fixes #92
2023-11-02 11:29:50 +01:00
Buckaroo Banzai
3e1c1ca208
add luacheck and ci workflow (#88)
* add luacheck and ci workflow

* fix another bunch

* more fixes

* more fixes

* regex magic

* add deps

* doc.lua special rules

* more regex magic

* final fixes

---------

Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2023-06-19 07:44:40 +02:00
Buckaroo Banzai
fc11dce128
Fix deprecated minetest.env calls (#86) 2023-02-21 20:41:49 +01:00
tuedel
843dbd2276
Replace deprecated function calls (#70) 2020-08-12 21:15:36 +02:00
OgelGames
93573f22ee
Fix and simplify battery usage (#65)
Changes digtron.tap_batteries function so that battery wear and charge is set directly to 0 instead of needlessly calculating it.

Fixes a crash that happens if a battery item doesn't define tool capabilities.
2020-06-01 11:22:28 +02:00
SX
f3d526eda7
Prevent punching with invalid userdata (#64)
Fixes for https://github.com/pandorabox-io/pandorabox.io/issues/445
2020-02-25 12:42:57 -07:00
FaceDeer
d0ce43e2fe add some safety checks to update_builder_item 2019-08-18 14:19:19 -06:00
FaceDeer
aa927fe26a protect against extremely large builder periods causing entities to be added out of range 2019-06-09 23:53:09 -06:00
FaceDeer
e09f1b9f56 found a way for incomplete digtron layouts to be created 2019-01-13 16:02:41 -07:00
FaceDeer
556b80bc22 Another guard against a nil that shouldn't be possible 2019-01-13 11:19:40 -07:00
FaceDeer
d4a03478e2 prevent digging of immortal nodes 2019-01-05 22:55:46 -07:00
FaceDeer
5c0700456c
Optimization of table allocation, more sophisticated entity damage (#37)
This pass cleans up a lot of unnecessary table allocation and disposal, which should help with memory usage and garbage collection.

It also adds some sophistication to the entity damage process from diggers, allowing items to be picked up into Digtron inventory.
2019-01-04 22:06:12 -07:00
FaceDeer
d480b9bf2f mark_diggable needed a player reference to dig steel doors without crashing 2017-10-15 12:54:48 -06:00
FaceDeer
1aa88e5264 allow digtrons to dig undefined nodes without crashing 2017-10-12 23:07:48 -06:00
FaceDeer
06a2ba85e3 various tidies and tweaks to technic support 2017-10-10 20:33:56 -06:00
h-v-smacker
6290e57d8f Support for RE batteries for fuel 2017-10-10 22:02:35 +03:00
FaceDeer
04228904f5 reuse period/offset markers for intermittent diggers 2017-09-19 23:25:11 -06:00
FaceDeer
46bffd82d3 standardize config settings 2017-09-12 00:20:52 -06:00
FaceDeer
12f4a03ef2 add a "digtron_protected" node group for modders to use if they want to prevent digtrons from digging their nodes 2017-01-27 19:54:19 -07:00
FaceDeer
5a30fe40e3 Add "Doc" modpack support. Also fix up some bugs with crate marker entities, and make them show protected nodes. 2017-01-17 19:57:20 -07:00
FaceDeer
51c5e9b641 Diagonal movement setting for the auto-controller. 2017-01-14 16:58:37 -07:00
FaceDeer
f0e09f136a Add dual digger heads for eventual use with diagonal movement 2017-01-13 23:20:59 -07:00
FaceDeer
435f21458c the old movement code is now unneeded. 2017-01-10 00:36:39 -07:00
FaceDeer
01fb71d2eb renaming class definition files 2017-01-10 00:32:08 -07:00
FaceDeer
eaae4276fc removing the old get_all_digtron_neighbours
This is basically working, but still needs revisions to take advantage
of the new information being stored in the image data. It should be
possible to do all the temporary inventory work directly on the image
file so that no put-back-in-inventory steps will be needed any more.
Much nicer.
2017-01-08 23:52:36 -07:00
FaceDeer
e43c5d3974 Splitting some code files into more manageably-sized chunks. 2017-01-07 09:52:39 -07:00
FaceDeer
257863b888 Add damage-dealing to the digger heads 2017-01-06 23:48:48 -07:00
FaceDeer
1789316ec5 Added Pipeworks compatibility 2017-01-06 21:47:06 -07:00
FaceDeer
6af67133be Adding combined storage module 2017-01-06 12:07:27 -07:00
FaceDeer
e9e8e202f9 Add logging of various events. 2017-01-05 20:58:36 -07:00
FaceDeer
253ff12815 add lava and water alerts, and an option for setting lava impassible (true by default) 2017-01-05 20:38:08 -07:00
FaceDeer
1ecb6964d9 Builders no longer keep a real copy of the object they're "programmed" with. Also, add a "creative mode" configuration flag 2017-01-04 19:23:21 -07:00
FaceDeer
d545593f27 combatibility with Carbone (and presumably other games that use older versions of the default mod) 2017-01-03 23:56:34 -07:00
FaceDeer
cfd6071ee6 Added the auto-controller. 2017-01-03 23:03:41 -07:00
FaceDeer
711c43b964 remove some stray minetest.debug calls 2017-01-02 19:27:21 -07:00
FaceDeer
2b5dc41d50 Adding item display entities to the builder heads 2017-01-02 18:50:03 -07:00
FaceDeer
47e42801d2 Adding fuel usage
Adding fuel usage for digging and building. Fuel storage hopper module
added to hold fuel.
2017-01-01 17:12:32 -07:00
FaceDeer
68e0ca21c6 Changed sand digger to a more generic soft material digger, added more sophisticated traction, made structure climbable, added infotexts 2016-12-31 21:19:52 -07:00
FaceDeer
2695c61033 Initial commit
Initial commit. Contains digger head, sand digger, builder, controller,
pusher, structure node, light, inventory, and digtron core crafting
item.
2016-12-30 23:38:18 -07:00