Copy the mediumglass.mcstructure file to that folder. Make sure that you match the casing you specified in your JavaScript code, so make it all lower-case. Place this mediumglass.mcstructure file within a subfolder called startertests. In your behavior pack, go to your structures folder and create a subfolder called startertests. Place a structure block next to your creation, and use the Structure Block popup to frame your creation. This will give you a structure block to work with. Next, you will want to export this as a structure. This is a simple glass pen that was built for our GameTest, made from glass blocks: To do this, open up Minecraft and start a new world in Creative mode to build your environment. To finish the sample, you will want to use a structure block to define the test. structureName("startertests:mediumglass") /* use the mediumglass.mcstructure file */ GameTest.register("StarterTests", "simpleMobTest", simpleMobTest) Test.assertEntityPresentInArea(victimId, false) Test.assertEntityPresentInArea(victimId, true) Test.spawn(victimId, new BlockLocation(2, 2, 2)) Test.spawn(attackerId, new BlockLocation(5, 2, 5)) You can start a behavior pack manifest with a manifest.json file within your startertests folder, as follows: from "mojang-minecraft"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |