-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Create class to represent block in Hytale, example of code using the Block API class:
@Command(name = "magicwall")
public void onMagicWall(CommandContext ctx) {
Player p = CommandUtils.requirePlayer(ctx);
Location loc = p.getLocation();
for(int x = 0; x < 3; x++) {
for(int y = 0; y < 3; y++) {
Location blockLoc = loc.clone().add(x, y, 0);
blockLoc.getWorld().setBlock(blockLoc, "BLOCK_ID");
}
}
}Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request