Commit Graph

665 Commits

Author SHA1 Message Date
Adrian 904800abde Add river water can (#527) 2020-01-26 14:29:44 +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
coil da95be53ec Fix radiation protection when armor group is not set (#509)
The radiation damage group can be not set when armor completely
protects against radiation or when no mod has set a default value
for the damage group. We want to apply radiation damage in the
second case but not in the first.
2019-12-30 21:02:01 +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
_TarkFrench c41f6509cf French translation: fix some errors and ortho (#513) 2019-10-26 19:34:17 +02: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
d-stephane 768fbecc64 Add french translation (#417) 2019-08-26 19:53:24 +02:00
Sires 707fa5a97c Fix typos 2019-08-26 19:52:41 +02:00
Sires e12220be79 Add translation for technic mod 2019-08-26 19:52: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
coil dc4f4f66e6 Apply radiation damage only if entity is not dead (#504)
This prevents on_dieplayer being called unnecessarily, causing problems such as repeated death messages.
2019-07-10 20:27:01 +02:00
Hugo Locurcio 62fdb853ec Optimize PNG images losslessly (#501)
This incorporates non-interlaced PNGs from #500 to fix warnings thrown by libpng.
2019-06-20 18:35:26 +02:00
Parasitoid e8f1033d49 Add alloy ice + bucket = water bucket (#470) 2019-06-01 12:33:31 +02:00
mat9117 a9b10cc4b1 Fix Polish translation (#497) 2019-04-14 11:43:30 +02:00
Lejo b81d1d3f2d Check protection of the forcefield and Quarry (#468) 2019-04-13 20:45:49 +02:00
mat9117 c9ba4b329d Add Polish translation (#493) 2019-03-31 13:00:48 +02:00
upsala 700faca5cb Add moretrees poplar to chainsaw (#489) 2019-03-10 11:40:52 +01: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
Christopher Head 4f78a69ffc Fix trailing whitespace (#482)
Trim all trailing whitespace characters,
2019-01-26 14:15:40 +01:00
Christopher Head 5f6b87d43a Fix spelling errors (#481) 2019-01-26 14:15:07 +01:00
Christopher Head 6e58a8e939 Make power meter work on LV battery box (#483) 2019-01-26 14:14:45 +01:00
Vanessa Dannenberg 8ebc1de29c make sure MV turbines only turn on in response to *flowing* water 2018-12-17 08:03:18 +01:00
upsala e1a71a8fb0 Add MV-Freezer (#457)
New Grinder-recipe: ice => snowblock
New recipe for freezer: Freezer now generates ice
2018-12-09 17:37:58 +01:00
Thomas Rudin 701240bc3a Quarry: Check for valid facedir to fix server freeze #465 (#466)
Checks if facedir is valid. If the face points up or down the depth-check would run endless and freeze the server
2018-12-09 16:01:10 +01:00
Lejo aa82fa1d13 Forcefield: Remove deprecated update_map() call (#467) 2018-12-09 15:57:48 +01:00
Vanessa Dannenberg bdd13beeff fix brass block->ingot recipe
(clearing basic_materials' copper/silver recipe killed this one also)
2018-11-27 21:24:52 +01:00
Vanessa Dannenberg dc0689018d move CNC machine into its own mod 2018-11-25 16:10:23 +01:00
12Me21 8409be32fc Fix cable plate placement (#446)
Cable plate placement now uses minetest.item_place
2018-11-23 20:25:32 +01:00
Thomas Rudin 3d52b679b0 Quarry: Make use of fake digger from pipeworks (#453)
Fixes crash when digging empty protected chests (https://github.com/minetest/minetest_game/blob/backport-0.4/mods/default/nodes.lua#L1868)
2018-11-16 21:36:03 +01:00
Vanessa Dannenberg 44cb8df048 use basic_materials mod where possible. 2018-11-11 09:54:20 +01:00
Tim e931041358 Fix clear_craft crash due to dependency order via soft-dependency on dye (#449)
Fixes Fix #448
2018-10-23 18:42:52 +02:00
DS 5b97d94dae New sandstone crafts, fix dye crafting (#390) 2018-10-05 19:46:33 +02:00
Elias Åström 488f80d950 Clean file frames.lua to make more readable
- "#(array)" replaced with "#array"
- "(a and b) or c" replaced with "a and b or c"
- Cleaned some other places with unnecessary parenthesis
- "a,b" replaced with "a, b"
- "a+b" replaced with "a + b" (and for all other binops)
- "{a, b, c}" replaced with "{ a, b, c }"
- "-n + a" replaced with "a - n"
- Removed trailing whitespace
- Blank lines added in some very dense places
- Very long lines broken into shorter lines
- Use modern functions like vector.new and vector.round
- Align with spaces instead of tabs
2018-08-25 12:24:58 +02:00
Elias Åström d74c250a40 Preserve active timers at frame move
Previously timers were not copied over to the new nodes when frames
move.  This lead to blinky plants from mesecons to stop working after a
platform has moved, and buttons getting stuck in their pressed state.

Now the timers state for active timers are copied from the old node
positions to the new node positions.
2018-08-25 12:24:58 +02:00
Tanmaya Meher 2e7859c35e New MV Hydro Machine (#412)
* New MV hydro with upgraded power

The LV hydro is easy to make giving lot of power. The New hydro MV will put a tier system to it; thereby giving more incentive to player to pursue MV hydro plus a little survival aspect. This is a result of [Detailed discussion which is here](https://github.com/minetest-mods/technic/issues/411). Thanks to VanessaE for a good talk and support and enthusiasm to make one :) This will now produce around 175 EU (in between 150-200, so basically average). The MV hydro will give 10x more power than this one. :)
2018-08-25 12:24:14 +02: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
SmallJoker fb93388f06 Replace deprecated invsize[] with size[] 2018-07-19 14:36:21 +02:00
HybridDog 41f175986d Show EU power values more readable (#424)
Add the EU_string helper function
In comparison to pretty_num it uses SI prefixes, adds "EU" (e.g. kEU) and rounds the number for readability
Add a constant_digit_count boolean setting
2018-07-16 17:26:39 +02:00
Thomas--S 0fcc7a14c2 Replace old nodeupdate() with new minetest.check_for_falling() (#391) 2018-07-16 17:25:43 +02:00
thetaepsilon-gamedev c93bfefd9f machines/HV/quarry.lua: [modification] provide a basic digger object to can_dig callbacks to prevent nil object errors (#425)
Minetest game's doors mod was known to cause server errors when passed a nil digger in it's can_dig callback,
due to always attempting to invoke digger:get_player_name().
Fix this by providing a basic fake player which provides this method to can_dig callbacks.
(It should be noted that currently this fix causes doors to be undiggable by quarries.)
2018-05-19 22:06:00 +02:00
Vitaliy 689766f15a Remove unused values (#407) 2018-02-17 11:00:15 -08:00
Jordan Irwin a5db87f0f1 Test local variable 'have_ui' before calling 'unified_inventory' (#368) 2018-02-16 17:32:47 -08:00
number Zero 86fb981b44 Fix O(n^2) network traversal 2018-02-13 18:25:44 +01:00
Ekdohibs 215de5487b Fix redundant_warn 2018-01-13 10:30:22 +01:00
DS 37d49142cf supply_converter: avoid crashes caused by wrong digiline message types (#397) 2017-10-31 13:56:10 -04:00
DS e056800cea nuclear_reactor: do not set structure_accumulated_badness to less than 0 2017-09-07 07:43:20 +02:00
Vanessa Ezekowitz a84b5f3b28 print warning to console if redundant switching station is found
and where it is

only prints the warning once per redundant station, per minetest
session. if there are multiple redundant stations on a network, digging
one should cause the warning to appear for the next one technic finds,
if it doesn't show them all right away.
2017-07-03 18:05:52 -04:00
Vanessa Ezekowitz 9d5bd90b57 add chat command to allow disabling of switching station ABM
(for situations where a user creates a laggy machine on a public server, use
this to suspend power distribution until the machine is found and disabled)

`/powerctrl off` to disable
`/powerctrl on` to reenable

(actually, anything but "on" disables it)
2017-07-03 17:35:19 -04:00
Vanessa Ezekowitz db480011fb only try to clear/redefine recipes for teleport and accel tube
if they are enabled in pipeworks' config
2017-06-13 00:17:52 -04:00
Jordan Irwin 4cc124ff9e Replace deprecated call to 'minetest.env' (#371) 2017-06-08 03:30:41 -04:00
DS bf58c77316 digilinize nuclear_reactor (#341)
* start digilinizing

* add self 💥 destruction and co.

* add start button and command

* fix some things

* add possibility to disable nuclear reactor in formspec

* oops

* some style

* improve connectivity

* add protection
2017-06-05 11:02:05 -04:00
DS 1a75cd9254 add sulfur-lead crafting recipe(s) for battery (#353) 2017-06-05 10:56:51 -04:00
DS 51f9df2cf2 make some forcefield improvements (#344)
* mkae some forcefield improvements

* add emitter on_blast
2017-06-05 10:56:03 -04:00
you 987cc5a6a4 Add api documentation (#361) 2017-06-05 10:51:59 -04:00
numberZero 83a4bb60ca Fix flowing corium textures (#364) 2017-06-05 10:51:24 -04:00
Jordan Irwin 97e1c8b7f2 Replace deprecated method 'setting_getbool' with 'settings:get_bool' (#369) 2017-06-05 10:50:30 -04:00
DS 9cc1a78371 advanced cable plate placing (#357)
* advanced cable plate placing

* make also sneak possible

* add screwdriver support
2017-06-05 10:50:15 -04:00
Vanessa Ezekowitz 557dc4db1b Battery boxes no longer connect to tubes from bottom
(since a power cable needs to go there)

items destined for "discharge" still come from the top, but items bound for the
"charge" slot must come in from the left, right or back
2017-04-14 05:16:14 -04:00
Vanessa Ezekowitz e65c8b7130 Don't allow constructor to operate if bad facedir (fixes #328)
Also, use "simple" screwdriver mode for "off" constructor, and disable screwdriver for "on" one.
2017-04-13 20:48:18 -04:00
Vanessa Ezekowitz 69feeef0af use clear_craft to remove default sandstone recipe
get rid of the two grinder recipes from homedecor/fake_fire (obsolete)
2017-04-13 20:27:19 -04:00
Thomas--S fc2f6d8976 Generalize check for cable below battery box 2017-04-13 22:36:52 +02:00
Vanessa Ezekowitz 06abe11dd0 check for cable plate under battery also 2017-04-13 16:25:42 -04:00
Vanessa Ezekowitz 1d20af1bcb replace HV nuke reactor nodeboxes with comparable mesh model
model includes a flat extension on one "side" to fix #342

rotate the reactor with the screwdriver with shift-right-click before filling, to
line up the flat side with your cabling.  Note that the reactor doesn't actually
care which side the cable comes from.
2017-04-12 22:22:29 -04:00
Vanessa Ezekowitz 7c11ff1876 LV fuel-fired gen should not have tube connection overlays 2017-04-12 21:04:37 -04:00
Vanessa Ezekowitz a34ea59105 LV batbox should show charge on all X/Z sides
(also, fixup some other texture defs for readability)
2017-04-12 20:29:22 -04:00
Vanessa Ezekowitz 33455328bd Make batteries only charge/discharge from the bottom
(they were already supposed to but would leech charge from sideways neighbors too)
2017-04-12 20:21:20 -04:00
Vanessa Ezekowitz 14e0c4c48c revise cable connection overlay (make copper part look smaller) 2017-04-12 18:57:56 -04:00
Vanessa Ezekowitz 170d3e09c5 clean-up battery box images, make more consistent
added tube or cable entry overlays as appropriate.
deleted a couple of obsolete textures
2017-04-12 18:50:50 -04:00
DS 970f608078 use clear_craft (#339)
* use clear_craft

* fix it

* Update grinder_recipes.lua
2017-04-12 15:14:35 -04:00
Thomas--S 39bfb76cfb Take Item from Cable Plate Stack on Place (#345)
(when not in Creative)
and
Change drop to recipe.
2017-04-12 15:13:39 -04:00
Vanessa Ezekowitz fab2c492c4 pipeworks has button on/off, button label, and button "base" cached
used them wherever possible
2017-04-11 19:19:29 -04:00
Vanessa Ezekowitz 54004f4951 redo top/bottom textures for supply converter
delete back/bottom texture for power monitor
use "machine bottom" for bottom of force field generator
add cable connection overlay, use it on various machines' bottoms/sides, as appropriate
2017-04-11 08:48:16 -04:00
Vanessa Ezekowitz 8479a8c984 add pipeworks tube overlays to self-contained injector
also, gave it paramtype2 = "facedir" and removed the front connection
for consistency with other machines
2017-04-11 08:17:56 -04:00
Vanessa Ezekowitz 0e9caf069d add pipeworks tube overlay to top of quarry
(and get rid of obsolete inventorycube() image)
2017-04-11 08:09:53 -04:00
Vanessa Ezekowitz 869d0597ef add pipeworks tube entry overlay to tool workshop 2017-04-11 07:57:45 -04:00
Vanessa Ezekowitz ca86550f26 added tube entry overlays to most MV machines 2017-04-11 07:54:00 -04:00
Vanessa Ezekowitz a3a959ab5e add pipeworks tube overlays to MV, HV battery boxes 2017-04-11 07:48:46 -04:00
Vanessa Ezekowitz 3f8478086d fix crash in battery mod (missing meta check) 2017-04-11 07:45:31 -04:00
Vanessa Ezekowitz 092ab7e738 added tube entry overlays to fuel-fired generators 2017-04-11 07:37:18 -04:00
Vanessa Ezekowitz bdd45f161a fix broken ltier checks on MV/HV fuel-fired generators 2017-04-11 06:56:21 -04:00
Vanessa Ezekowitz 5d05f59482 allow per-node stack splitting on all other standard machines
(default off)
2017-04-11 06:26:11 -04:00
Vanessa Ezekowitz a353a807bd allow per-injector stack split
(default off)
2017-04-11 05:36:39 -04:00
Vanessa Ezekowitz db0f8e04a1 fix wrong size of self-contained injector inv 2017-04-11 05:31:36 -04:00
Vanessa Ezekowitz 64f38f423e tool workshop shouldn't ever allow stack splitting
(tools don't stack :) )
2017-04-11 05:25:25 -04:00
Vanessa Ezekowitz ceead2b5ab re-route tubes if active fuel-fired gen is dug (and can be) 2017-04-11 05:15:05 -04:00
Vanessa Ezekowitz 4eaf48290f allow per-generator stack splitting
(default off)
2017-04-11 05:13:27 -04:00
Vanessa Ezekowitz 7244f86ee5 allow per-battery charge/discharge stack splitting
(default off for both)
2017-04-11 04:41:11 -04:00
Vanessa Ezekowitz af39221df9 only reject part of itemtack from chest/machine/etc., if possible
(e.g. if there's room for 50 of some item, and you send a stack of 99,
50 are added to the chest and a stack of 49 is rejected and sent
on to the next destination)
2017-04-09 20:35:11 -04:00
Vanessa Ezekowitz 72c536c04e always set the EU level
don't wait for production = 0.

(if water is removed, that causes phantom output)
2017-04-09 14:07:50 -04:00
DS-Minetest ef8bb38bfd Make forcefield controlable with digilines. 2017-04-04 23:58:02 -03:00
DS-Minetest 6c4e90d39c Add digiline support to supply converter. 2017-04-04 23:52:27 -03:00
DS-Minetest 4dda59da0c Add conductive plates.
These work exactly like cables, but are meant to be
used as floor for when the machine does not fill the
while cube.
2017-04-04 21:59:13 -03:00
DS-Minetest 338f3b6a99 Make battery box send information via digilines. 2017-04-01 16:47:34 -03:00
Vanessa Ezekowitz 78f16c3e8e label all ABMs for profiler 2017-03-31 19:15:25 -04:00
DS-Minetest 6abd857b3f Add digiline support to switching station.
Makes the switching station able to send supply and demand
via digilines.
2017-03-28 09:30:59 -03:00