I'm trying to spawn a bunch of lightning at random locations using "random_offset" and that works, but it doesn't try to reach to ground. So then I found the tag "find_spawnable_blocks_within" and that accomplishes the reaching part but the location is the same each time. So how would I make the location random like random_offset and keep the tag for spawnable blocks? (Both tags require a location subtag)
#(Aviside) How to make random offset lightning touch the floor
17 messages · Page 1 of 1 (latest)
(Aviside) How to make rng lightning reach the floor
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>
(Aviside) How to make random offset lightning touch the floor
!t find_spawnable_blocks
Returns a list of blocks within a radius, that are safe for spawning, with the same logic as !tag LocationTag.is_spawnable.
Note: current implementation measures the center of nearby block's distance from the exact given location.
Result list is sorted by closeness (1 = closest, 2 = next closest, ... last = farthest).
Group
finding
Returns
ListTag(LocationTag)
Gets a random item in the list and returns it.
Optionally, add [<#>] to instead get a list of multiple randomly chosen list entries.
Returns
ObjectTag
Examples
# Narrates EITHER "one" OR "two" - different each time!
- narrate "<list[one|two].random>
# Could narrate "one|two", "two|three", OR "one|three" - different each time!
- narrate "<list[one|two|three].random[2]>
# Could narrate "one|two|three", "one|three|two", "two|one|three", "two|three|one", "three|two|one", OR "three|one|two" - different each time!
- narrate "<list[one|two|three].random[9999]>