256 Commits

Author SHA1 Message Date
Drew DeVault
6b38bc7c03 Finish implementation of inventory window 2015-10-08 19:05:32 -04:00
Drew DeVault
facf8ce2c6 Send players their health on log in
Health is already being saved to disk with their NBT file, so this just
involves sending it to them when they log in.
2015-10-08 08:19:15 -04:00
Drew DeVault
3da7d25a3d Rewrite chat interface 2015-10-07 08:36:43 -04:00
Drew DeVault
42f682ac1c Drop items when you exit a crafting bench
Fixes #26
2015-10-07 07:21:12 -04:00
Drew DeVault
c4a65da5a1 Improve identification of .minecraft directory
This will use the following, in this order:

- $XDG_CONFIG_HOME/truecraft
- .config/truecraft (%APPDATA% on Windows)
- ~/.truecraft (%USERPROFILE% on Windows)

Fixes #201
2015-10-06 08:10:30 -04:00
Drew DeVault
2395c535b8 Fix build 2015-10-06 07:48:49 -04:00
Drew DeVault
b0624e26b3 Add full list of burnable and smeltable items 2015-10-06 07:28:00 -04:00
Drew DeVault
de880f2f8c Merge branch 'client-audio' 2015-10-05 22:08:25 -04:00
Drew DeVault
a361703746 Implement walking sounds
These sounds change depending on what kind of block you're walking in.

Still to come: sound effects for mining and placing blocks
2015-10-05 22:06:59 -04:00
Drew DeVault
d4ccb22e4f Reinitialize furnaces when loaded from disk 2015-10-05 08:44:54 -04:00
Drew DeVault
98b15c3434 Fix minor bug with fuel consumption from furnaces 2015-10-05 08:36:32 -04:00
Drew DeVault
05cffcf631 Finish implementing furnaces (server side)
That is, it works with the Minecraft client, but not with the TrueCraft
client.
2015-10-05 08:35:28 -04:00
Drew DeVault
a22cb1ce12 Improve physics stuff, fix falling sand/gravel
Fixes #69
2015-10-04 18:11:29 -04:00
Drew DeVault
11489e7f95 Partially implement furnace blocks 2015-10-04 15:46:43 -04:00
Drew DeVault
cc1eccae02 Fix issues with metadata from mined wood and wool 2015-10-03 09:51:52 -04:00
Drew DeVault
eda920cb75 Allow players to throw items at an angle
Fixes #73
2015-10-02 08:41:40 -04:00
Drew DeVault
8367f97451 Fix more snow issues
<_<
2015-10-02 08:29:30 -04:00
Drew DeVault
ed85da313f Fix remaining issues with snowfall blocks
Fixes #194
2015-10-02 08:22:58 -04:00
Drew DeVault
14aa3ce07a Add "InteractiveBoundingBox" to IBlockProvider
This is used to determine the bounding box for interaction in the client
(the ray that's cast from your camera interacts with it to determine the
highlighted block).

TODO: Make it work better with metadata.

This commit also fixes one of the issues with snow: ref #194
2015-10-02 08:15:29 -04:00
Drew DeVault
9ccbf80ce5 Add block placement/right click actions on client 2015-09-30 20:17:20 -04:00
Drew DeVault
8a0ad17b00 Add icon texture mappings for all items 2015-09-30 18:29:07 -04:00
Drew DeVault
8d8da15f5a Decode and store inventory updates from server 2015-09-30 08:36:30 -04:00
Drew DeVault
b0c41ffdcc Reduce the max grow time for cactus 2015-09-30 07:36:03 -04:00
Drew DeVault
07362ad666 Implement digging on client*
* With known limitations

- Changing blocks still doesn't re-render correctly
- The item you're holding doesn't factor into your digging time
- No animation on the block you're digging out
2015-09-27 22:32:07 -04:00
Drew DeVault
8f2a4e54a9 Add highlighted block model and VoxelCast class 2015-09-24 08:28:16 -04:00
Drew DeVault
0b9a3c34d1 Change gravity for a few entities to 1.98 m/s^2 2015-09-21 08:38:29 -04:00
Drew DeVault
6956500ef1 Fix oversight on x/z collisions 2015-09-20 17:57:07 -04:00
Drew DeVault
b635feb30b Fix issues with client jumping 2015-09-20 17:55:57 -04:00
Drew DeVault
8819ccf27e Fix issues with client physics, implement jumping
Still a bit janky with jumping.

Fixes #146
2015-09-20 17:45:27 -04:00
Stian Furu Øverbye
dbfd70ba55 Oops! 2015-09-08 14:59:43 +02:00
Drew DeVault
6969964b18 Implement FIRE 2015-09-07 19:14:12 -04:00
Stian Furu Øverbye
f349487ee4 Added cactus growth 2015-09-07 23:42:13 +02:00
Drew DeVault
79e95e2083 Improve performance, fix grass issue 2015-09-07 17:25:14 -04:00
Drew DeVault
988d2077a2 Refine profiler, improve fluid performance
The fluid improvements reduce the number of scheduled updates queued
during terrain generation (they are not really very necessary).
2015-09-07 16:22:20 -04:00
Drew DeVault
08c313a651 Add names to events for profiling puproses 2015-09-07 16:13:18 -04:00
Drew DeVault
14661c7110 Add profiler, improve event scheduler performance 2015-09-07 16:07:39 -04:00
Drew DeVault
1429fce68d Add Wolf entity 2015-09-07 14:34:16 -04:00
Drew DeVault
483cc7b763 Finish grass growth implementation 2015-07-16 05:54:35 -06:00
Drew DeVault
f927f86d43 Raise PathComplete event from IMobEntity
...when the current path is completed
2015-07-15 20:25:01 -06:00
Drew DeVault
19e52bda45 Implement flint & steel behavior
Ref #12
2015-07-14 15:38:06 -06:00
Drew DeVault
1f0c1a6481 Fix error with chunk height map updates
Ref #185
2015-07-07 14:54:08 -06:00
Drew DeVault
f7bd7a109d Optimize event scheduling when loading chunks 2015-07-07 00:49:54 -06:00
Drew DeVault
d27882cdec Add grass growth 2015-07-06 21:07:40 -06:00
Drew DeVault
940b2217c1 Add mechanism for scheduling updates on chunk load 2015-07-06 20:41:25 -06:00
Drew DeVault
312c2edf3d Merge pull request #184 from Dizigma/master
Stopped players from placing blocks on their heads
2015-07-06 20:18:15 -06:00
Dizigma
6a8cd691a6 Increased range for entities to solve this, instead of checking the client bounding box 2015-07-06 19:57:08 -06:00
Drew DeVault
ec079f4dfa Fix some issues with physics simulation 2015-07-06 19:47:29 -06:00
Drew DeVault
75f8f8fc32 Make World.FindBlockPosition thread safe 2015-07-06 19:47:20 -06:00
Drew DeVault
ed7a14b871 Rewrite physics engine
This time it sucks slightly less
2015-07-06 19:30:51 -06:00
Dizigma
5c1512d527 Stopped players from placing blocks on their heads 2015-07-06 18:31:13 -06:00