Code:
command /summonrandomblock:
trigger:
set {_list::} to all blocks
set {_a} to size of {_list::}
set {_b} to a random element out of {_list::*}
execute player command "/setblock -353 -60 -104 minecraft:%{_b}%"
When I run the command, it doesn’t work more than likely due to the way skript handles block ids. For example: if it landed on yellow wool, it wouldn’t work due to it being listed as “yellow wool” instead of “yellow_wool”
Note:
I am starting to learn skript which makes this stuff difficult to me currently.