1184 Commits

Author SHA1 Message Date
Quentin Bazin
73d7944c17 [ChunkBuilder] Opaque blocks now use their own torchlight value for each face. 2020-07-28 21:24:13 +02:00
Quentin Bazin
a83e4d20bf Now saving program output to log files. 2020-07-28 20:55:49 +02:00
Quentin Bazin
d38946e097 [mods/creative_inventory] Fixed a few bugs with search bar.
[mods/default] 'Shears' added.
2020-07-28 19:57:17 +02:00
Pedro Gimeno
2be3fc24a6 Fix the rotation axis of celestial objects 2020-07-28 19:31:35 +02:00
Quentin Bazin
ef5ac1d818 [LuaGUI] Text input definition added.
[creative_inventory] Now has a search bar!
2020-07-28 19:10:02 +02:00
Quentin Bazin
4337868fde [TexturePackSelectionState] World reload request added. Prevents a bug with incomplete texture packs (see #167). 2020-07-28 12:26:30 +02:00
Pedro Gimeno
6202717443 Use gk::abs instead of defining an ABS macro 2020-07-28 11:43:47 +02:00
Quentin Bazin
0a88bec7fb [SettingsMenuState] Added menu option to change camera FOV. [Minimap] Now updating blue triangle when FOV or render distance changes. 2020-07-28 09:48:50 +02:00
Quentin Bazin
ee1efccca5 [Config] 'isChunkMinimapEnabled' added, along with its menu option in SettingsMenuState. 2020-07-28 09:35:27 +02:00
Quentin Bazin
a1366e162e [Minimap] Now showing player fov/render distance using a blue triangle. 2020-07-28 09:29:31 +02:00
Quentin Bazin
59b8650001 [Minimap] Now showing rendered chunks. 2020-07-28 09:12:36 +02:00
Quentin Bazin
82f170d654 [Minimap] Added. 2020-07-28 09:12:36 +02:00
Pedro Gimeno
7e308bc988 Improve precision in time calculations to prevent possible problems 2020-07-27 20:59:41 +02:00
Pedro Gimeno
89274f906a Improve /time command to allow time in h:m and omitting set
`/time set N` and `/time add N` work like before. The following extensions were added:

- `/time N`, `/time str`
  - same as `/time set N` and `/time set str` respectively
- `/time h:m`, `/time set h:m`
  - allows setting a specific time in hour:minutes format
- `/time add h:m`
  - adds a specific number of hours and minutes to the time
2020-07-27 20:57:09 +02:00
Quentin Bazin
5a8b051322 [.travis.yml] Small fix. 2020-07-27 18:12:30 +02:00
Quentin Bazin
51f4496c74 [mods/default/blocks.lua] Ice block fixed. 2020-07-27 18:12:30 +02:00
Quentin Bazin
f99729d827 Block placement constraints implemented. Closed #137. 2020-07-27 18:12:30 +02:00
Pedro Gimeno
85a1b4ee78 Fix rendering of skybox when far away from 0,0,0 2020-07-27 00:13:01 +02:00
Pedro Gimeno
d22785f593 Fix clipping of the skybox
The bottom of the skybox was being clipped as a result of a -50m offset that is applied to its centre. Fix that, and add a constant for said offset in EngineConfig.cpp.
2020-07-26 23:55:06 +02:00
Quentin Bazin
8477bcaace [external/gamekit] Updated. 2020-07-25 13:24:04 +02:00
Quentin Bazin
529c0a0427 Fixed missing include and define for MSVC. 2020-07-25 03:11:23 +02:00
Quentin Bazin
255190bde3 [external/gamekit] Updated. 2020-07-25 03:09:38 +02:00
Quentin Bazin
54ffc2c33d [Block] 'custom_param_bits' attribute added. Fixed #139. 2020-07-25 01:42:05 +02:00
Quentin Bazin
c96aef94c1 [external/gamekit] Updated. 2020-07-25 01:08:21 +02:00
DeatHunter
bbc9d84495
New blocks, items and recipes (#151)
* Added new blocks and items

* Added crafting recipes

* Added missing textures

* Changed textures to faithful 1.12

* Fixed file permissions

* Changed to 1.12 naming scheme

* Added missing MineCraft textures

* Fixed error in blocks.lua

* Fixed some filenames
2020-07-25 00:27:33 +02:00
Quentin Bazin
c518334e5b [GameState] Fixed #163. 2020-07-25 00:25:50 +02:00
Quentin Bazin
43b0833c7e [mods/default/door.lua] Fixed material for lower door part. 2020-07-25 00:13:38 +02:00
Quentin Bazin
112886111b [mods/default/tools.lua] Fixed #165. 2020-07-24 23:43:56 +02:00
Quentin Bazin
c52b831552 [BlockCursor] Fixed a bug allowing to mine without pressing left-click. See #163. 2020-07-24 23:36:48 +02:00
Quentin Bazin
0564e1cb70 [Chunk] 'onBlockDestroyed' is now called after updating the block. 2020-07-24 23:27:54 +02:00
Quentin Bazin
78f5204d33 [LuaBlockLoader] Fixed blockparam bit allocation for block states. 2020-07-24 23:02:30 +02:00
Quentin Bazin
e85c5f3458 Small fixes. 2020-07-24 19:59:35 +02:00
Pedro Gimeno
2b34e90216 Add constants for sun, moon and stars distance based on far clip 2020-07-23 19:31:28 +02:00
Quentin Bazin
b763b1aa8f [Sky] Added default values for celestial object definitions. 2020-07-21 22:50:19 +02:00
Quentin Bazin
c4feb73b2a Small fixes. 2020-07-21 22:36:56 +02:00
Quentin Bazin
a214890517 [mods/default] Hoe now works on Dirt blocks. 2020-07-20 21:59:24 +02:00
Quentin Bazin
55d2bdab72 [ChatCommandHandler] '/time add <value>' now allows negative values. 2020-07-20 21:30:00 +02:00
Pedro Gimeno
f4be71c731 Make celestial objects be referenced by centre instead of corner 2020-07-20 19:43:53 +02:00
Quentin Bazin
1e6d12331b [docs/lua-api-block|item] Small fix. 2020-07-20 19:21:26 +02:00
Quentin Bazin
9c5f1b9374 [CelestialObject] Fixed rendering on Windows and Debian, maybe. (see #159) 2020-07-20 16:43:07 +02:00
Quentin Bazin
3c3d323e6f Small fixes. 2020-07-20 16:06:49 +02:00
Pedro Gimeno
e428509e0a Make some constants float to prevent extra casting work 2020-07-20 16:04:19 +02:00
Pedro Gimeno
7c1bf48ab0 Round coordinates that are used to display text buttons
Fixes a minor graphical glitch in the menus.
2020-07-20 16:04:19 +02:00
Quentin Bazin
64ddacd08f [mods/default] 'Torch' added.
[BlockState] 'isCollidable' attribute added.
[TextButton] Now rounding position.
2020-07-20 15:31:43 +02:00
Quentin Bazin
5d6b9e808a [TextButton] Now rounding to position to the nearest integer. 2020-07-20 13:49:43 +02:00
Pedro Gimeno
aa99017ad4 Fix stars uniformity and rotation 2020-07-20 12:39:03 +02:00
Quentin Bazin
71771b8f76 [TexturePackSelectionState] Removed world reload request because not needed. 2020-07-20 12:20:45 +02:00
Quentin Bazin
4c41ab080a [LuaMod|Inventory] Fixed a small bug preventing items from being gathered. 2020-07-20 09:48:26 +02:00
Pedro Gimeno
b8d3a36f19 Fix the degenerate case of the camera being between blocks
It got broken by mistake with the addition of block states, in commit 7750154b22d8b3cfaa564174187b81c1be914b05
2020-07-18 16:19:26 +02:00
Quentin Bazin
646fea1b9e [mods/default] Fixed a bug causing furnace to update the chunk every tick. 2020-07-18 07:44:49 +02:00