95 lines
1.9 KiB
Markdown
95 lines
1.9 KiB
Markdown
# IScriptWorld.testForBlock
|
|
|
|
[← IScriptWorld](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 12/16 · [önceki](testForBlock-11.md) · [sonraki](testForBlock-13.md)
|
|
|
|
state - The block to fill the area with.
|
|
x1 - The first x coordinate.
|
|
y1 - The first y coordinate.
|
|
z1 - The first z coordinate.
|
|
x2 - The second x coordinate.
|
|
y2 - The second y coordinate.
|
|
z2 - The second z coordinate.
|
|
|
|
summonFallingBlock
|
|
|
|
|
|
|
|
IScriptEntity summonFallingBlock(double x,
|
|
double y,
|
|
double z,
|
|
java.lang.String blockId,
|
|
int meta)
|
|
|
|
Summon a falling block with a specific block id and meta.
|
|
|
|
c.getWorld().summonFallingBlock(0, 100, 0, "minecraft:dirt", 1);
|
|
|
|
|
|
Returns:
|
|
The falling block entity.
|
|
|
|
setFallingBlock
|
|
|
|
IScriptEntity setFallingBlock(int x,
|
|
int y,
|
|
int z)
|
|
|
|
Transform a block to a falling block in specific coordinates.
|
|
|
|
c.getWorld().setFallingBlock(0, 100, 0);
|
|
|
|
|
|
Returns:
|
|
The falling block entity.
|
|
|
|
setTileEntity
|
|
|
|
void setTileEntity(int x,
|
|
int y,
|
|
int z,
|
|
IScriptBlockState blockState,
|
|
INBTCompound tileData)
|
|
|
|
Sets a tile entity.
|
|
|
|
c.getWorld().setTileEntity(
|
|
530, 152, 546,
|
|
mappet.createBlockState("blockbuster:model", 0),
|
|
mappet.createCompound('{Morph:{Settings:{Hands:1b},Name:"blockbuster.fred"},id:"minecraft:blockbuster_model_tile_entity"}')
|
|
);
|
|
|
|
|
|
Parameters:
|
|
x - X coordinate
|
|
y - Y coordinate
|
|
z - Z coordinate
|
|
|
|
fillTileEntities
|
|
|
|
void fillTileEntities(int x1,
|
|
int y1,
|
|
int z1,
|
|
int x2,
|
|
int y2,
|
|
int z2,
|
|
IScriptBlockState blockState,
|
|
INBTCompound tileData)
|
|
|
|
Fills a range with tile entities.
|
|
|
|
c.getWorld().fillTileEntities(530, 152, 546, mappet.createBlockState("blockbuster:model", 0), mappet.createCompound('{Morph:{Settings:{Hands:1b},Name:"blockbuster.fred"},id:"minecraft:blockbuster_model_tile_entity"}'));
|
|
|
|
|
|
Parameters:
|
|
x1 - X coordinate
|
|
y1 - Y coordinate
|
|
z1 - Z coordinate
|
|
x2 - X coordinate
|
|
y2 - Y coordinate
|
|
z2 - Z coordinate
|
|
|
|
clone
|
|
|