Jump to content

Recommended Posts

Posted

i Made this easy auto compressor skript since most of yall are asking for it!

# Skript By GhostV2 On Youtube
# Subscribe For More Tutorials

on mine of oak wood:
    if player is holding conduit named "&6Wood Auto Compressor" in off hand:
        set {amountWood} to amount of oak wood in player's inventory
        loop {amountWood} / 32 times:
            remove 32 oak wood from player's inventory
            set {Wood} to glowing stripped oak wood named "&6Compressed Wood"
            add {Wood} to player's inventory

on mine of stone:
    if player is holding conduit named "&7Stone Auto Compressor" in off hand:
        set {amountStone} to amount of cobblestone in player's inventory
        loop {amountStone} / 32 times:
            remove 32 cobblestone from player's inventory
            set {Stone} to glowing stone named "&7Compressed Stone"
            add {Stone} to player's inventory

on mine of coal ore:
    if player is holding conduit named "&8Coal Auto Compressor" in off hand:
        set {amountCoal} to amount of coal in player's inventory
        loop {amountCoal} / 32 times:
            remove 32 coal from player's inventory
            set {Coal} to glowing coal block named "&8Compressed Coal"
            add {Coal} to player's inventory
            
on mine of copper ore:
    if player is holding conduit named "&6Copper Auto Compressor" in off hand:
        set {amountCopper} to amount of raw copper in player's inventory
        loop {amountCopper} / 32 times:
            remove 32 raw copper from player's inventory
            set {Copper} to glowing copper block named "&6Compressed Copper"
            add {Copper} to player's inventory

on mine of iron ore:
    if player is holding conduit named "&fIron Auto Compressor" in off hand:
        set {amountIron} to amount of raw iron in player's inventory
        loop {amountIron} / 32 times:
            remove 32 raw iron from player's inventory
            set {Iron} to glowing iron block named "&fCompressed Iron"
            add {Iron} to player's inventory

on mine of lapis lazuli ore:
    if player is holding conduit named "&9Lapis Auto Compressor" in off hand:
        set {amountLapis} to amount of lapis lazuli in player's inventory
        loop {amountLapis} / 32 times:
            remove 32 lapis lazuli  from player's inventory
            set {Lapis} to glowing lapis lazuli block named "&9Compressed Lapis"
            add {Lapis} to player's inventory
            
on mine of redstone ore:
    if player is holding conduit named "&cRedstone Auto Compressor" in off hand:
        set {amountRedstone} to amount of redstone dust in player's inventory
        loop {amountRedstone} / 32 times:
            remove 32 redstone dust from player's inventory
            set {Redstone} to glowing redstone block named "&cCompressed Redstone"
            add {Redstone} to player's inventory

on mine of emerald ore:
    if player is holding conduit named "&aEmerald Auto Compressor" in off hand:
        set {amountEmerald} to amount of emeralds in player's inventory
        loop {amountEmerald} / 32 times:
            remove 32 emeralds from player's inventory
            set {Emerald} to glowing emerald block named "&aCompressed Emerald"
            add {Emerald} to player's inventory

on mine of diamond ore:
    if player is holding conduit named "&bDiamond Auto Compressor" in off hand:
        set {amountDiamond} to amount of diamonds in player's inventory
        loop {amountDiamond} / 32 times:
            remove 32 diamonds from player's inventory
            set {Diamond} to glowing diamond block named "&bCompressed Diamond"
            add {Diamond} to player's inventory

command /allcompressor:
    trigger:
        give player conduit named "&6Wood Auto Compressor"
        give player conduit named "&7Stone Auto Compressor"
        give player conduit named "&8Coal Auto Compressor"
        give player conduit named "&6Copper Auto Compressor"
        give player conduit named "&fIron Auto Compressor"
        give player conduit named "&9Lapis Auto Compressor"
        give player conduit named "&cRedstone Auto Compressor"
        give player conduit named "&aEmerald Auto Compressor"
        give player conduit named "&bDiamond Auto Compressor"
        
command /woodcompressor:
    trigger:
        give player conduit named "&6Wood Auto Compressor"

command /stonecompressor:
    trigger:
        give player conduit named "&7Stone Auto Compressor"

command /coalcompressor:
    trigger:
        give player conduit named "&8Coal Auto Compressor"

command /coppercompressor:
    trigger:
        give player conduit named "&6Copper Auto Compressor"

command /ironcompressor:
    trigger:
        give player conduit named "&fIron Auto Compressor"

command /lapiscompressor:
    trigger:
        give player conduit named "&9Lapis Auto Compressor"

command /redstonecompressor:
    trigger:
        give player conduit named "&cRedstone Auto Compressor"

command /emeraldcompressor:
    trigger:
        give player conduit named "&aEmerald Auto Compressor"

command /diamondcompressor:
    trigger:
        give player conduit named "&bDiamond Auto Compressor"

Posted

on mine of oak wood:
 player is holding conduit named "&6Wood Auto Compressor" in off hand
 set {_amountWood} to amount of oak wood in player's inventory
 loop {_amountWood} / 32 times:
  remove 32 oak wood from player
  give player glowing stripped oak wood named "&6Compressed Wood"
on mine of stone:
 player is holding conduit named "&7Stone Auto Compressor" in off hand
 set {_amountStone} to amount of cobblestone in player's inventory
 loop {_amountStone} / 32 times:
  remove 32 cobblestone from player
  give player to glowing stone named "&7Compressed Stone"
on mine of coal ore:
 player is holding conduit named "&8Coal Auto Compressor" in off hand
 set {_amountCoal} to amount of coal in player's inventory
 loop {_amountCoal} / 32 times:
  remove 32 coal from player
  set {Coal} to glowing coal block named "&8Compressed Coal"
on mine of copper ore:
 player is holding conduit named "&6Copper Auto Compressor" in off hand
 set {_amountCopper} to amount of raw copper in player's inventory
 loop {_amountCopper} / 32 times:
  remove 32 raw copper from player
  give player glowing copper block named "&6Compressed Copper"
on mine of iron ore:
 player is holding conduit named "&fIron Auto Compressor" in off hand
 set {_amountIron} to amount of raw iron in player's inventory
 loop {_amountIron} / 32 times:
  remove 32 raw iron from player
  give player glowing iron block named "&fCompressed Iron"
on mine of lapis lazuli ore:
 player is holding conduit named "&9Lapis Auto Compressor" in off hand
 set {_amountLapis} to amount of lapis lazuli in player's inventory
 loop {_amountLapis} / 32 times:
  remove 32 lapis lazuli  from player
  give player glowing lapis lazuli block named "&9Compressed Lapis"
on mine of redstone ore:
 player is holding conduit named "&cRedstone Auto Compressor" in off hand
 set {_amountRedstone} to amount of redstone dust in player's inventory
 loop {_amountRedstone} / 32 times:
  remove 32 redstone dust from player
  give player glowing redstone block named "&cCompressed Redstone"
on mine of emerald ore:
 player is holding conduit named "&aEmerald Auto Compressor" in off hand
 set {_amountEmerald} to amount of emeralds in player's inventory
 loop {_amountEmerald} / 32 times:
  remove 32 emeralds from player
  give player glowing emerald block named "&aCompressed Emerald"
on mine of diamond ore:
 player is holding conduit named "&bDiamond Auto Compressor" in off hand
 set {_amountDiamond} to amount of diamonds in player's inventory
 loop {_amountDiamond} / 32 times:
  remove 32 diamonds from player
  give player glowing diamond block named "&bCompressed Diamond"
command allcompressor:
 trigger:
  give player conduit named "&6Wood Auto Compressor"
  give player conduit named "&7Stone Auto Compressor"
  give player conduit named "&8Coal Auto Compressor"
  give player conduit named "&6Copper Auto Compressor"
  give player conduit named "&fIron Auto Compressor"
  give player conduit named "&9Lapis Auto Compressor"
  give player conduit named "&cRedstone Auto Compressor"
  give player conduit named "&aEmerald Auto Compressor"
  give player conduit named "&bDiamond Auto Compressor"

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...