TLDR: In block code, you want to build something like
This is the loot table for Fishtopia, and the number can be changed to whatever you want. Make sure you have item granters that detect each broadcast to grant the item to the player.
or https://youtu.be/D6WvXeuDBU4 (26m warning)
Seeing as this was a FAQ in the Discord and looks to be on track to become one here. I’ve made a guide! Although this probably won’t help much, at least I tried ¯_(ツ)_/¯.
Bold = Keywords
Italics = Optional
So First you want to get a device that has the "wire pulse " in blocks. My favorite is the item granter but it’s your pick. Also, it can be " When Receiving on Channel " . The reason I like the item granter is that in the “for this device section, " there is a Grant item with a custom amount block. You can make the item granter be selected to “Bait” and in the Visual Code have: " Grant Player Selected Item (Custom Amount) " in the " amount *” bit have -1. The * integer block can be found in the " Math section ". First, make a variable. This variable can be called whatever you want but I like “Num” or “Number”. Then place a “Set (Variable ) to”: “random integer from (1) to (1000)”. If you didn’t read the optional part. The integers are in the math tab. Then get an "if " Block with 3 "else ifs ". If blocks need a certain condition to be true for it to run. else if blocks run if the “if” or “else if” above them is false. else blocks run if all conditions are false. we are making the “first zone” loot table. On the first “if” have “If (Variable =< 700)”
Broadcast: “Gray fish”
Else If (Variable =< 850)
Broadcast: “Green fish”
Else If (Variable =< 950)
Broadcast: “Red fish”
Else If (Variable =< 1000)
Broadcast: “Blue fish”.
Then make a property named something like Bait #. in the item granter that grants bait. go to the “when item granted” block . and build this:
Set “1” to # of bait granted for every question.
use the “bait” property to turn the code above into the code below (Bold is new if block in this case)
“if (Get Property: Bait > 0)
Set Property Value to: Property:
Value: Get Property: Bait - 1
If (Variable =< 700)”
Broadcast: “Gray fish”
Else If (Variable =< 850)
Broadcast: “Green fish”
Else If (Variable =< 950)
Broadcast: “Red fish”
Else If (Variable =< 1000)
Broadcast: “Blue fish”
Else:
Broadcast Message on Channel: (Out of Bait Channel)
if you did everything correctly it should look something like this:
After this point Everything is optional
if you make a system to upgrade a property for a “FishingRodLevel” Property
you can make this:
This will not allow you to get the gray fish or least valuable fish when you have upgraded your fishing rod!
If you add that to the system you can do this!
You can also use that to make a system where you need to unlock each fish! If you use and blocks you can build this.
It’s a Bit Different (different maps).
Anyways. That’s it! I hope it helped!
ALSO, MAKE SURE ALL VARIABLES HERE ARE SET TO NUMBER
ALSO READ OTHER REPLIES BEFORE POSTING ONE, YOUR QUESTION MIGHT ALREADY BE ANSWERED






