UnderscoreBaka Posted November 26, 2020 Share Posted November 26, 2020 Hello! I am the manager of the Minehut server Gens, we need developers! Pls. https://forms.gle/jJMn1g4Epy1bC3Cb8 Thanks! Link to comment Share on other sites More sharing options...
cosnorted Posted November 27, 2020 Share Posted November 27, 2020 heres a free skript for gens: #-------------------Coal Gen------------------------- every 5 seconds: loop all players: loop all blocks in radius 50 around loop-player: if loop-block is coal_block: drop a paper named "&a$1" at loop-block's position on right click: if player's tool is paper: if name of player's tool is "&a$1": command "eco give %player% 1" remove 1 of paper named "&a$1" from player's inventory on block damage: event-block is coal block: {gen::%event-block%::owner} is player: set block to air give player coal block named "&b&lCoal Generator" play sound "firework.launch" with volume 10 and pitch 1 to player send action bar "&7Picked up | &6Coal Gen" to player remove 1 from {gens::%player%::count} #-------------------Iron Gen------------------------- every 5 seconds: loop all players: loop all blocks in radius 50 around loop-player: if loop-block is iron_block: drop a paper named "&a$5" at loop-block's position on right click: if player's tool is paper: if name of player's tool is "&a$5": command "eco give %player% 5" remove 1 of paper named "&a$5" from player's inventory on block damage: event-block is iron block: {gen::%event-block%::owner} is player: set block to air give player iron block named "&b&lIron Generator" play sound "firework.launch" with volume 10 and pitch 1 to player send action bar "&7Picked up | &6Iron Gen" to player remove 1 from {gens::%player%::count} #-------------------Gold Gen------------------------- every 5 seconds: loop all players: loop all blocks in radius 50 around loop-player: if loop-block is gold_block: drop a paper named "&a$10" at loop-block's position on right click: if player's tool is paper: if name of player's tool is "&a$10": command "eco give %player% 10" remove 1 of paper named "&a$10" from player's inventory on block damage: event-block is gold block: {gen::%event-block%::owner} is player: set block to air give player gold block named "&b&lGold Generator" play sound "firework.launch" with volume 10 and pitch 1 to player send action bar "&7Picked up | &6Gold Gen" to player remove 1 from {gens::%player%::count} #-------------------Diamond Gen------------------------- every 5 seconds: loop all players: loop all blocks in radius 50 around loop-player: if loop-block is diamond_block: drop a paper named "&a$25" at loop-block's position on right click: if player's tool is paper: if name of player's tool is "&a$25": command "eco give %player% 25" remove 1 of paper named "&a$25" from player's inventory on block damage: event-block is diamond block: {gen::%event-block%::owner} is player: set block to air give player diamond block named "&b&lDiamond Generator" play sound "firework.launch" with volume 10 and pitch 1 to player send action bar "&7Picked up | &6Diamond Gen" to player remove 1 from {gens::%player%::count} #-------------------Emerald Gen------------------------- every 5 seconds: loop all players: loop all blocks in radius 50 around loop-player: if loop-block is emerald_block: drop a paper named "&a$50" at loop-block's position on right click: if player's tool is paper: if name of player's tool is "&a$50": command "eco give %player% 50" remove 1 of paper named "&a$50" from player's inventory on block damage: event-block is emerald block: {gen::%event-block%::owner} is player: set block to air give player emerald block named "&b&lEmerald Generator" play sound "firework.launch" with volume 10 and pitch 1 to player send action bar "&7Picked up | &6Emerald Gen" to player remove 1 from {gens::%player%::count} #-------------------Netherite Gen------------------------- every 5 seconds: loop all players: loop all blocks in radius 50 around loop-player: if loop-block is netherite_block: drop a paper named "&a$100" at loop-block's position on right click: if player's tool is paper: if name of player's tool is "&a$100": command "eco give %player% 100" remove 1 of paper named "&a$100" from player's inventory on block damage: event-block is netherite block: {gen::%event-block%::owner} is player: set block to air give player netherite block named "&b&lNetherite Generator" play sound "firework.launch" with volume 10 and pitch 1 to player send action bar "&7Picked up | &6Netherite Gen" to player remove 1 from {gens::%player%::count} #-------------------Ownership------------------------- on place: event-block is coal block: if {gens::%player%::count} < 51: add 1 to {gens::%player%::count} add location of event-block to {gens::%player%::locations} set {gen::%event-block%::owner} to player else: send "&b&l You Have Reached Max Gens!" to player cancel event on place: event-block is iron block: if {gens::%player%::count} < 51: add 1 to {gens::%player%::count} add location of event-block to {gens::%player%::locations} set {gen::%event-block%::owner} to player else: send "&b&l You Have Reached Max Gens!" to player cancel event on place: event-block is gold block: if {gens::%player%::count} < 51: add 1 to {gens::%player%::count} add location of event-block to {gens::%player%::locations} set {gen::%event-block%::owner} to player else: send "&b&l You Have Reached Max Gens!" to player cancel event on place: event-block is diamond block: if {gens::%player%::count} < 51: add 1 to {gens::%player%::count} add location of event-block to {gens::%player%::locations} set {gen::%event-block%::owner} to player else: send "&b&l You Have Reached Max Gens!" to player cancel event on place: event-block is emerald block: if {gens::%player%::count} < 51: add 1 to {gens::%player%::count} add location of event-block to {gens::%player%::locations} set {gen::%event-block%::owner} to player else: send "&b&l You Have Reached Max Gens!" to player cancel event on place: event-block is netherite block: if {gens::%player%::count} < 51: add 1 to {gens::%player%::count} add location of event-block to {gens::%player%::locations} set {gen::%event-block%::owner} to player else: send "&b&l You Have Reached Max Gens!" to player cancel event #---------------------------------------Commands------------------------------------ command /gencap [<player>] [<text>]: permission: gencap.use trigger: if arg-1 is set: if arg-2 is "reset": set {gens::%player%::count} to 0 send "&cYou have just reset %arg-1%&c's gen cap!" to player #----------------------------------------------Balance------------------------------------------------------ on first join: command "eco give %player% 100" command "gencap %player% reset" Link to comment Share on other sites More sharing options...
kegnh Posted November 27, 2020 Share Posted November 27, 2020 oh god, that is the laggiest piece of skipt i have every seen... LOOPING ALL BLOCKS IN RADIUS 50! EVERY FIVE SECONDS?!?!!?!??!?! Minecraft Ranks[DEFAULT] - 9th October 2020[PRO] - 21st November 2020[PATRON] - 27th October 2021 Proficiency Python - 8 Years C/C++ - 5 Years Skript - 4 Years Javascript - 3 Year Java - 1 Year Links Discord - kegnh#1234 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