Jump to content

Error with autocompressor skript please help


MAxiMo5667

Recommended Posts

what's the error you are getting? and first of all when you are looping all players for that its useless you should change it to something like that 

# lets say its a cobblestone compressor

on break:
  if player's inventory contains 64 cobblestone:
    remove 64 cobblestone from player's inventory
    give player 1 (your item) named "Compressed Cobblestone"

# you can make it with a command aswell 
 
command /autocompress:
  permission: your.permission
  trigger:
    if {autocompress.%player's uuid%} is false:
      set {autocompress.%player's uuid%} to true
      send "You toggled your auto compressor!"
     else:
       set {autocompress.%player's uid%} to false
       send "You toggled your autocompressor off!"
       
# now the on break for auto compressor command

on break:
  if player's inventory contains 64 cobblestone:
    if {autocompress.%player's uuid%} is true:
      remove 64 cobblestone from player's inventory
      give player 1 (your item) named "Compressed Cobblestone"

i can suggest that if you want something simple

Link to comment
Share on other sites

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