Commit Graph

30 Commits

Author SHA1 Message Date
Vanessa Dannenberg
44cb8df048 use basic_materials mod where possible. 2018-11-11 09:54:20 +01:00
NathanSalapat
584cd82b58 Add support for new trees in minetest game 2016-03-20 13:30:18 -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
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
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
Novatux
dd30838245 Add more nodes to chainsaw 2014-11-30 08:28:57 +01: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
Zefram
5e4a87b925 Rework some recipes to use more varied ingredients 2014-07-09 09:17:44 +02:00
ShadowNinja
51c02e9c8a Fix the chainsaw's protection check 2014-06-26 16:53:38 -04:00
ShadowNinja
9019ebe496 Clean up and improve chainsaw 2014-06-26 11:13:30 -04:00
Phvli
c636582707 Make sure chainsaw drops appear above ground
A fix for https://github.com/minetest-technic/technic/issues/137
Chainsaw drops are forced to pop above ground. Also, as asl suggested,
they must not end up too high on a ledge or a pillar.

This also cleans up the code style of chainsaw.lua.
2014-06-23 18:36:43 -04:00
Novatux
9181666cdc Chainsaw should dig jungle leaves too. 2014-06-08 09:46:44 +02:00
Zefram
00d7c9bdea Refill behaviour for power tools and cans
Supply the on_refill hook for power tools and cans, to perform appropriate
charging.  This is to be used by unified_inventory's creative-mode
refill slot.
2014-04-30 10:49:54 +01:00
Zefram
99fd5dfee5 Genericise handling of multiple meanings of wear
The tool workshop is meant to repair mechanical damage to tools, so
is at risk of `repairing' tools that use the wear bar to represent
something other than mechanical wear.  It had special-case recognition
of the water and lava cans, which use the wear bar to represent how much
content they're carrying, and wouldn't repair them.  But it didn't avoid
`repairing' RE chargeable items, which use the wear bar to represent
how much energy they have stored.  It would modify the wear bar without
actually affecting the charge, so the wear bar would jump back to the
correct place when the next charging or discharging event occurred.

To genericise, introduce a new item property, "wear_represents", which
indicates how the wear bar is used for this item.  Currently defined
values are "mechanical_wear" (straightforward damage to tools that
start out perfect), "technic_RE_charge" (electrical energy, canonically
represented in the meta rather than the wear bar), and "content_level"
(how full a container is).  For backcompat, nil is interpreted as
"mechanical_wear".  The tool workshop will only repair "mechanical_wear"
tools.  As a bonus, set_RE_wear() will only set the wear bar for
"technic_RE_charge" items: this means developers will notice if they
forget to declare wear_represents, but also means that with no further
changes it's possible to have an RE chargeable item that uses its wear
bar to represent something else.
2014-04-30 00:21:55 +01:00
asl97
628a18977b Add fir leaves to the chainsaw's timber_nodenames 2014-04-22 16:34:14 -04:00
ShadowNinja
bab8517b2a Add protection support to tools
This adds support to the chainsaw, mining drill, mining laser,
sonic screwdriver, and tree tap.
2013-12-17 14:22:10 -05:00
ShadowNinja
5cf765b2f1 Localize most variables 2013-12-17 13:56:37 -05:00
Vanessa Ezekowitz
9bc99a5d04 fix chainsaw not working 2013-11-06 23:08:28 -05:00
ShadowNinja
be2f30a1a2 Add support for translations via intllib 2013-10-30 13:48:39 -04:00
Vanessa Ezekowitz
4a35d5dd98 fix typo 2013-10-26 07:14:35 -04:00
RealBadAngel
2a54e00677 fix typo 2013-10-25 19:45:06 +02:00
ShadowNinja
eac4844175 Fix negative tool discharging and a few other tweaks...
Disable the flashlight by default.
Use itemstack:{get,set}_{metadata,name,wear,...} rather than {to,from}_table.
Improve the style of part of the code of mischelaneous tools
2013-10-18 22:28:32 -04:00
ShadowNinja
ee0765804c Partial rewrite 2013-09-17 16:37:56 -04:00
RealBadAngel
3bc6cad671 Remove lv, mv, and hv tiers from power tools.
Theyre already tiered with Mk1-3 (at least drill is, more in the future).
Tools can be considered as designed for different tiers of circuits thx to their power needs.
For example Mk3 will require ages to load in LV batbox.
Batboxes load tools timining: LV standard (1000EU), MV 4x faster (4000EU), HV 16x faster (16000EU)
Also since 1EU is the same in any circuit it is possible to move energy from one to another with portable devices like crystals.

Other changes:
- moved charge/discharge functions to battery_boxes_commons.lua
- added UI style backgrounds for all the batboxes
2013-07-17 19:14:01 +02:00
ShadowNinja
5d470cd753 Move files to subfolders 2013-07-11 12:31:00 -04:00