#Help with auto compactor

1 messages · Page 1 of 1 (latest)

thin spear
#
options:
    item: player head with nbt from "{SkullOwner:{Id:[I;1017703177,-828423556,-2114930227,2005983341],Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvM2MxMWEwZDkwYzM3ZWI2OTVjOGE1MjNkODYwMWFhMWM4NWZhZDA5YTRkMjIzMmQwNGVkMjNhYzkwZTQzMjVjMiJ9fX0==""}]}}}" named "&bAuto Compactor"
    copper: raw copper
    gold: raw gold 
    iron: raw iron
    diamond: diamond
    emerald: emerald 
    coal: coal 
    lapis: lapis

on mine:
 if player has {@item}:
  if player has 9 {@copper}:
   give 1 of raw copper block to player
   remove 9 of {@copper} from player
  if player has 9 {@iron}:
   give 1 of raw iron block to player
   remove 9 of {@iron} from player
  if player has 9 {@gold}:
   give 1 of raw gold block to player
   remove 9 of {@gold} from player
  if player has 9 {@diamond}:
   give 1 of diamond block to player
   remove 9 of {@diamond} from player
  if player has 9 {@emerald}:
   give 1 of emerald block to player
   remove 9 of {@emerald} from player
  if player has 9 {@coal}:
   give 1 of coal block to player
   remove 9 of {@coal} from player
  if player has 9 {@lapis}:
   give 1 of lapis block to player
   remove 9 of {@lapis} from player

command /e:
 trigger: 
  give player head with nbt from "{SkullOwner:{Id:[I;1017703177,-828423556,-2114930227,2005983341],Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvM2MxMWEwZDkwYzM3ZWI2OTVjOGE1MjNkODYwMWFhMWM4NWZhZDA5YTRkMjIzMmQwNGVkMjNhYzkwZTQzMjVjMiJ9fX0==""}]}}}" named "&bAuto Compactor" with lore "&7While this item is in your &bInventory" and "&7this item will compact &bores into" and "&7blocks automaticly!" to player
#

idk why the thing dont work

#

it works

#

but like it doesnt keep up

#

with the stuff

#

like if i mine 1 lapis

#

it gives 7

#

then it gives 10 when i mine it after it gives 1

#

then i mine it again it goes to 37

#

then it gives 1 and removes 9 lapis

#

and i still left with 28