Jump to content

cosnorted

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by cosnorted

  1. 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"
      
     

×
×
  • Create New...