Narratrr Posted April 25, 2021 Share Posted April 25, 2021 okay, so I need a skript that when you place down a gold block it automatically starts giving u money and instead of being an actual physical gen it goes to your /gens balance, basically a virtual money generator. and the more gens u have the more money u accumulate over time. IGN: LastMC Discord: LastXD#7171 Rank: PRO Join date: Monday - December - 23rd - 2019 Link to comment Share on other sites More sharing options...
_Tarna_ Posted April 25, 2021 Share Posted April 25, 2021 Moved to Marketplace Please post in the right category next time when requesting a skript. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 - 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Jockerlight Posted April 25, 2021 Share Posted April 25, 2021 variables: {gen.balance.%uuid of player%} = 0 every second: loop all players: loop blocks in radius 5 around loop-player: if loop-block is gold block: add 1 to {gen.balance.%uuid of player%} command /money: trigger: send “{gen.balance.%uuid of player%}$” Link to comment Share on other sites More sharing options...
Narratrr Posted April 25, 2021 Author Share Posted April 25, 2021 Jockerlight, it didn't work for some reason IGN: LastMC Discord: LastXD#7171 Rank: PRO Join date: Monday - December - 23rd - 2019 Link to comment Share on other sites More sharing options...
BanditEagle Posted April 26, 2021 Share Posted April 26, 2021 30 minutes ago, LastMC said: Jockerlight, it didn't work for some reason It seems there are some issues with the spacing of the code. Try this: options: genDropSecond: 5 seconds variables: {gen.balance.%uuid of player%} = 0 every {@genDropSecond}: loop all players: loop blocks in radius 5 around loop-player: if loop-block is gold block: add 1 to {gen.balance.%uuid of player%} command /money: trigger: send “{gen.balance.%uuid of player%}$” Hope it helps! If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot! Some Minehut Links: Server Rules • Staff Applications • News & Updates • Reports • Appeals Minehut: VIP (07/04/2021 --> Current)Elestra/Versa Realms: Manager (12/04/2021 --> Current) If you have any questions contact me!My Discord: BanditEagle#2481My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/My IGN: BanditEagle Link to comment Share on other sites More sharing options...
Jockerlight Posted April 26, 2021 Share Posted April 26, 2021 17 hours ago, LastMC said: Jockerlight, it didn't work for some reason Yea I am sorry there where some wrongs with the spaces Link to comment Share on other sites More sharing options...
Narratrr Posted April 27, 2021 Author Share Posted April 27, 2021 Its okay Jockerlight, but BanditEagle it has trouble working IGN: LastMC Discord: LastXD#7171 Rank: PRO Join date: Monday - December - 23rd - 2019 Link to comment Share on other sites More sharing options...
BanditEagle Posted April 27, 2021 Share Posted April 27, 2021 options: generateSecond: 5 seconds on first join: set {gen::balance::%uuid of player%} to 0 every {@generateSecond}: loop all players: set {_u} to uuid of loop-player loop blocks in radius 5 around loop-player: if loop-block is gold block: add 1 to {gen::balance::%{_u}%} command /money [<text>]: trigger: if arg-1 is not set: send “You have %{gen::balance::%uuid of player%}%$ in your bank.” send "Use /money take to get the money" else if arg-1 is "take": add {gen::balance::%uuid of player%} to balance of player else: send "&cUnder Development." something like this should work. If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot! Some Minehut Links: Server Rules • Staff Applications • News & Updates • Reports • Appeals Minehut: VIP (07/04/2021 --> Current)Elestra/Versa Realms: Manager (12/04/2021 --> Current) If you have any questions contact me!My Discord: BanditEagle#2481My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/My IGN: BanditEagle Link to comment Share on other sites More sharing options...
Narratrr Posted April 28, 2021 Author Share Posted April 28, 2021 It can't seem to understand, IGN: LastMC Discord: LastXD#7171 Rank: PRO Join date: Monday - December - 23rd - 2019 Link to comment Share on other sites More sharing options...
BanditEagle Posted April 28, 2021 Share Posted April 28, 2021 i know why.. im on mac so the quotation marks did the weird thingy.. send "You have %{gen::balance::%uuid of player%}%$ in your bank." put that in the code to replace the line with the error. If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot! Some Minehut Links: Server Rules • Staff Applications • News & Updates • Reports • Appeals Minehut: VIP (07/04/2021 --> Current)Elestra/Versa Realms: Manager (12/04/2021 --> Current) If you have any questions contact me!My Discord: BanditEagle#2481My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/My IGN: BanditEagle Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now