# IScriptWorld.testForBlock [← IScriptWorld](index.md) · [← Master](../../wiki.md) Parça 11/16 · [önceki](testForBlock-10.md) · [sonraki](testForBlock-12.md) Ray trace in this world, between two given points (including any entity intersection). Check IScriptRayTrace for an example. Parameters: x1 - X coordinate of the first point. y1 - Y coordinate of the first point. z1 - Z coordinate of the first point. x2 - X coordinate of the second point. y2 - Y coordinate of the second point. z2 - Z coordinate of the second point. rayTraceBlock IScriptRayTrace rayTraceBlock(double x1, double y1, double z1, double x2, double y2, double z2) Ray trace in this world, between two given points (excluding entities). Check IScriptRayTrace for an example. Parameters: x1 - X coordinate of the first point. y1 - Y coordinate of the first point. z1 - Z coordinate of the first point. x2 - X coordinate of the second point. y2 - Y coordinate of the second point. z2 - Z coordinate of the second point. isActive boolean isActive(int x, int y, int z) Return whether a button, plate or lever is active or not. c.getWorld().isActive(0, 4, 0); testForBlock boolean testForBlock(int x, int y, int z, java.lang.String blockId, int meta) Test for a specific block and meta in a specific coordinates. function main(c) { var pos = c.getSubject().getPosition() if (c.getWorld().testForBlock(Math.floor(pos.x), Math.floor(pos.y), Math.floor(pos.z), "minecraft:light_weighted_pressure_plate", 1)) { c.send("Prussure Plate is pressed.") } } fill void fill(IScriptBlockState state, int x1, int y1, int z1, int x2, int y2, int z2) Fill a 3D area with a block. var coarse_dirt = mappet.createBlockState("minecraft:dirt", 1); c.getWorld().fill(coarse_dirt, -3, 100, -3, 3, 100, 3); Parameters: