Commit Graph

61 Commits

Author SHA1 Message Date
Pascal Abresch 751cb12ea0 add big stick 2019-12-19 20:08:54 +01:00
Pascal Abresch 67c8636a4f Applied constants to node definitions 2019-10-04 05:13:42 +02:00
Pascal Abresch 975c2d609c added guard for spaekdebug 2019-10-04 03:52:57 +02:00
Pascal Abresch 0958632969 added size fields to statbar hud elements (not doing so is deprecated) 2019-04-01 02:31:13 +02:00
Pascal Abresch 05e692a0d5 removed deprecated settings call from debug 2019-04-01 02:21:46 +02:00
Pascal Abresch 3fab0643de simplifies init.lua, adds lua/ subdir for mods 2019-03-25 01:36:19 +01:00
Pascal Abresch 7baca363de added /lua chat command 2018-09-28 15:18:48 +02:00
Valentin Anger c64b6cd83b Let the Land Clear tools replacement block be selectable 2018-09-21 13:20:24 +02:00
Valentin Anger a0257bfb22 Add a tool that clears regions of nodes 2018-09-21 03:00:38 +02:00
Pascal Abresch 463136bb89 Removed focus.lua since it doens't make much sense serverside 2018-09-20 23:19:55 +02:00
Valentin Anger c5ef06a4cd First version of the pitch and yaw calculation
Don't Store object into another table.
Continue with all players instead of returning after first hit.
2018-05-14 12:17:39 +02:00
Pascal Abresch 0cf9016c8c inital code for focus item 2018-05-12 22:58:56 +02:00
Valentin Anger 864add28bc Ignore invalid player hud entries 2018-05-12 17:56:31 +02:00
kamirama 7955540ae0 removed useless block 2018-01-07 13:54:33 +01:00
Valentin Anger 7b33564b3f Make solarpanels have a stand 2017-12-07 18:38:52 +01:00
Valentin Anger 1c342844e2 Remove unnessesary table print function, minetest has a nicer one 2017-12-07 18:35:10 +01:00
Valentin Anger ace37afacf Distribute energy according to node types 2017-08-30 14:42:26 +02:00
kamirama ad3c8fca41 modified blocks for new energy system 2017-08-20 17:07:58 +02:00
Valentin Anger 425749e178 Continue work on the network build code 2017-08-20 18:50:37 +02:00
kamirama b8cac10466 merged master 2017-08-20 01:50:23 +02:00
Valentin Anger 005f5eb12b Move hud into sparkcore and use sparktech dictionary as storage 2017-08-20 02:21:52 +02:00
kamirama 90239eb6b4 started energy rewrite as networks 2017-08-20 01:45:36 +02:00
kamirama b2cc2761ac removed useless file 2017-08-19 23:04:59 +02:00
Valentin Anger 834b3986c7 Merge branch 'api' 2017-08-20 00:11:42 +02:00
Valentin Anger 66cf5bbea8 Merge branch 'furnace' 2017-08-20 00:04:30 +02:00
Valentin Anger 0cb46c4302 Add a debug print function that supports table objects 2017-08-19 23:42:19 +02:00
kamirama 816eafe311 enabled digging of debug nodes with sparkwrench 2017-02-16 22:37:22 +01:00
kamirama 2e9fb862b2 removed inventory code from debugwrench 2017-02-16 22:36:54 +01:00
kamirama 98bd390629 Changed debug ouput and merged all init.lua scripts [relative symlink] 2017-02-16 00:59:22 +01:00
Valentin Anger f2a191b316 Update the new spark_dig_stlye_alt setting name for remaining tools 2017-01-13 21:00:23 +01:00
Valentin Anger 7ce288d0a7 Merge branch 'master' of gitlab.com:SyrupThinker/minetest-mod-sparktech 2017-01-13 20:23:00 +01:00
Valentin Anger 965aeaa868 Improve energy balancing and add a new hud
- Now a function that actually creates the
  relative average is used
- A new hud has been added to show the energy level
  of items hold in the players hand
2017-01-13 20:22:16 +01:00
kamirama 7d277f3f54 added option to disable console loggin 2017-01-12 00:36:38 +01:00
Valentin Anger 56412556e8 Improve the sparktool_dig_stlye_alt option code
- Predefine on_use instead of having two tool definitions per tool
- Add the tablet to the tools with this feature
- Readd the increased range to debugwrench
2017-01-04 17:45:08 +01:00
Valentin Anger 6cc3f16647 Improvements for 2b612c7d67
- Fix Last not working due to a early return
- Return the proper value as explained in
  16b541a0e1
2017-01-04 16:51:32 +01:00
Valentin Anger da244a69e9 Revert "Remove a false return in f_tablet that made Last unusable"
This reverts commit 16b541a0e1.
2017-01-04 16:45:31 +01:00
Valentin Anger f031389282 Merge branch 'energy-rewrite' 2017-01-04 16:44:55 +01:00
Valentin Anger 895d503270 Finish rewrite of the new energy system - Closes #14
Changes:
- A connection between two nodes get updated once per cycle
- Nodes have a type specified in sparktech_energy_conductor as follows
1 for a transfer node like cables
2 for a producer like solarpanels
3 for a storage like capacitors
4 for a consumer like electric furnaces
- Nodes of type 2 balance between each other and push to all other nodes
- Nodes of type 1 and 3 balance between each other
- Nodes of type 4 pull from all other nodes that are not of type 4
- When balancing, the relative charge of a node is concidered
2017-01-04 16:30:52 +01:00
Valentin Anger 16b541a0e1 Remove a false return in f_tablet that made Last unusable
Returning false in a register_on_player_receive_fields callback
activates the next registered callback.
We don't need to return false if there is a expected form incoming.
2017-01-04 13:56:28 +01:00
kamirama 2b612c7d67 usability improvements for tablet 2017-01-04 00:59:10 +01:00
Valentin Anger 12f876dee5 Fix tablet not being usable when pointing at nothing 2017-01-03 18:10:09 +01:00
Valentin Anger a2a2190947 Merge branch 'master' of gitlab.com:SyrupThinker/minetest-mod-sparktech 2017-01-03 18:04:11 +01:00
Valentin Anger 1ce3ed7801 Nodes in group sparktech_energy_storeonbreak keep energy after break 2017-01-03 17:48:45 +01:00
kamirama 65a656a760 changed tablet formspec 2017-01-03 16:41:03 +01:00
kamirama 7123645cba added optional alt dig style for sparktools 2017-01-03 16:29:18 +01:00
Valentin Anger 6b35f8ccf9 Like 1d402e3c66 for sparkdebug:tablet 2017-01-03 15:10:47 +01:00
Valentin Anger 1d402e3c66 Make sparkdebug:multimeter a tool and use on_place
The multimeter should appear in the tool tab and the usage
of sparktech tools should be consistent
2017-01-03 14:54:39 +01:00
Valentin Anger d0eb74d9e5 Check for nil in the code field of the tablet form - Closes #13
When fields.code in the f_tablet form is nil replace it with an empty
string to prevent a type error in set_metadata
2017-01-03 14:49:06 +01:00
Valentin Anger 2b10b2eb40 Rename instawrench to debugwrench
The name instawrench is redundant as the sparkcore:wrench removes nodes
at the same speed
2017-01-03 14:41:58 +01:00
Valentin Anger a4f648ce02 Use on_place for node removal with wrenches
Instead of mining a sparktech_techy node with a wrench
the wrench is "placed" to remove the node
2017-01-03 14:37:35 +01:00