Skip to content

Creating spheres/cylinders with an even diameter #2861

@evedeon

Description

@evedeon

The Problem

Whenever the //cyl or //sphere command is used to create a sphere or cylinder, there's always an odd number of blocks as diameter, with a central block. For example, the command //sphere -h stone 5 results in a sphere of diameter 11. I've tried using a non-integer number for the radius, but that still results in an odd-diameter shape. This is a problem because to actually create an even-diameter shape, I would have to generate an odd-diameter shape, and then manually move blocks around, either by hand or the //move command, and then filling in the gaps created. Or I could generate 8 identical spheres on a 2x2x2 platform, but that makes it especially difficult for creating hollow spheres.

A Solution

Players should be able to generate spheres or cylinders with an even number of blocks for the diameter. If anything, an even diameter should be the default for an integer radius, given that the radius of a circle is half its diameter. For example, the command //sphere -h stone 5 should generate a sphere with a diameter of 10, not 11. Should the player want a sphere with diameter 11, the command should be //sphere -h stone 5.5, given that half of 11 is 5.5, not 5.

Alternatives

Perhaps players could specify with an argument in the command whether they want an even-diameter or an odd-diameter. This is a working alternative solution, but it is not preferred, since it would not make sense mathematically. A command like //sphere -h stone 5 -odd could still generate a sphere of diameter 11, which is not 5 times 2, but it works well as a way to differentiate odd and even diameter shape generations.

Anything Else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions