22 Commits

Author SHA1 Message Date
SmallJoker
09ed906838 Use background9 for backwards compatibility 2019-10-05 17:55:42 +02:00
Yves Quemener
abefcac109 Add support for MT 5 game translation (rebasing ) (#2466)
rebased #2368
2019-09-10 19:09:51 +02:00
rubenwardy
46ff4d570b Use 9-slice background in formspec theme 2019-06-24 00:10:13 +01:00
Paramat
03fdb21b66 Remove uses of default.gui_bg/bg_img/slots
Keep their definitions, to not break mods, but move them to legacy.lua.
2019-01-03 01:57:13 +00:00
Paramat
035bb07816 Move chests to a new file. Update credits for chests and torches
Move chests code out of nodes.lua and into a new file.
Credit torch code, and chest and torch models in README.txt.
Remove 'torches' mod text from torch.lua.
Minor cleanups in README.txt.
2018-07-10 23:02:22 +01:00
Andrew Ward
92471711dc Add formspec theming, remove sfinv's dependency on default 2018-03-28 18:28:26 +01:00
rubenwardy
94eb5b1c57 Separate player code into new mod 2017-08-01 03:57:29 +01:00
Auke Kok
9b40b280f3 Merge 'torches' mod as default:torch.
This merges the current state of the well-maintained and tested
`torches` mod as I've maintained it for the last 6 months.

This started out as a thorough cleanup of 3D torches by blockmen,
where some of the initial code still remains.

The models were redone entirely from scratch and have been extensively
tested with dozens of animated textures converted with mcimport,
and look a lot better than the original 3D Torches mod.

The ceiling torch is retained and functional. The `wieldlight`
addition that the torches mod has was removed, since it relies
on wieldview to look decent. This can stay external mod code.

I've opted to move the torch nodes to a separate file. It's not
a lot of code but nodes.lua is already huge, and I wanted to
retain the copyright header and some of the readme.txt notes,
and this was the easiest way of doing it.

This code passes "default:torch" to nodes with on_rightclick,
fixing problems with itemframes. Essentially it has a more
elaborate item_place() routine to make sure we're not passing
the wall torch to nodes that may display it.

The ceiling torch is a separate model and not the same as the
floor model. That does mean that there are 3 models in this
mod.
2016-11-23 15:29:53 -08:00
Fernando Carmona Varo
00b72c4a0e Default: Destroy flammable items when in fire or lava
The check for igniters (fire/lava) will be performed every 10 secs
if the item is flammable.

if the item is found to be in lava it will then burn up and
disappear in a smoke puff.

If a non-lava igniter node is found, a combination of `flammable`
value of the item and `igniter` group value of the node will be used
to determine the chance for the item to be removed.
2016-10-23 03:48:37 +01:00
Pinky Snow
ed4c728c4e Default: Eliminate redundant 'get modpath' calls 2016-08-29 00:31:18 +01:00
Auke Kok
ff6652a628 Default: Convert saplings to use node timers
Each sapling is given a single node timer that is between
2 and 4 days of game play time (40-80 minutes). If you walk out
of the zone, and come back later, the tree will always grow
to full if the timer has elapsed.

Because trees.lua is all functions, it needs to be parsed before
nodes.lua, since that references some of its functions. Hence,
change the order of parsing here. Otherwise saplings would not
grow to full.
2016-05-25 03:27:08 +01:00
Amaz
12fc7bbb10 Add the listring functionality c977fbd928 2015-06-23 19:17:57 +02:00
Craig Davison
08151fcbaa Fix typo in survival formspec & create legacy file 2015-02-12 22:18:22 +01:00
PilzAdam
82196b43e3 Remove weird constants in default 2015-01-10 15:47:30 +01:00
PilzAdam
b1a7829a17 Rewrite furnace
* Move furnace related code into furnace.lua
* Move duplicated code into functions
* Rewrite ABM:
	* Easier to follow strcuture (no returns in the middle)
	* No unnecessary calls to get_craft_result
	* Split logic and "visual feedback" (a bit)
	* Fewer calls to meta:set and meta:get
	* Better feedback on the current state of the furnace
2014-12-06 21:18:02 +01:00
BlockMen
f76b9d4f85 Make gui part of default 2014-07-05 16:06:16 +02:00
BlockMen
508bc82e17 More new Textures, Clean up a bit 2014-07-05 16:03:06 +02:00
BlockMen
0e437a902e Remove legacy, move aliases to default 2014-07-05 16:02:01 +02:00
BlockMen
238073ca21 Add fancy inventories 2014-07-05 15:57:35 +02:00
BlockMen
2239fd0a71 Fix tree growing and jungle sapling growth rate 2013-11-07 00:13:51 +01:00
PilzAdam
7bb8804365 Split init.lua into several files 2013-05-19 18:43:04 +02:00
PilzAdam
3ad0a627f2 Move all common mods back to minetest_game 2013-05-18 16:05:16 +02:00