#Trying to make a dome using block displays
1 messages · Page 1 of 1 (latest)
thats not what this server is for
but if you send the code you have, we can give suggestions
org.bukkit.Material
org.bukkit.entity.BlockDisplay
command /lightdometest:
trigger:
set {_radius} to 5
set {_duration} to 10 seconds
set {_center} to location of player
set {_world} to world of player
loop integers from -{_radius} to {_radius}:
set {_x} to loop-number
loop integers from 0 to {_radius}:
set {_y} to loop-number
loop integers from -{_radius} to {_radius}:
set {_z} to loop-number
# sphere equation (top half only)
if {_x}^2 + {_y}^2 + {_z}^2 <= {_radius}^2:
set {_loc} to {_center} offset by {_x}, {_y}, {_z}
set {_bd} to {_world}.spawn({_loc}, BlockDisplay)
{_bd}.setBlock(Material.LIGHT_BLUE_STAINED_GLASS.createBlockData())
{_bd}.setBrightness(15, 15)
add {_bd} to {lightdome::%uuid of player%::*}
wait {_duration}
loop {lightdome::%uuid of player%::*}:
loop-value.remove()
delete {lightdome::%uuid of player%::*}
im aware that loop integers from -{_radius} to {_radius}: doesnt meet skript syntax and is the only line that has an error currently, but idk how to fix it without have a ton of other errors😭
Skript Hub - Documentation
All numbers between two given numbers, useful for looping.
Use 'numbers' if your start is not an integer and you want to keep the fractional part of the start number constant, or use 'integers' if you only want to loop integers.
You may also use 'decimals' if you want to use the decimal precision of the start number.
You may want to use the 'tim...
always check the docs