Confused how to list items to be cleared, custom trigger. #284


  • New
Open
  • 374895305g603 created this issue Dec 24, 2020

    I'm trying to set a custom trigger to automatically delete certain items every x minutes. The problem is when I list items to be deleted, it doesn't delete them. 

     

    I successfully created a trigger to automatically delete mobs, but it does not work for items. 

    The below config will only delete dirt. It will ignore stone.
    How am I supposed to be listing items to delete?
    Is there a way to count how many items were deleted?
    I've looked around for possible solutions but I can't find any sort of documentation for custom triggers except this bukkit page, which is not very helpful for this issue.

    --The config--

    settings:
      language: English
      auto-update: false
    auto-removal:
      enabled: false
    custom-trigger-removal:
        enabled: true
        triggers:
            ClearMobInterval:
                trigger-type: tps-trigger
                run-interval: 120
                tps-trigger: 20
                tps-recover: 1
                jobs:
                    entity-clearer:
                        execute-job-time: 60
                        warnings:
                            - 'time:1 msg:&6[ClearLag] Clearing hostile mobs in 60 seconds.'
                            - 'time:60 msg:&6[ClearLag] &4Hostile mobs cleared.'
                        remove-entities:
                            - zombie !hasName liveTime=60
                            - skeleton !hasName liveTime=60
                            - enderman !hasName liveTime=60
                            - creeper !hasName liveTime=60
                            - spider !hasName liveTime=60
                            - husk !hasName liveTime=60
                            - stray !hasName liveTime=60
                            - blaze !hasName liveTime=60
                            - silverfish !hasName liveTime=60
                            - witch !hasName liveTime=60
                            - cave_spider !hasName liveTime=60
                            - zombified_piglin !hasName liveTime=60
                            - phantom !hasName liveTime=60
                            - hoglin !hasName liveTime=60
                            - slime !hasName liveTime=60
                            - ghast !hasName liveTime=60<br /># Everything above works fine. Below is where the issues are.
                            
            ClearItemInterval:
                trigger-type: entity-limit-trigger
                run-interval: 1<br />#Time set to one for testing. It's still broken at longer times.
                limit: 1
                entity-limits:
                    - item
                jobs:
                    entity-clearer:
                        #-job-time: 10
                        #warnings:
                           # - 'time:1 msg:&amp;6[ClearLag] Clearing ground items in 60 seconds.'
                           # - 'time:10 msg:&amp;6[ClearLag] &amp;4Ground items cleared.'<br />#Removed warnings for testing
                        remove-entities: 
                            - item id=stone
                            - item id=dirt

     

     

     

  • 374895305g603 added a tag New Dec 24, 2020

To post a comment, please login or register a new account.