#(strook) Creating a cuboidtag using relative coordinates

1 messages · Page 1 of 1 (latest)

supple finch
#

I have an entity called root in the script that I am making, And I want to create a cubiodtag with the root in the center around 100x100 blocks in size, how do I create and change a cubiodtag to do this?

midnight marshBOT
#

(strook) Creating a cuboidtag using relative coordinates

midnight marshBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

restive escarp
#

if it's 100x100x100, a cube, you can do this:

#

<[location].to_cuboid[<[location]>]>

#

same location in both

#

and then

#

!t cuboid.expand

obsidian oreBOT
# restive escarp !t cuboid.expand

Expands the cuboid by the given amount, and returns the changed cuboid.
This will decrease the min coordinates by the given vector location, and increase the max coordinates by it.
Supplying a negative input will therefore contract the cuboid.
Note that you can also specify a single number to expand all coordinates by the same amount (equivalent to specifying a location that is that value on X, Y, and Z).
Not valid for multi-member CuboidTags.

Returns

CuboidTag

Examples
# If "my_cuboid" spans from 10,10,10 to 5,5,5 and gets expanded by 15 (15,15,15),
# then "my_expanded_cuboid" will span -10,-10,-10 (min) to 25,25,25 (max).
- note <cuboid[my_cuboid].expand[15]> as:my_expanded_cuboid
# If "my_cuboid" spans from 10,10,10 to 5,5,5 and gets expanded by 15,20,25,
# then "my_expanded_cuboid" will span -10,-15,-20 (min) to 25,30,35 (max).
- note <cuboid[my_cuboid].expand[15,20,25]> as:my_expanded_cuboid
restive escarp
#

with either 50 or 100, i dont remember if it expands diameter or radius

#

if it's not supposed to be a cube, but, lets say, 100x10x100, so 10 blocks tall, then you'd have to change the two corners with .add, one with .add[-50,0,-50] and the other with .add[50,10,50]

#

and then use .to_cuboid on these two

#

lemme just link the to_cuboid tag

#

!t to_cuboid

obsidian oreBOT
supple finch
#

ok

#

thank you!