#(Aviside) How to make random offset lightning touch the floor

17 messages · Page 1 of 1 (latest)

craggy igloo
#

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)

tacit narwhalBOT
#

(Aviside) How to make rng lightning reach the floor

tacit narwhalBOT
#

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>

craggy igloo
#

(Aviside) How to make random offset lightning touch the floor

tough moat
#

!t find_spawnable_blocks

fathom turtleBOT
tough moat
#

this returns a list

#

if you want a random item from the list

#

!t list.random

fathom turtleBOT
# tough moat !t list.random

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]>