[REQUEST][REQUEST] new way to do this please help (no one has done this yet) [sand break]

Discussion in 'Archived: Plugin Requests' started by xguysprison, Jul 6, 2014.

  1. Offline

    xguysprison

    timtower in factions you use a hybrid cannon ( if you dont know what a hybrid cannon is then watch this ) so if i use his plugin tnt cant blow up in water wile its in sand (so hybrid cannons wont work with hes plugin )
     
  2. Offline

    daavko

    xguysprison Noooope, that link doesn't help at all, because we can't detect when it moves. We could make a Runnable which checks every tick for every falling block entity, check if y > 255, but that would kill your server.
     
  3. Offline

    xguysprison

    daavko how about this (Bestle owner of a server said this)



    "Roof cannons made an appearance during the latter part of map 5 and have decimated some of the best defended bases out there. Whilst I will not be removing the ability to use these cannons, the ability for sand/gravel to turn into a solid block at Y255 will be removed. This should mean that your base is defended from above if you have a water-covered roof at max buildable height."

    i hope you can do it on this way ?
     
  4. Offline

    timtower Administrator Administrator Moderator

  5. Offline

    xguysprison

    please highlight it so you can read it
     
  6. Offline

    timtower Administrator Administrator Moderator

    xguysprison Please edit color and font type so we can read it
     
  7. Offline

    xguysprison

    daavko timtower its fixed

    "Roof cannons made an appearance during the latter part of map 5 and have decimated some of the best defended bases out there. Whilst I will not be removing the ability to use these cannons, the ability for sand/gravel to turn into a solid block at Y255 will be removed. This should mean that your base is defended from above if you have a water-covered roof at max buildable height."

    i hope you can do it on this way ?

    re eddited the request so it is understandable and possible

    @Zupsub i know that you tried this before where it was impossible whoud you give it another try ?

    @daavko @timtower you guys just ignoring it now ?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  8. Offline

    timtower Administrator Administrator Moderator

    xguysprison We aren't always active. Do remember that.
    And please don't triple post / fast bump.
     
  9. Offline

    xguysprison

    timtower ok im sorry but can you please consider doing this if you can do it now ? as it is a new way ?

    the new way is What I want: the ability for sand/gravel to turn into a solid block at Y255 to be removed
     
  10. Offline

    timtower Administrator Administrator Moderator

    xguysprison If I get to my laptop in about 20 minutes then I might take a look. Don't get your hopes up though.
     
  11. Offline

    xguysprison

    timtower thx tho ill keep my hopes up
     
  12. Offline

    Zupsub

    Well, I don't know whether there exist an Event for that case, if somebody knows, this plugin would be easily done.

    Maybe I have an idea. Don't know whether it will let the server lagg. Will try it tomorrow.
     
  13. Offline

    xguysprison

    Last edited by a moderator: Jun 9, 2016
  14. Offline

    Geekxboy

    xguysprison maybe next time say you want hybrid cannons to work. My impression was that you just didnt want tnt to blowup while in water
     
    timtower likes this.
  15. Offline

    xguysprison

    Geekxboy oh im sorry but can you do this ?
     
  16. Offline

    Geekxboy

    I can but its gonna get laggy since there is no way to check for entity movement
     
  17. Offline

    xguysprison

    Last edited by a moderator: Jun 9, 2016
  18. Offline

    daavko

    What xguysprison means: Cancel EntityChangeBlockEvent if entity is FallingBlock and its material is sand or gravel.
     
  19. Offline

    kxpeep93

    daavko thanks lol didn't quite get what he was saying
     
  20. Offline

    xguysprison

    kxpeep93 you wanna do this ? please please please
     
  21. Offline

    Geekxboy

    Finished it for you
    Download Link

    There is also a configuration to set at which level you want the block/entity to "break"
     
    OrangeGuy likes this.
  22. Offline

    matagin

    Works but causes sand to break when hitting a piston or cobweb I believe.
     
  23. Offline

    ThePluginMaker

    Geekxboy
    Yeah sand instantly breaks when it falls on a piston, no idea why. could you fix it, kinda ruins the point of hybrids if that is the case
    EDIT: nvm sand just breaks instantly when i place it down as in when it falls, the config says 255
    EDIT2: Nvm sand breaks at 201+ Y when it falls, but the config says 255, also in your plugins (i decompiled it this is what it says)
    Code:java
    1. if ((eType == EntityType.FALLING_BLOCK) && (loc.getBlockY() >= 200)) { entity.remove();
    so that's just saying it's going to be 200, no matter what.
    Change the 200 to RemoveAt
    EDIT3: Well i edited your plugin and changed the 200 to 254, and well if i place a sand at 254+ it'll break if it falls, but if i shoot the sand up with tnt and it goes above 254 it will not break
     
  24. Offline

    Geekxboy

    1) Yes, I forgot to upload the corrected version with changing 200 to RemoveAt. Corrected version: Download Link
    2) If its not working then you broke the code when you decompiled it, I've tested it multiple times and I haven't had any issues with it.
     
  25. Offline

    ThePluginMaker

    Geekxboy
    This video shows what's wrong, this is the newest download link you gave me above.
     
  26. Offline

    Geekxboy

  27. Offline

    ThePluginMaker

  28. Offline

    ThePluginMaker

  29. Offline

    Geekxboy

    ThePluginMaker
    2 things
    1) Don't bump within 24 hours
    2) Have you ever thought that maybe some of us have lives outside Bukkit and Minecraft and can't work on plugins 24/7? So don't be rude and assume we have all this free time to do free work for you.
     
    timtower likes this.
  30. Offline

    matagin

    @Geekxboy I appreciate your hard work on this. It really helps a lot of factions/raiding servers. Thank you!
     
    ThePluginMaker likes this.

Share This Page