Commit graph

108 commits

Author SHA1 Message Date
Romain Beaumont
3f7853c95b update to nmp 0.16.2 2015-11-19 23:41:29 +01:00
Romain Beaumont
5282dd84a4 makes diamond_square a bit more rough 2015-11-19 23:10:17 +01:00
Romain Beaumont
6ea69796fb add a check in block_place : only place a block if you are holding a block, fix #104 2015-11-19 23:06:52 +01:00
Romain Beaumont
477d5ff3b1 properly build Vec3 from block_dig location, fix #103 2015-11-19 21:56:07 +01:00
Romain Beaumont
5530f7b1de get ticking back to server plugin (more efficient not to listen lot of time on an event) 2015-11-17 00:56:32 +01:00
Romain Beaumont
4cefdedf75 improve entity movement a little bit 2015-11-17 00:42:39 +01:00
Romain Beaumont
ebed98d85f fix respawn 2015-11-17 00:32:05 +01:00
Romain Beaumont
4cfcfe9277 fix missing serv in chat.js 2015-11-16 23:55:44 +01:00
Romain Beaumont
3b46fc348f add /spawnObject <id> 2015-11-16 23:48:49 +01:00
Romain Beaumont
d87e9a3a31 add /summon <entity_name> command 2015-11-16 23:26:31 +01:00
Romain Beaumont
f522dfac97 use Vec3 correctly + move commands in the related plugins 2015-11-16 22:22:58 +01:00
Romain Beaumont
9bcbb991bb serv, player -> player,serv because serv is often not needed 2015-11-16 21:24:19 +01:00
Romain Beaumont
a1a260c1da move some of entities.js in other files 2015-11-16 21:11:20 +01:00
Romain Beaumont
94a11951f4 entity plugins 2015-11-16 20:57:38 +01:00
Romain Beaumont
39dc37f94d put together player plugins and server plugins 2015-11-16 20:23:09 +01:00
Romain Beaumont
15350791df Merge pull request #95 from mhsjlw/update_nmp
update to nmp 0.16
2015-11-16 19:53:30 +01:00
Romain Beaumont
2a64559dc2 Merge pull request #94 from demipixel/blockdrop
Entities and Physics
2015-11-16 19:50:43 +01:00
Romain Beaumont
78149b646e fix changing world 2015-11-16 19:50:33 +01:00
Romain Beaumont
500616283d update to nmp 0.16 2015-11-12 02:28:17 +01:00
Romain Beaumont
47b6e00d5e fix block drop (use currentlyDugBlock instead of getting air) 2015-11-11 11:37:06 +01:00
DemiPixel
f0c17d38b4 Almost done with entities, needs some more finishing touches 2015-11-10 21:12:53 -08:00
DemiPixel
9c61b7b009 Trying to work on sending entities, fair amount of broken stuff 2015-11-09 13:25:42 -08:00
DemiPixel
687b8b971f Remove debugging, fix flying blocks 2015-11-08 14:46:56 -08:00
DemiPixel
cc072e2464 Add cool sounds, remove some debugging 2015-11-08 09:06:37 -08:00
DemiPixel
0684ff481f Added mobs, /spawn, fixed bugs, added many more 2015-11-07 23:17:38 -08:00
DemiPixel
573c0e4200 Adding lots of cool stuff (spawnObject, entity physics, etc) 2015-11-07 17:49:52 -08:00
Romain Beaumont
3134633a87 properly implement gamemode change, make gamemode3 (spectator) work 2015-11-07 20:43:34 +01:00
Romain Beaumont
12620716e7 only wait between each chunk after the initial map was sent 2015-11-06 22:11:52 +01:00
Romain Beaumont
591a4ed8df implement skins (player properties) 2015-11-06 21:40:18 +01:00
Romain Beaumont
d7aa0bca83 handle player set view distance, fix #76 2015-11-06 20:50:29 +01:00
Romain Beaumont
6b86cf5e9a send rest of the map only when the player has logged, fix #88 2015-11-06 20:36:41 +01:00
Romain Beaumont
a647e34078 fix respawning : fix #91 2015-11-06 19:17:52 +01:00
Romain Beaumont
010cda5c6e use destructuring in more commands 2015-11-06 19:07:05 +01:00
Romain Beaumont
41811c79b5 improve code of new commands : do the parsing in parse and use destructuring 2015-11-06 18:39:29 +01:00
DemiPixel
446dfa64d0 Lots of stuff. 2015-11-05 17:41:16 -08:00
DemiPixel
2955c5bcfd Support sound basics 2015-11-02 19:04:09 -08:00
Romain Beaumont
20ff77bc1d listen on server 'connection' to listen to non-PLAY errors, try to fix #85 2015-10-26 22:33:52 +01:00
Romain Beaumont
81d6cca4f1 add metadata when placing a block, progress on #9 2015-10-26 21:32:53 +01:00
Romain Beaumont
73a18ef863 use an es6 class for the player 2015-10-26 02:59:37 +01:00
Romain Beaumont
733ca45a46 use a class for MCServer 2015-10-26 02:55:08 +01:00
Romain Beaumont
888fa21b7b some more es6 arrows 2015-10-26 02:40:23 +01:00
Romain Beaumont
accb742c7f add back server.setBlock 2015-10-26 02:28:07 +01:00
Romain Beaumont
53c2bc776d use an es6 class for diamond_square generation 2015-10-26 02:03:32 +01:00
Romain Beaumont
1a58da904c more es6 refactoring : use destructing and more arrow functions 2015-10-26 01:53:07 +01:00
Romain Beaumont
a50642967b use more es6 arrow function, and directly define the player.f functions instead of defining the function then assigning it 2015-10-26 01:15:21 +01:00
Romain Beaumont
69819b880e proper /changeworld overworld|nether command implemented 2015-10-25 23:58:30 +01:00
Romain Beaumont
939a404050 fix grass in diamond_square 2015-10-25 23:33:12 +01:00
Romain Beaumont
2a3b8a157b add player.spawnAPlayer, player.despawnPlayers, player.updateAndSpawnNearbyPlayers, automatically spawn and despawn players when getting closer or far 2015-10-25 23:26:04 +01:00
Romain Beaumont
c2b1424743 serv.setBlock -> player.setBlock 2015-10-25 21:24:37 +01:00
Romain Beaumont
e3b7ad569b fix stuff related to changeWorld
* use writeOthersNearby everywhere
* create player.playerViewDistance
* put toFixedPosition in vec3 prototype
* fix changeWorld (use the same function than in login)
* use entity_destroy in changeWorld
* sendPosition, not setPosition
* disable pregenWorld : it just makes everything slow
2015-10-25 21:03:02 +01:00