Commit Graph

384 Commits

Author SHA1 Message Date
gabriel1379
f68a3f060f Revert "Add additional check for nether (to make sure that we have the right one)"
This reverts commit ec646b2059.
2024-04-19 07:06:22 +02:00
gabriel1379
72c32fa13e Revert "Add local keyword to check function's local variable in compressor recipes"
This reverts commit c92e8f796a.
2024-04-19 07:05:44 +02:00
gabriel1379
c92e8f796a Add local keyword to check function's local variable in compressor recipes 2024-04-13 21:17:57 +02:00
gabriel1379
ec646b2059 Add additional check for nether (to make sure that we have the right one) 2024-04-13 21:15:11 +02:00
gabriel1379
03d62da9c9 Refactor default recipe clearing part 2 2024-04-08 11:01:31 +02:00
gabriel1379
06ca0371ea Refactor default recipe clearing 2024-04-08 10:53:49 +02:00
gabriel1379
8ab2a6e047 Refactor recipes collection 2024-04-08 09:57:50 +02:00
gabriel1379
54122f9071 Add compressor recipes for nether brick and lump 2024-04-08 09:44:20 +02:00
Gábriel
d5ff69d1d9
Add Everness sandstone compressor recipes (#634) 2024-03-25 19:45:57 +01:00
Gábriel
f47da0c045
Add grinding for pyrite from Everness mod (#633)
Add recipe for grinding pyrite lump from everness mod into pyrite dust if everness mod is present (also includes images for pyrite dust).
2024-03-08 18:44:13 +01:00
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
410e341da5 HV Reactor: Improve formspec layout 2024-01-09 21:51:08 +01:00
SmallJoker
49d4105a2b Quarry: revert startpos+1 air-like node check
Quarries are also deployed in entirely solid underground, where
it is expected that the quarry produces a new shaft from scratch.
2023-10-01 10:47:59 +02:00
SmallJoker
fda8a3d042 Quarry: Allow digging in different airlike environments
This offloads the digging check to a separate function for better code separation.
2023-09-23 13:25:11 +02:00
SmallJoker
21e044478e Fix battery box charging issues caused by out of sync functions
This code should be merged in the future to avoid such issues.
2022-11-26 23:25:33 +01:00
SmallJoker
521c0b74bb Fix battery box charging on Windows 2022-11-24 21:49:20 +01:00
sfence
66e20a9231
Add register_cable_tier API function (#612) 2022-11-04 19:23:44 +01:00
SmallJoker
705961e2fe Supply converter: Charge batteries again 2022-11-01 20:27:26 +01:00
SmallJoker
6a9dfec36f
Batteries: Workaround to fix discharge (#609)
The network traversal code does still not handle connecting sides,
but at least finite power is no more.
2022-10-29 21:36:48 +02:00
OgelGames
f61bb82bd1 add recipes to grind all sand types into stone dust
idea from https://github.com/minetest-mods/technic/issues/573
2022-10-25 18:08:28 +02:00
SmallJoker
4775d98fb7 Unify and simplify LED/Lamp node definition 2022-10-20 20:08:56 +02:00
Bryce w
d623715d94 Add LV led and lamp 2022-10-20 18:28:45 +02:00
ZettaScript
718a5beda1
Supply converter: demany only the needed power (#577)
Supply converter demands only the needed power to satisfy the demand on the output network. It can still be too much if the output network has other power sources, because supply is not taken in account.

This surplus of energy can be used to charge batteries.
2022-10-20 17:56:10 +02:00
SmallJoker
f9b0906a82 Switching station: Begin optimizations 2022-06-08 21:57:46 +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
sfence
0211c582e9
Add charge set/get callbacks (#600)
For the easier making of multi mod chargeable tools.
2022-06-06 18:53:50 +02:00
sfence
140701c99e
Add technic_on_disable callback (#592)
This adds a new callback to trigger when the machine is no longer powered by the technic power grid. Also allows mods to override the infotext if needed.
2021-09-10 20:42:27 +02:00
sfence
1c219487d3
Add support for craftguide mod recipe registration (#584) 2021-04-14 16:20:20 +02:00
auouymous
0f7810e538
Public/private mode for self-contained injector (#567)
Fixes #537.
2021-02-06 12:41:09 +01:00
Cedric Haase
11e43ffe13
nuclear_reactor: Add error messages on start failure (#574) 2021-01-06 18:12:51 +01:00
auouymous
a5b36b041e
Prevent protection check on MV machine close (#569) 2020-09-12 10:27:31 +02:00
auouymous
03bb4dab46
Protect self-contained injector formspec buttons (#568)
Fixes #536.
2020-09-11 19:15:51 +02:00
auouymous
d7336670f2
Constructor: Add protection check (#564)
Check if the player who placed constructor can access protected positions before placing or removing nodes.
2020-09-09 18:44:12 +02:00
David Leal
11f2b4f4b3
Fix warning reported by LuaCheck (#563) 2020-09-05 18:54:37 +02:00
David Leal
6154a04c00
Remove node_ownership support, cleanup (#560) 2020-06-24 21:14:04 +02:00
KaylebJay
438c0877f6
Add external machine registration support (#557)
New 'technic.register_base_machine' definition table value: 'modname' (defaults to current run mod)
2020-06-24 21:12:25 +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
Vanessa Dannenberg
befe3ecc86 Fix incorrect numeric types for 5.3.0-dev
5.3.0-dev adds strict type checks for registration fields, hence this was not noticed earlier due to implicit string-number conversions
2020-05-27 18:32:57 +02:00
BobFred7
df7f2e464a
Alloy furnace: More realistic recipe balance (#549) 2020-05-13 19:13:33 +02:00
coil
0e10e8360d
Fix crash when placing cable plates (#534)
All coordinates can be equal if pointed_thing.above is identical
to pointed_thing.under.
2020-03-15 17:27:36 +01:00
Serhiy Zahoriya
1a45ad19d4 Alloy furnace: Accept only unique ItemStacks from tubes (#523)
Co-authored-by: Luke aka SwissalpS <Luke@SwissalpS.ws>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2020-01-11 22:06:24 +01:00
fgrosswig
e90b28895c battery_box.lua: Make "srcstack" local (#525)
Fixes warning:
Assignment to undeclared global "srcstack" inside a function at battery_box.lua:454
2020-01-06 21:50:15 +01:00
Luke aka SwissalpS
76a39e71b9 Cleanup duplicate call (#522)
No need to call get_inventory twice
2019-12-25 22:23:34 +01:00
coil
08b660ba99 Add recipe to extract violet dye from blueberries (#518) 2019-12-14 10:20:32 +01:00
David Leal
d5df30c3ff Replace deprecated functions with newer ones (#510)
Use mod.conf
2019-09-14 12:55:41 +02:00
coil
d119a67482 Refactor switching station ABMs (#508)
When the function is defined inside the ABM, a new closure is allocated every time the ABM runs. 
Since the action function is already way too long, it's better for readability and performance to split it out.
2019-08-26 19:45:11 +02:00
coil
bb05ff8fd2 Reject constructor in constructor slot inventories (#505) 2019-07-21 12:40:57 +02:00
Parasitoid
e8f1033d49 Add alloy ice + bucket = water bucket (#470) 2019-06-01 12:33:31 +02:00
Lejo
b81d1d3f2d Check protection of the forcefield and Quarry (#468) 2019-04-13 20:45:49 +02:00
Thomas Rudin
c14521cbd2 Quarry: Fix server freeze when max depth is reduced (#487)
Endless loop if max-depth is changed but some quarries are below that new limit
The old comparison (~=) did not account for that
2019-03-02 11:14:05 +01:00