Run ./test, then open your Minecraft client to connect to localhost and try the following.
/story test- Verify
test.storyhappened as expected
TODO Replace this with a saved Blockly instead of Scratch project...
First test that Eric's (!) saved project (which is in git) works:
Right click Piggy and verify it says "Hello, my friend!"type/scratch_testverify the title shown
Now test that you can make a new project:
- Open http://localhost:7070/index.html
TODO support command
/makeand click the link in the Minecraft Chat to open the Blockly-based UI in the browser - Add
- Events > When /
demo - Actions > Title
Hello! - Actions >
PiggyspeaksHello!
- Events > When /
/democommand in Minecraft should now make the entity Piggy speak- Drag a whenInside block and add a name of the region
trigger- Your player will get a special axe to "draw" the region with
- Use left mouse to set the first point of a box
- Right mouse to set the second point of a box
- Now any time a player enters the block beneath will be executed
- Your player will get a special axe to "draw" the region with
TODO Update the following, after Blockly will be made to reload previous projects?
close BrowserTODO/demoshould still work, but currently doesn't anymore (because project JSON wasn't automagically moved from/minecraft-server-test-data/config/storeys-web/working/tostoreys-web/scratch/)/makeagainVerify that previously created blocks still appearTODO bug #310/demoshould still work, but currently doesn't, because ofIllegalArgumentException: A plugin may not register multiple commands for the same alias ('demo')in log; this needs more thoughts in general.
/story js- Verify
js.storyhappened as expected
/new- Verify
test.jshappened as expected - _TODO Walk to the cacti and jump on top and make sure a "you jumped!" is shown as title
- Edit
test.jsto changem.title("Hello");tom.title("hello, world"); /new- Verify title shown changed
/example- Verify
ExampleScript.javahappened as expected /another- ditto
- Right click Piggy and verify it says (narrates) "Oink!"
We do not support "hot reloading" these Java plugins (yet, but we could).
To see what's going on inside the container, use:
podman exec -it storeys bash
Run ./clean, this WILL LOOSE any in-game world changes
that are ignored and not commited to git!