Commit Graph

106 Commits

Author SHA1 Message Date
cx384 a08ba2bb93
Get rid of deprecated metadata (#628)
The deprecated metadata gets converted to a proper ItemStackMetaRef.
All keys stay the same except for:
- Cans that use `can_level` now, since they didn't store a serialized table in the metadata before.
- `charge` which is now `technic:charge`, since any item (also from other mods) may have a technic charge which can cause compatibility problems.

Backwards compatibility is kept but going back to older `technic` versions might result in misbehaving circuits.
2024-01-22 18:27:54 +01:00
SmallJoker dfcf64c1d0 Chainsaw: new setting to disable safe cutting
Some trees might generate with param2 != 0, which makes the
chainsaw appear blunt/useless. This safety feature is now
customizable.
2023-08-26 10:57:05 +02:00
SmallJoker 0921c326a8 Chainsaw: fix occasional error on startup
This also tweaks the cost function to make the chainsaw a bit less powerful.
2023-08-03 21:28:41 +02:00
SmallJoker 091bb2406d Chainsaw: Add certain dftrees "fruit"-like nodes 2022-10-26 19:17:40 +02:00
SmallJoker 7d39136764
Chainsaw: Partial rewrite, various improvements (#607)
Introduces protection checks for the entire tree
More efficient node digging (VoxelManip)
Improved drop handling using detached inventories for correct stack sizes

Approximate speed-up of approx. 7x compared to the previous code for a giant sequoia.
2022-10-25 18:03:51 +02:00
SmallJoker bce5306abe Fix Mining Drill Mk1 not drilling
Problem introduced in  0f6bdb1
2022-06-19 16:50:20 +02:00
SmallJoker 0f6bdb1bde Correct (almost) all luacheck warnings
Also includes a few code opimizations:
- Combined mining drill functions
- Shorter alias registration (unused?)
- Add TODOs to address later
2022-06-06 21:04:13 +02:00
auouymous b9f89a0e39
Add ethereal support to chainsaw (#570) 2020-09-11 19:19:12 +02:00
KaylebJay 00618d13b5
Drill and laser: call node-specific on_dig (#556)
This properly digs nodes that have a custom on_dig function specified. For normal nodes, the behaviour is kept the same.
2020-06-27 17:29:50 +02:00
David Leal a8daa417c4
Add GitHub workflow and luacheck (#545)
Add badge to README
Fix luacheck warnings
Remove node_ownership globals (and support)
2020-06-12 20:39:00 +02:00
dokutan 31a052d7e6
Chainsaw update (bushes and moretrees fixed) (#551)
Add missing moretrees nodes to the chainsaw
Cut all nodes with the "tree" and "leaves" group too.
2020-05-10 14:42:57 +02:00
BobFred7 b2a124dd83
Deal with lava cans wasting lava (#532)
Rather than replacing lava source with lava source, the lava can will now attempt to place lava to the node "above".
This change applies the same for all registered cans.
2020-05-01 21:24:12 +02:00
Adrian 904800abde Add river water can (#527) 2020-01-26 14:29:44 +01:00
David Leal d5df30c3ff Replace deprecated functions with newer ones (#510)
Use mod.conf
2019-09-14 12:55:41 +02:00
coil e66bb281a4 Add cool_trees support to the chainsaw (#511)
Make list of timber node names less repetitive
2019-09-07 13:02:21 +02:00
upsala 700faca5cb Add moretrees poplar to chainsaw (#489) 2019-03-10 11:40:52 +01:00
Christopher Head 4f78a69ffc Fix trailing whitespace (#482)
Trim all trailing whitespace characters,
2019-01-26 14:15:40 +01:00
Vanessa Dannenberg 44cb8df048 use basic_materials mod where possible. 2018-11-11 09:54:20 +01:00
Vitaliy d1b54a573c Use tin from MTG instead of `moreores` (#401)
Register tin dust unconditionally
2018-07-21 19:11:12 +02:00
HybridDog f013d2dd1f Mining laser fixes (#421)
Do not remove air and group:hot nodes instead of using a fixed list
Abort mining when encountering an unknown node
Add random to the smoke puff particle
Set mining laser tool range to 0
2018-07-21 19:10:32 +02:00
Jordan Irwin 4cc124ff9e Replace deprecated call to 'minetest.env' (#371) 2017-06-08 03:30:41 -04:00
Vanessa Ezekowitz 78f16c3e8e label all ABMs for profiler 2017-03-31 19:15:25 -04:00
Vanessa Ezekowitz 60b5ca5594 Merge pull request #308 from thatgraemeguy/mk3_drill_fix
Make mk3 drill in 3x3 mode drill nodes from top to bottom
2017-03-06 14:22:25 -05:00
Vanessa Ezekowitz 05dfc14fdb Merge pull request #297 from t4im/fix/drill_pointed_thing
Remove reading of undefined global to fix drill drilling pointed_thing.above in combination with other badly coded mods.
2017-03-06 14:08:06 -05:00
Thomas 1765c31eaa Fixed set mode for mining drill mk2 and mk3 2017-03-05 09:01:50 +01:00
Thomas 11610cd9cb Fixed set mode for mining drill mk2 and mk3 2017-03-04 19:44:39 +01:00
ThatGraemeGuy 5dd6191175 Make mk3 drill in 3x3 mode drill nodes from top to bottom 2017-01-30 12:14:26 +02:00
ShadowNinja 1475ee6e40 Add trace_node_ray_fat and use it for mining lasers
This function includes more nodes, so laser tunnels
aren't always only one node wide.
2016-11-17 11:48:19 -05:00
ShadowNinja cfd4cb7871 Update mining laser particle API usage 2016-11-17 11:48:19 -05:00
ShadowNinja 2b0a283556 Adjust mining laser start offset 2016-11-17 11:48:19 -05:00
Tim 7890ffe46b Fix drill drilling pointed_thing.above when some other mod declares a global variable above. 2016-10-09 17:46:44 +02:00
NathanSalapat 584cd82b58 Add support for new trees in minetest game 2016-03-20 13:30:18 -04:00
ShadowNinja 85a984982c Cleanup
Changes:
  * Make rayIter a global utility, and use it for radiation too.
  * prettynum -> pretty_num and cleanup.
  * Remove resolve_name/function_exists (unused).
  * Cleanup nuclear reactor code.
2016-03-20 00:02:33 -04:00
RealBadAngel 46f3f8ec7d Add vacuum cleaner tool (by Phvli) 2015-11-28 08:27:22 +01:00
Vanessa Ezekowitz 71b13ab0e8 tile_images --> tiles 2015-10-23 14:15:48 -04:00
MT-Modder b8c9028681 Tools don't wear in creative mode v2
- Removed cans (will add again per request)
- Added creative check to global namespace (checking only once as
requested by VanessaE)
2015-03-11 18:08:16 -04:00
Tim 72d541a607 add trunks: mod support to the chainsaw 2015-02-06 07:59:51 +01:00
Tim 91e12c41fd fix chainsaw support for default:pinetree 2015-02-05 20:33:11 +01:00
Tim a0cf9eb8f3 replace overlooked latex->rubber furnace recipe with glue as a form of "rubber cement" 2015-01-30 17:50:06 +01:00
Tim 80f79f5e1e remove _sidways moretree trunks from chainsaw, these would be abm-converted before anyone could saw them anyway 2015-01-30 05:09:21 +01:00
Tim e4c34c9c32 allow transformer and chainsaw crafts even if required mesecon modules are not loaded 2015-01-30 05:09:21 +01:00
Tim fe4372649f reuse the new screwdriver code of minetest/minetest_game in adapted form for the sonic screwdriver 2015-01-29 18:38:23 -05:00
Wayward1 9e1c5740d3 Fix support for acacia trees
Just realized I had the wrong item string >.<
2015-01-16 20:08:25 -05:00
Tim 0114feaf04 Add more nodes to the chainsaw 2015-01-12 17:51:55 -05:00
Vanessa Ezekowitz a413904ecd minetest.env:* --> minetest.* 2014-11-30 12:45:42 -05:00
Novatux dd30838245 Add more nodes to chainsaw 2014-11-30 08:28:57 +01:00
ShadowNinja 42d0081367 Replace mining laser ray tracer with a simpler iterable one 2014-09-24 20:32:36 -04:00
HybridDog 4d1f9753e3 update mining lasers 2014-09-16 15:23:46 -04:00
ShadowNinja ec069aa43e Change chainsaw cutting algorithm back to old one
The new algorithm caused horizontal sections of trees to be left, with the
sections above and below them removed.
2014-08-22 20:57:30 -04:00
ShadowNinja 16302cffce Fix chainsaw placing drops and playing sounds at tops of trees 2014-08-22 20:01:15 -04:00