Hi!
Look at this:
This part:
Doesn't work...
What I am trying to do is to make a script with all Minecraft sounds and you can search for them, but it doesn't work. This part:
to me I think is not working. It won't put the 'loop-value' that matches 'arg-2' (search query). For an example I type in '/sounds search zombie' it should bring up all the sounds that CONTAIN 'zombie' so 'mob.zombie.remedy' should show up in the {output::*} but it doesn't.
[doublepost=1491707791,1491622373][/doublepost]bump
[doublepost=1491708417][/doublepost]Download:
https://www.mediafire.com/?3jn15txq1iqg856
(Mega isn't working sorry if it's against the rules to use Mediafire but there's no direct upload button.)
Look at this:
Code:
command /sounds [<text>] [<text>]:
trigger:
if arg 1 is not set:
send "&d&m---------------------[ &9Sounds &d&m]---------------------"
send "&a&o/sounds &7- &6&oShow this help page."
send "&a&o/sounds list &7- &6&oList every sound in the database."
send "&a&o/sounds search (sound)"
send "&aFor an example: '&6/sounds search zombie&a' this will search for all the sounds that a zombie makes."
if arg 1 is "search":
if arg 2 is set:
loop {sound.database::*}:
if loop-value contains "%arg-2%":
add "%loop-value%" to {output::*}
send "{@P} &aSearch found results for &6%arg-2%&a;"
loop {output::*}:
send "&6%loop-value%"
This part:
Code:
if arg 1 is "search":
if arg 2 is set:
loop {sound.database::*}:
if loop-value contains "%arg-2%":
add "%loop-value%" to {output::*}
send "{@P} &aSearch found results for &6%arg-2%&a;"
loop {output::*}:
send "&6%loop-value%"
What I am trying to do is to make a script with all Minecraft sounds and you can search for them, but it doesn't work. This part:
Code:
loop {sound.database::*}:
if loop-value contains "%arg-2%":
add "%loop-value%" to {output::*}
[doublepost=1491707791,1491622373][/doublepost]bump
[doublepost=1491708417][/doublepost]Download:
https://www.mediafire.com/?3jn15txq1iqg856
(Mega isn't working sorry if it's against the rules to use Mediafire but there's no direct upload button.)