#somoen pls help with auto pickup

1 messages · Page 1 of 1 (latest)

strange fiber
#

i cant send it

#

sed

#
options:
  spawn_region: spawn


command /autopickup:
  trigger:

    if player is in region {options.spawn_region}:
      if {autopickup.%player%} is true:

        set {autopickup.%player%} to false
        send "&cAutopickup disabled!" to player
      else:

        set {autopickup.%player%} to true
        send "&aAutopickup enabled!" to player
    else:
      send "&cYou must be in the 'spawn' region to use this command." to player


on block break:

  if {autopickup.%player%} is true:
 
    if player is in region {options.spawn_region}:

      give player the broken block
      send "&aYou have automatically picked up the block!" to player
    else:
 
      set {autopickup.%player%} to false
      send "&cAutopickup disabled because you left the spawn region!" to player


      on move:
  if player is in region "spawn":
  
    if {autopickup.%player%} is false:
      send "&aYou can now use /autopickup to enable the feature." to player
  else:
   
    if {autopickup.%player%} is true:
      set {autopickup.%player%} to false
      send "&cAutopickup disabled because you left the spawn region!" to player