131 Commits

Author SHA1 Message Date
Quentin Bazin
49d6d7c0e1 [WorldSaveBasicBackend] Now saving game time. 2020-07-17 19:58:45 +02:00
Quentin Bazin
30e3ae2054 [ChatCommandHandler] '/time <add|set>' command added.
[CelestialObject|Skybox] Moon changes its phase everyday.
2020-07-17 19:58:45 +02:00
Quentin Bazin
0f015ee75d [DebugInfoWidget] Added 'Ticks' and 'Game time'.
[GameTime] The day now starts at 6 AM.
2020-07-17 19:58:45 +02:00
Quentin Bazin
07f86b9e10 [GameTime] 'getCurrentTime' now uses the new tick system.
[DebugOverlay] Added client TPS info.
[Network] Packet 'ServerTick' added. Sent at the beginning of every tick.
2020-07-17 19:58:45 +02:00
Quentin Bazin
556941f553 [GameTime] Tick system added.
[ChatCommandHandler] Added '/tps' command to get ticks per second.
[ServerWorld] Fixed world generation speed.
2020-07-17 19:58:45 +02:00
Quentin Bazin
79e0794389 [Lua API] Screen size and gui scale are now available from ClientInfo. 2020-07-13 12:50:16 +02:00
Quentin Bazin
1485c15808 [Lua API] Added item definition property 'effective_on'. Fixed #143. 2020-07-13 06:54:05 +02:00
Quentin Bazin
6a68b1a430 [BlockState] 'drawOffset' attribute added. 2020-07-11 02:59:48 +02:00
Quentin Bazin
6bb0042adc [mods/default/tools.lua] Added to generate tools automatically. 2020-07-11 02:02:19 +02:00
Quentin Bazin
a24deef802 [blocks.lua] Redstone Lamp now works with states. [furnace.lua] Now emits light when on. 2020-07-11 00:58:45 +02:00
Quentin Bazin
f5f586980d 'use_alt_tiles' replaced by block states. 2020-07-10 22:43:50 +02:00
Quentin Bazin
fd979fdd06 [LuaBlockLoader] Now setting attributes only when necessary. [BlockStat€] 'isOpaque' fixed. 2020-07-10 22:43:50 +02:00
Quentin Bazin
a44a3b6ad2 Block states almost completely working. 2020-07-10 22:43:50 +02:00
Quentin Bazin
5f96d37fbd [BlockState] 'isOpaque' now has a custom getter. 2020-07-10 22:43:50 +02:00
Quentin Bazin
4884b7c1d9 [ScriptEngine] 'BlockState' and 'BlockParam' added. 2020-07-10 22:43:50 +02:00
Quentin Bazin
7750154b22 [BlockState] Added. First stop of block states. 2020-07-10 22:43:50 +02:00
Quentin Bazin
2b210d697a [BlockParam] Added (see #139). 2020-07-09 22:24:19 +02:00
Quentin Bazin
70f58e7b5b [LuaGUI] Now allows defining a closing key. 2020-07-09 00:11:54 +02:00
Quentin Bazin
4ac67eedd4 [GameKey] 'Up' and 'Down' renamed to 'Forward' and 'Back'. 2020-07-08 04:19:36 +02:00
DeatHunter
5ba2699c4b
Add random walk as an alternative to flood fill for oregen (#148)
* Improved oregen
* [Lua API] Added biome ore definition property 'gen_type'.

Co-authored-by: Quentin Bazin <quent42340@gmail.com>
2020-07-08 02:28:11 +02:00
Quentin Bazin
c6ba9c74db [LuaBiomeLoader] Fixed a typo in ore definition table name. 2020-07-07 02:59:11 +02:00
Quentin Bazin
14e23dc83d Added seeds and wheat. You can grow wheat but it's quite clunky atm. 2020-07-05 23:32:24 +02:00
Quentin Bazin
7497b6b2a8 Added 'Farmland' block, which is possible to create with any hoe. 2020-07-05 20:55:23 +02:00
Quentin Bazin
3a325c74ff Added '-l/--log-level' to set log level. 2020-07-05 18:03:13 +02:00
Quentin Bazin
1fd89998e4 [ServerModLoader] Optional dependencies: OK. 2020-07-05 02:16:49 +02:00
Quentin Bazin
8bcc472f69 [ServerModLoader] Dependencies: OK. 2020-07-05 01:56:14 +02:00
Quentin Bazin
e0d842359e [ServerModLoader] Now checking cyclic dependencies. 2020-07-04 23:03:49 +02:00
Quentin Bazin
a3d5180f2d [ServerModLoader] Now checking if the same mod is being loaded multiple times. 2020-07-03 11:34:32 +02:00
Quentin Bazin
c159626c04 [TerrainGenerator] Fixed #134. 2020-07-02 23:05:37 +02:00
Quentin Bazin
a586609d41 Fixed some warnings. 2020-07-01 21:41:40 +02:00
Quentin Bazin
e919cbb8f7 [Lua API] Added properties 'fog_color' and 'fog_depth'. 2020-06-30 01:45:30 +02:00
Quentin Bazin
4dc89eb6a0 [PlayerList] In singleplayer mode the username doesn't matter anymore. 2020-06-26 06:14:46 +02:00
Quentin Bazin
5aa2a22a23 [GameState] Now using 'Player' as a default username if empty. [ServerCommandHandler] Now checking username on connection. 2020-06-26 06:14:46 +02:00
Quentin Bazin
00e0d76bbc [ClientApplication] Added '-u/--username' to change default username. [TitleScreenState] Now using default username with '-m/--multiplayer' and '-s/--singleplayer'. 2020-06-26 06:14:46 +02:00
Quentin Bazin
e23603cf6e [PlayerList] Now refusing players that are already online. 2020-06-26 06:14:46 +02:00
Quentin Bazin
057753f1d2 [WorldSaveBasicBackend] Now saving player position, rotation and inventory. 2020-06-26 06:14:46 +02:00
Quentin Bazin
93a396e926 [ServerConnectState] Text input added to select an username. 2020-06-26 06:14:46 +02:00
Quentin Bazin
15d9acac61 [Registry] Now storing entity callbacks here instead of using a component. 2020-06-25 00:22:03 +02:00
Quentin Bazin
f32cdf8169 [WorldSaveBasicBackend] Now saving hitbox and itemstack components. 2020-06-24 18:13:48 +02:00
Quentin Bazin
1415e9db31 [WorldController] Moved world save code to WorldSaveBasicBackend. 2020-06-24 15:35:46 +02:00
Quentin Bazin
30b7cb0b90 [WorldController] Entities partially saved with the world (see #126). 2020-06-24 00:22:26 +02:00
Quentin Bazin
616ad0c50a [ServerPlayer] 'isOnline' added. 2020-06-23 19:12:15 +02:00
Quentin Bazin
0cdb08060a [WorldController] Now saving block inventory and metadata. 2020-06-23 19:12:15 +02:00
Quentin Bazin
e0b3e66dfe [ClientApplication|ServerApplication] Small fixes. 2020-06-23 19:12:15 +02:00
Quentin Bazin
977ebf6b4d [ServerApplication] Now using a default save file named '_server'. 2020-06-23 19:12:15 +02:00
Quentin Bazin
219cd5c3e6 [WorldSavingState] Added. 2020-06-23 19:12:15 +02:00
Quentin Bazin
21bafc046e [ChatCommandHandler] '/save' and '/load' commands removed. '/help' command added. 2020-06-23 19:12:15 +02:00
Quentin Bazin
7981c4525d Fixed #125. 2020-06-23 19:12:15 +02:00
Quentin Bazin
12b719e043 [WorldSelectionState] Added. 2020-06-23 19:12:15 +02:00
Quentin Bazin
afc4918459 [ISerializable] Moved to GameKit. 2020-06-20 01:37:12 +02:00