########################################################################################## # # # Pyramid # # A scripter utility which creates a pyramid from the input provided # # Version: 1.0.0 Author: Icecapade # # # # Documentation: # # https://github.com/Hydroxycobalamin/Denizen-Script-Collection/wiki/Pyramid # # # ########################################################################################## create_pyramid: type: task debug: false description: - Creates a pyramid shaped form. definitions: size[ElementTag(Integer)]|center[LocationTag]|stair[MaterialTag: must be a stair material]|slab[MaterialTag: must be a slab material] sub_script: check_definitions: - if !<[size].exists>: - debug error "<&[error]>No size specified. Did you forgot to pass <&[emphasis]>def.size:<<>ElementTag(Integer)<>><&[error]>?" - stop - if !<[size].is_integer>: - debug error "<&[error]>size must be an integer. Provided: <&dq><[size].custom_color[emphasis]><&dq>." - stop - if !<[center].exists>: - debug error "<&[error]>No center specified. Did you forgot to pass <&[emphasis]>def.center:<<>LocationTag<>><&[error]>?" - stop - if !<[center].as[location].exists>: - debug error "<&[error]>center must be a valid LocationTag. Provided: <&dq><[center].custom_color[emphasis]><&dq>." - stop - if !<[stair].exists>: - debug error "<&[error]>No stair specified. Did you forgot to pass <&[emphasis]>def.stair:<<>MaterialTag<>><&[error]>?" - stop - if !<[stair].as[material].name.ends_with[stairs].exists>: - debug error "<&[error]>stair must be a valid stair block. Provided: <&dq><[stair].custom_color[emphasis]><&dq>." - stop - if !<[slab].exists>: - debug error "<&[error]>No slab specified. Did you forgot to pass <&[emphasis]>def.slab:<<>MaterialTag<>><&[error]>?" - stop - if !<[slab].as[material].name.ends_with[slab].exists>: - debug error "<&[error]>slab must be a valid slab block. Provided: <&dq><[slab].custom_color[emphasis]><&dq>." - stop script: - inject