Filled Simple Item Spawner

Discussion in 'Plugin Requests' started by user_91250433, Aug 23, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    user_91250433

    Minecraft version: 1.13
    Suggested name: Drop Item
    What I want: I want simple plugin that can spawn dropped items.
    Commands: None

    config.yml

    //copy, paste below and edit code to spawn another item
    spawn:
    enable: true
    item: IDHere
    amount: number here (it stacks)
    rate: how often item spawns (in minutes)
    X: coords here
    Y: coords here
    Z: coords here
     
  2. Offline

    KarimAKL

    I hope this works for you: https://www.dropbox.com/s/neoo594nxrmm32n/DropItem.jar?dl=0
    If not then could you explain a little more?
     
  3. Offline

    user_91250433

  4. Offline

    KarimAKL

  5. Offline

    user_91250433

    @KarimAKL

    Spawn:
    Enabled: true
    Item: 270
    Amount: 1
    Rate: 1
    X: -223.495
    Y: 68.00000
    Z: -132.474


    I tried with wooden_axe also.
     
  6. Offline

    KarimAKL

    Don't use ID, i just tested for wooden pickaxe and it seems you need to use "wood_pickaxe". :7
     
  7. Offline

    user_91250433

  8. Offline

    KarimAKL

    It works for me, this is my config:
    Code:
    Spawn:
      Enabled: true
      Item: wood_pickaxe
      Amount: 1
      Rate: 1
      X: 0.0
      Y: 0.0
      Z: 0.0
     
  9. Offline

    user_91250433

    @KarimAKL
    Thank you very much! it works perfectly now.
    PlugMate plugin didn't load it correctly i think :D
     
  10. Offline

    KarimAKL

    Glad to know it works. :) Remember to set the title prefix to “Filled”. You can set the title prefix by looking right above the original post to the right and you should see “Thread Tools”, hover over or press that and you should see “Edit Title” press that and you should be able to set the title prefix.
     
  11. Offline

    user_91250433

    @KarimAKL
    Okay,
    Can i add more items somehow?
    I tried copying config, but it didnt work.
     
  12. Offline

    KarimAKL

    I only made the config like you made in the original post, when i’m back at my computer i’ll look at making lists for it. :)
     
  13. Offline

    user_91250433

    Hey, @KarimAKL
    Maybe i can simply duplicate this plugin somehow?
     
  14. Offline

    KarimAKL

    No, i've updated the plugin to work with lists, download it here: https://www.dropbox.com/s/neoo594nxrmm32n/DropItem.jar?dl=0
    New config:
    Code:
    # Example of adding items:
    # - "diamond : 37 : 1 : 0.0 : 0.0 : 0.0"
    # This would drop 37 diamonds every minute at location X0.0 Y0.0 Z0.0
    # The way this works is that first you write the item, then the amount
    # then the rate in which it drops and then the location by X, Y, Z
    # Note: It's important that you remember to add space in between the ':'
    
    Spawn:
      Enabled: true
      Items:
        - "diamond : 37 : 1 : 0.0 : 0.0 : 0.0"
    The config explains how to add new items.
    This might not be the most effecient way to do this but it works. :7
     
  15. Offline

    user_91250433

    @KarimAKL
    I gotta say it is amazing!!
    It is easy to use, lightweight and I didn't see any bug.
    And even better that you changed how config works, it takes less space this way :)
     
  16. Offline

    KarimAKL

    Glad to know it's to your liking. :)
     
  17. Offline

    user_91250433

    @KarimAKL
    Can you please add another line in config which indicates world?
    Right now it spawns in every world.
     
    Last edited by a moderator: Sep 9, 2018
  18. Offline

    KarimAKL

  19. Offline

    user_91250433

    @KarimAKL
    Thanks! Now it is just perfect.
     
  20. Offline

    user_91250433

    @KarimAKL
    Hey, i wonder if it's possible to make it so these items never despawn and do not spawn if one is already spawned.
    Problem i'm currently having is that there are many of these items on the ground. And sometimes there is no item at all.
    I have set them to spawn every 10 minutes, I even tried to lower despawn rate a bit, but it didn't help.
     
    Last edited by a moderator: Sep 21, 2018
  21. Offline

    KarimAKL

    I’m not at my computer at the moment but i’ll look at it when i’m back.
     
  22. Offline

    user_91250433

    Ok, ty
    Basically I want the item to be on the ground all the time, once someone takes it or it is just not there it starts counting and spawns item again after configured time.
    Just wanted to explain. :)
     
  23. Offline

    KarimAKL

  24. Offline

    user_91250433

    @KarimAKL
    hey, seems to be working, need more time to test it complately. Thanks!

    Edit:
    There is one problem.
    Items that are dropped by player and are on this plugin list never dissappear.
    Tbh that's ok ill keep using previous one, i have set it to spawn items after 20mins hope this will work.
     
    Last edited by a moderator: Sep 25, 2018
Thread Status:
Not open for further replies.

Share This Page