Hemisphere generation

Discussion in 'CraftScripts' started by xxOrpheus, Jan 21, 2015.

  1. xxOrpheus

    xxOrpheus New Member

    I found this script by Nividica, for automatic creation of a hemisphere. This script was outdated, and there were some things I didn't like about it. So, I updated it. Here it is.

    It now combines the function of domes and bowls in one. It also allows for ellipsoid and filled shapes.


    http://pastebin.com/K3uiZPVt

    Usage: /script.js <block> <radius>[,<radius>,<radius>] [dome|bowl] [filled?]


    There is one problem though, the line editSession.setMask(null) throws an error:
    "EditSession.setMask matching JavaScript argument types (null) is ambiguous"
    I don't know how to fix this. You can comment this line out, but you'll have to type "//gmask" to clear the mask every time you use the script.

    original dome.js: http://forum.enginehub.org/threads/bowls-domes-generation.8981/
    Last edited: Jan 21, 2015