[TUTORIAL|EASY] How to make a custom drop

Discussion in 'Resources' started by hawkfalcon, Jun 3, 2012.

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

    hawkfalcon

  2. Offline

    KeybordPiano459

  3. Offline

    hawkfalcon

    [​IMG]
    Anyways, I should update this w/ your code
     
  4. Offline

    hawkfalcon

  5. Offline

    KeybordPiano459

  6. Offline

    CubieX

    Has anyone tested this?
    Because for me it does not work at all.

    Is setting a custom drop really possible without a "setDrops()" method?
    Because from waht I see here, "getDrops().clear()" or "getDrops().add(...)" will only modify the returned collection, but not be applied to the block again.
     
  7. Offline

    hawkfalcon

    no, doesn't seem to work anymore. :-p
     
  8. Offline

    jb_aero

    Kinda funny, the game is about mining and building, you'd think affecting drops would be the most important feature of the api. It's amazing how many new gameplay options have been created by plugins in light of not having a pattern-fitting method of changing the basic features.

    PS you should change it back to the old cancel-then-set-air method if clear-add doesn't work so as not to confuse new devs

    PSS congrats on staff, never noticed until now
     
  9. Offline

    hawkfalcon

    Not entirely sure what you mean by the first part.
    You can see https://github.com/hawkfalcon/Melon.../MelonSeedsFromGrass/MelonSeedsFromGrass.java how to do this, and sure I'll update the post :p
    Thanks :)
     
  10. Offline

    stirante

    hawkfalcon Only problem is that ignores all protection plugins like worldGuard.
     
  11. Offline

    hawkfalcon

    Then do ignorecancelled.
     
  12. Offline

    stirante

    hawkfalcon likes this.
  13. Offline

    hawkfalcon

    Protection plugins should listen on MONITOR. Which would bypass this. :-p
     
Thread Status:
Not open for further replies.

Share This Page