Autopickup script and excluding a block from it

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

FireGreenWolf

Member
Jul 26, 2024
1
0
1
I am trying to make an autopickup script that will exclude a block from it I mean like it will not drop anything or tp to my inventory. any help will be appreciated.

this is what i have
  1. on block break:
    player's gamemode is not creative
    if event-block is orange glazed terracotta:
    clear drops
    cancel event
    wait 0.001 seconds
    set block at event-block to orange glazed terracotta
    give 1 orange dye named "&6Son Goku Essence" to player

    if event-block is green glazed terracotta:
    clear drops
    cancel event
    wait 0.001 seconds
    set block at event-block to green glazed terracotta
    give 1 green dye named "&2Goblin Essence" to player


    if event-block is black glazed terracotta:
    clear drops
    cancel event
    wait 0.001 seconds
    set block at event-block to black glazed terracotta
    give 1 red dye named "&4Devil Essence" to player


    if event-block is cyan glazed terracotta:
    clear drops
    cancel event
    wait 0.001 seconds
    set block at event-block to cyan glazed terracotta
    give 1 cyan dye named "&bSonic Essence" to player

    if event-block is diamond_ore:
    wait 0.001 seconds
    set block at event-block to diamond_ore

    if event-block is emerald_ore:
    wait 0.001 seconds
    set block at event-block to emerald_ore

    if event-block is gold_ore:
    wait 0.001 seconds
    set block at event-block to gold_ore

    if event-block is lapis_ore:
    wait 0.001 seconds
    set block at event-block to lapis_ore


    if event-block is redstone_ore:
    wait 0.001 seconds
    set block at event-block to redstone_ore

    if event-block is oak_log:
    wait 0.001 seconds
    set block at event-block to oak_log


    if event-block is coal_ore:
    wait 0.001 seconds
    set block at event-block to coal_ore

    if event-block is iron_ore:
    wait 0.001 seconds
    set block at event-block to iron_ore
 
Last edited: