126 Commits

Author SHA1 Message Date
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
9df06a4a88 Fixed block mining speed. 2020-07-13 06:26:21 +02:00
Quentin Bazin
2d56b94398 [mods/default/blocks.lua] Small fixes. 2020-07-11 03:18:44 +02:00
Quentin Bazin
6a68b1a430 [BlockState] 'drawOffset' attribute added. 2020-07-11 02:59:48 +02:00
Quentin Bazin
801c13fc4b [default] Various gameplay tweaks. [BlockState] Fixed tools. 2020-07-11 02:32:41 +02:00
Quentin Bazin
52b53ebfe4 [mods/default/blocks.lua] Removed old 'Redstone Lamp'. 2020-07-11 02:03:44 +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
d68e17a521 Added 'Redstone Lamp' alternative using states. WIP. 2020-07-10 23:58:07 +02:00
Quentin Bazin
f5f586980d 'use_alt_tiles' replaced by block states. 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
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
70f58e7b5b [LuaGUI] Now allows defining a closing key. 2020-07-09 00:11:54 +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
43c28b4e68 [mods/default] Fixed some textures. 2020-07-08 00:40:27 +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
531b7badab Added 'Grass Path' block, which is possible to create with any shovel. 2020-07-05 21:02:52 +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
a3d5180f2d [ServerModLoader] Now checking if the same mod is being loaded multiple times. 2020-07-03 11:34:32 +02:00
Quentin Bazin
e919cbb8f7 [Lua API] Added properties 'fog_color' and 'fog_depth'. 2020-06-30 01:45:30 +02:00
Quentin Bazin
00d1cb84d5 Mod-defined server config options. Fixes #105.
[Chat] History system with up/down arrow keys.
[ChatCommandHandler] '/option' command added.
2020-06-20 01:07:28 +02:00
Quentin Bazin
fc3fafc1a8 [Lua API] Key definition: OK. Can't be remapped yet. 2020-06-19 16:20:35 +02:00
Quentin Bazin
ea38e6d397 [LuaKeyLoader] Moved callback inside key definition. 2020-06-19 16:20:35 +02:00
Quentin Bazin
b45ac1cdbd [LuaKeyLoader] Now loading key definitions from Lua (see #109). 2020-06-19 16:20:35 +02:00
Quentin Bazin
67bf22664f [mods/default] init.lua splitted into multiple files. 2020-06-02 05:14:54 +02:00
Quentin Bazin
4a6bbbe5ea [Dimension] 'gravity' field added to change gravity per-dimension. 2020-05-22 20:55:17 +02:00
Quentin Bazin
b34480565c [LuaCore] New event 'PlayerConnected' added. 2020-05-22 05:34:02 +02:00
Quentin Bazin
17af1861b5 [LuaMod] Added helpers to despawn an entity and add an item stack to a player's inventory. 2020-05-20 13:39:06 +02:00
Quentin Bazin
4ff7714ece Now using ServerConfig in Lua + Collision callback: OK. 2020-05-20 13:39:06 +02:00
Quentin Bazin
2f82101fb8 Entity definition + spawn from Lua: OK. 2020-05-20 13:39:06 +02:00
Quentin Bazin
5e6103d00d Working on entity Lua API. 2020-05-20 13:39:06 +02:00
Quentin Bazin
9f09a0af55 [LuaCore] New event 'OnBlockDigged' added. 2020-05-04 11:39:01 +02:00
Quentin Bazin
94b959cf03 [LuaMod] 'path()' member added. 2020-04-03 02:34:03 +02:00
Quentin Bazin
ead5e7dde0 [ServerModLoader] Now handling mod name conflicts. 2020-04-03 02:02:53 +02:00
Quentin Bazin
9015830aef [ServerModLoader] Now storing mods.
The changes are only committed on success.
Also, the mods now use their own working directory instead of the main.
2020-04-03 01:11:36 +02:00
Quentin Bazin
474eeec8f6 [ServerModLoader] Added. Will handle modpacks and mod name conflicts. 2020-04-03 00:26:31 +02:00
Quentin Bazin
218eddb7e4 Furnace output inventory is now read-only. 2020-03-30 03:17:18 +02:00
Quentin Bazin
5072afdb81 [blocks.lua] Cactus and sugar canes now breaks the blocks above when broken. 2020-03-29 21:39:39 +02:00
Quentin Bazin
2ecef2ded9 Door block added. 2020-03-29 19:25:40 +02:00
Quentin Bazin
c3eaa06653 [blocks.lua] Cactus bottom texture added. 2020-03-29 17:55:15 +02:00
Quentin Bazin
743ee7bd22 Redstone lamp added, can be enabled/disabled using right-click. 2020-03-29 17:33:06 +02:00
Quentin Bazin
5c8d926315 Block groups added. 2020-03-29 15:37:49 +02:00
Quentin Bazin
266e4b7453 Groups can now be used in recipes. 2020-03-29 15:37:49 +02:00
Quentin Bazin
786aaff198 Groups can now be used for filtering in InventoryWidget. 2020-03-29 15:37:49 +02:00
Quentin Bazin
1347f81619 Item groups added. Now used instead of 'is_fuel' and 'burn_time'. 2020-03-29 15:37:49 +02:00
Quentin Bazin
93308c9f14 Basic texture pack system added (see #34). 2020-03-18 00:42:56 +01:00
Quentin Bazin
c5f83f9084 [blocks.lua] Sugar canes added. 2020-03-15 16:54:24 +01:00
Quentin Bazin
065590fb94 [LuaBiomeLoader] Changed block definitions format. 2020-03-13 12:18:40 +01:00