Romain Beaumont
adcd35b985
make portal test more general to test for several portal kinds
2015-12-13 20:07:45 +01:00
Romain Beaumont
539b9c1314
implement portal detection and use it when flint and steel is used
...
currently places cactus instead of nether block because nether block seems to require the multi block change packet
lot of tests are already there, but some more need to be added, it seems some cases don't work (when the portal have edges it seems)
2015-12-12 06:45:39 +01:00
Romain Beaumont
3e8e49bf4c
one onGround missing
2015-12-11 16:56:23 +01:00
Romain Beaumont
addec7252d
fix place block test and improve lot of awaiting in the tests, only send min(3,view) chunks initially
2015-12-11 16:52:48 +01:00
Romain Beaumont
5f96ff3581
remove a forgotten console.log
2015-12-11 15:51:35 +01:00
Romain Beaumont
f5884caf1f
fix player.kick (just use player._client.end), add serv.quit(reason), wait for login messages in mineflayer test
2015-12-11 15:33:48 +01:00
Romain Beaumont
72c91c50e0
make tests independent : do beforeEach instead of before to initialize the server/bots
2015-12-11 13:49:03 +01:00
Romain Beaumont
b6b49a5c3c
fix /kill test by fixing mineflayer
2015-12-11 13:28:48 +01:00
Romain Beaumont
47c75671c4
create an entity.attach, some more selector fixes, and add a fun /pile <entities> command (that will go in a plugin later)
2015-12-11 05:20:10 +01:00
Romain Beaumont
ce1ffe9c4f
fix error handling in /kill and disable /kill test until we figure out whether the server should send the despawn packet or not when the entity dies
2015-12-11 04:32:33 +01:00
Romain Beaumont
9366c1b9a7
make /attach use the selectors, fix UserError, check /tp has one target
...
see http://stackoverflow.com/a/32749533 for UserError
2015-12-11 04:14:41 +01:00
Romain Beaumont
3bea548f82
node 0.10 doesn't have listenerCount, don't use it
2015-12-11 02:57:32 +01:00
Romain Beaumont
567b82c61c
don't login if the client is already ended, fix #113
2015-12-11 02:37:11 +01:00
Romain Beaumont
c3bef15214
UserError.js -> user_error.js (js style)
2015-12-11 02:11:14 +01:00
Romain Beaumont
c84591eab4
fix npmignore
2015-12-11 01:30:32 +01:00
Romain Beaumont
6fc0e318e2
Release 0.3.0
2015-12-11 01:25:53 +01:00
Romain Beaumont
6207010a02
don't force entities to despawn when they die, the client figures out when to do that itself, fix #156
2015-12-11 01:14:39 +01:00
Romain Beaumont
8776a2baa7
view distance of 1 in the test, fix #158
2015-12-11 01:07:22 +01:00
Romain Beaumont
fcce925032
fix first page of help
2015-12-11 00:59:31 +01:00
Romain Beaumont
f3a543dffc
improve assertPosEqual error message, fix #155
2015-12-11 00:46:26 +01:00
Romain Beaumont
71a85c0f48
page length to 7 like vanilla
2015-12-11 00:23:49 +01:00
Romain Beaumont
b679dd6325
Merge pull request #154 from demipixel/inCompSciRightNow
...
wats ur fav type of icecream
2015-12-11 00:23:08 +01:00
DemiPixel
cd646972f7
Fix help
2015-12-10 15:06:47 -08:00
DemiPixel
32c01a088c
Improve contribute.md
2015-12-10 12:27:17 -08:00
DemiPixel
b7aea8251f
Fix tp, updatePosition, and tests
2015-12-10 11:20:17 -08:00
DemiPixel
9b0970b291
Fix tp, implement entity.selectorString
2015-12-10 09:06:20 -08:00
DemiPixel
f38ea36c55
Make UserError in index.js
2015-12-10 00:14:29 -08:00
DemiPixel
cbb2068454
Made /help not shit
2015-12-09 23:04:57 -08:00
DemiPixel
fe2f220f10
Big changes to player/entity.sendPosition and entity/player.teleport. Not fully working yet.
2015-12-09 23:04:57 -08:00
DemiPixel
67af4a8144
Fix tp and setblock, implement relative position function, throw errors instead of returning, catch errors and display error
2015-12-09 23:04:57 -08:00
Romain Beaumont
ad7253d36d
put experience pure functions in a lib and adapt the doc
2015-12-10 01:47:57 +01:00
Romain Beaumont
865327b482
use require-self for better consistency with external plugins
...
require("flying-squid").someLib instead of require("../someLib")
2015-12-10 01:25:33 +01:00
Romain Beaumont
3ec142d118
add test for /kill
2015-12-09 01:19:18 +01:00
Romain Beaumont
a770046407
properly implement /kill using selectors
2015-12-09 01:12:04 +01:00
Romain Beaumont
31a8d18aa0
Merge branch 'selector' : #149
2015-12-09 01:03:48 +01:00
Romain Beaumont
5d0d9ceb11
fix @e[type=Zombie] selector
2015-12-09 01:03:32 +01:00
Romain Beaumont
cc3d4e09b9
update the default settings in basic.js, fix #147
2015-12-08 02:50:00 +01:00
DemiPixel
e151d6958e
Finish basic implementation of selectors
2015-12-07 15:59:56 -08:00
Romain Beaumont
de202f5faa
fix commands to support /ban-ip , add /pardon-ip
2015-12-07 23:47:53 +01:00
C109
e5ff8eae7e
Added IP ban command
2015-12-07 11:50:52 -05:00
DemiPixel
843fa1ffa2
Starting selectors (incomplete)
2015-12-07 01:21:45 -08:00
DemiPixel
d2a62e53e9
Update docs on XP
2015-12-07 01:04:29 +01:00
Romain Beaumont
3becd22307
Merge #145
2015-12-07 01:02:42 +01:00
Romain Beaumont
3806c3fd29
add a test to check /xp works
2015-12-07 01:02:21 +01:00
Romain Beaumont
85b11605a8
arrow function don't have this
2015-12-07 00:13:01 +01:00
Romain Beaumont
c5fd043e31
increase test time
2015-12-07 00:09:08 +01:00
Romain Beaumont
974fcafba7
add a digging and placing test
...
the placing test is currently skipped because it doesn't always work (might be better to restart the server and bots at each test)
2015-12-07 00:06:43 +01:00
DemiPixel
05be3c4e89
Basic XP implementation
2015-12-06 14:44:10 -08:00
Romain Beaumont
526a9f1132
await the bot is onGround, and add a test for /setblock
2015-12-06 20:20:13 +01:00
Romain Beaumont
7efb2daea3
rewrite tests using async/await
...
much easier to understand that way
2015-12-06 19:42:44 +01:00