1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-11-14 14:00:19 +01:00
Commit Graph

92 Commits

Author SHA1 Message Date
sfan5
79e63a8496
Check for required engine features on startup 2021-04-27 11:50:32 +02:00
Paramat
7caa5d36f2
Move hotbar code/textures, and damage sound, from player_api to default
These are unrelated to the Player API and player object.
All other GUI/HUD code and textures are in default.
All other engine hardcoded sounds are in default.
The player_api mod is highly likely to be used unchanged in new games,
so logical grouping of content will help the creation of new games.
2019-10-18 02:43:06 +01:00
luk3yx
ef7df329d2 Fix duplicate background in formspec prepend (#2524) 2019-10-14 22:53:57 +02:00
SmallJoker
1c413ede9a Use background9 for backwards compatibility 2019-10-05 17:55:42 +02:00
Yves Quemener
bb9279ccb8 Add support for MT 5 game translation (rebasing ) (#2466)
rebased #2368
2019-09-10 19:09:51 +02:00
rubenwardy
a6a719967a Use 9-slice background in formspec theme 2019-06-24 00:10:13 +01:00
Paramat
8af8dc49a0
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
d4b0b73ae0
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
b0e55c52c8
Add formspec theming, remove sfinv's dependency on default 2018-03-28 18:28:26 +01:00
rubenwardy
5d19fd6923 Separate player code into new mod 2017-08-01 03:57:29 +01:00
Auke Kok
0bd2efcfc1 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
bcb4426ec7 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
5e9e3f7e84 Default: Eliminate redundant 'get modpath' calls 2016-08-29 00:31:18 +01:00
Auke Kok
e0cb3fce02 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
7361eb5e05 Add the listring functionality c977fbd928 2015-06-23 19:17:57 +02:00
Craig Davison
a9137e8c21 Fix typo in survival formspec & create legacy file 2015-02-12 22:18:22 +01:00
PilzAdam
c654c9fd11 Remove weird constants in default 2015-01-10 15:47:30 +01:00
PilzAdam
5a06de184c 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
49ad1c1bf7 Make gui part of default 2014-07-05 16:06:16 +02:00
BlockMen
13dfc2c0e9 More new Textures, Clean up a bit 2014-07-05 16:03:06 +02:00
BlockMen
4602bd5999 Remove legacy, move aliases to default 2014-07-05 16:02:01 +02:00
BlockMen
104018d711 Add fancy inventories 2014-07-05 15:57:35 +02:00
BlockMen
9fdbc1f407 Fix tree growing and jungle sapling growth rate 2013-11-07 00:13:51 +01:00
PilzAdam
ea6d504b01 Split init.lua into several files 2013-05-19 18:43:04 +02:00
PilzAdam
fcf0816fa8 Move all common mods back to minetest_game 2013-05-18 16:05:16 +02:00
PilzAdam
d6ec56811b Use common mods 2013-03-21 18:44:36 +01:00
PilzAdam
b4e9ef269b Make grass buildable_to 2013-03-20 16:22:59 +01:00
hdastwb
648a11263b Use replacements in furnace and replace lava bucket with empty bucket when used as fuel 2013-03-19 19:30:06 +01:00
PilzAdam
467e2029e2 Add stonebricks 2013-03-19 17:42:26 +01:00
PilzAdam
3a617bcb6e Add papyrus and cactus growing 2013-03-19 01:01:22 +01:00
PilzAdam
d5c373e290 Make it possible to override the default.cool_lava_* functions 2013-03-19 00:04:17 +01:00
PilzAdam
4c5cb106c3 Dont allow to place not-fuel items in the fuel field in the furnace and dont allow to place any item in the dst field 2013-03-18 23:47:39 +01:00
PilzAdam
9ff8f8038e Add grass 2013-03-18 22:27:15 +01:00
PilzAdam
a4426e4bd4 Make lava not renewable 2013-03-17 18:52:11 +01:00
jojoa1997
e82c122822 Add obsidian 2013-03-17 17:31:51 +01:00
PilzAdam
e43573b46b Use animation for new_style_water 2013-03-17 16:51:36 +01:00
PilzAdam
4b9914fdcb Add jungleleaves, junglewood and junglesapling 2013-03-16 21:55:29 +01:00
PilzAdam
0d924e7e4d Add lavacooling 2013-03-09 21:55:01 +01:00
jojoa1997
90aaa1fb62 Fixe digging times of axes 2013-03-03 11:15:05 +01:00
HybridDog
e1d17b1747 Update mods/default/init.lua
how did this line get there?
2013-02-08 15:03:14 +01:00
Jat
2817db19d4 Fix duplicate in default 2013-02-06 02:43:48 +01:00
PilzAdam
d5cc51a396 Update minetest.show_formspec() 2013-01-07 20:42:31 +01:00
PilzAdam
a0ba7cf973 Show the contents of the locked chest only to the owner 2013-01-04 21:25:37 +01:00
PilzAdam
0beabfc755 Fix a glitch where the player gets liquids in his inventory when the server lags 2013-01-04 16:47:29 +01:00
PilzAdam
33ec25caed Convert old mese to the new mese block and generate it deep underground 2012-12-28 20:05:40 +01:00
Vanessa Ezekowitz
1bf62bbad4 Changed Mese to act like an object cut out of a block of stone, rather than an
object found *among* the stone.

That is, mese should behave such that you get something potentially useful out
of the aggregate block you just broke, rather than just collecting the whole
block when mined.

Mese crystals in stone give a single Mese Crystal when mines. Craft three of
those + 2 sticks for Mese Pickaxe, or 9 for a Mese block. Craft one Mese
Crystal by itself to get 9 Mese Crystal fragments, which all mods should use
when a full Mese Crystal is too much.

This includes new textures for the above objects, tweaks to the sounds used for
them, and naming tweaks for the textures used for default mese in stone, so
that old texture packs don't use the "wrong" image.

This represents my best effort to match C55's suggestions.
2012-12-18 17:56:23 +01:00
Calinou
73d078fd27 Damage tweaks 2012-12-15 18:05:14 +01:00
DannyDark
4763fa635a Fix glass step sound 2012-12-10 18:43:12 +01:00
PilzAdam
3928eccf74 Use the group attached_nodes 2012-12-01 14:39:23 +01:00
MirceaKitsune
0057a87b99 Add script to turn players into meshes, ticks every 1 second
Trigger the player.lua file in init.lua

Commit the ugly and temporary test model and texture. We'll get to a real animated player mesh once the code for that is ready

Set visual_size accordingly so the player model doesn't stretch vertically (default of the sprite player)

Attempt to use the b3d model format, although it doesn't seem to work so far
2012-11-25 21:02:00 +02:00