Gist 0f3b930d2e81c213836e566fd22219de
✓ Published0🌍 Public
44xDMG
Last edited Apr 9, 2017
Created on Apr 9, 2017
This example shows a Minecraft spell script that triggers an explosion at a target location. The code demonstrates how to use the Magikcraft JavaScript API to interact with the game world. It calls `magik.aspecto()` to get the player's target block, retrieves its coordinates, and then invokes `createExplosion` on the world object. The explosion is set to cause damage and fire with a power level of one. The script uses the `magikcraft.io` namespace to access the API, and `magik.getSender().getWorld()` to reference the current world. The visualization highlights the spatial targeting and world-modification logic in a concise, event-driven manner.
AI-generated description