Boats in Lava

Discussion in 'Plugin Development' started by 22vortex22, Apr 16, 2014.

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

    22vortex22

    Hey guys so I was coding some stuff for my server and I was trying to make boats work on lava. I looked at some code that worked and I created this

    http://pastebin.com/CSg3rJJK

    Its not working for some reason and I would really love some help fixing it.
     
  2. Offline

    AoH_Ruthless

    22vortex22
    Fix what; what's the problem, exactly?
     
  3. Offline

    22vortex22



    They don't float on lava. They break instantly. I don't know..
     
  4. Offline

    AoH_Ruthless

    22vortex22
    Well thats a minecraft property that boats are flammable. Do some digging to see if you can get rid of that.
     
  5. Offline

    iTornado1234

    Don't know if this is possible, but couldn't you cancel the break event?
     
  6. Offline

    MordorKing78

  7. Did you check if an EntityDamageEvent fires for boat + lava ?

    Edit: More candidates: VehicleDamageEvent and EntityDamageByBlockEvent
     
    1. You didn't check if the item meta has a display name, could return a NullPointerException.
    2. "�7�lIron Boat" - What the hell? You can't even get those characters in an Anvil...
     
    TigerHix and asofold like this.
  8. I missed the code link - so the following applies:

    If you have NoCheatPlus, test with bypass permissions because NCP might prevent placing the boat there, might be worth a fix.(nocheatplus.checks.blockplace.boatsanywhere). [Edit: does not apply to your code, unless you change to ignoring cancelled events]
     
  9. Offline

    22vortex22

    I have a custom craft recipe and I Don't think you guys looked at the code since I cancelled all those events

    I do not have no cheat plus.

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

    jusjus112

    22vortex22
    Cancel the fire ticks from the boat?
     
  11. Offline

    22vortex22

    I cancelled the damage and combust event tho
     
  12. Offline

    jusjus112

    22vortex22
    Did you have set an velocity from the boat so that they not swim in the lava? So the velocity to 0.1
     
  13. Offline

    22vortex22

    I set the velocity to the normal boats and made it not sink on lava. Also players and boats shouldn't be able to combust.
     
  14. That custom craft recipe - you can't use those characters for item names can you? Again, check if item meta is null too.
     
  15. Offline

    22vortex22


    Those characters just make the name Bold and DarkGray.
     
  16. Err... it doesn't look like it... Use ChatColor.DARK_GRAY.toString() + ChatColor.BOLD.toString()
     
  17. Offline

    MrInspector

    I've never used anything like that, I just use good ol' ChatColor.
     
  18. Offline

    22vortex22


    First of all it would be ChatColor.DARK_GRAY + "" + ChatColor.BOLD + "Iron Boat" and also my way works too. However the name isn't the problem. And I added the thing to avoid NPEs.
     
  19. Offline

    RawCode

    your problem is lack of debug output and lack of source research.

    this is reason why you unable to undestand what actually happens with your lavaboat and why your lavaboat not working as you like.

    you dont ever trace your conditions...
     
  20. Offline

    22vortex22


    Thanks for your help....
     
  21. Offline

    Borlea

    Not to be mean, but hes telling you how to fix it without getting other peoples help. Debug messages help me a lot, if I have any issues debug messages always fix it.
     
  22. Offline

    22vortex22


    I understand and I have done that but I can't seem to find the issue.
     
  23. Offline

    RawCode

    you done nothing to fix issue self and asking forum members to waste time on you. 22vortex22

    i have valid fix right now, but i wont post it as long as you not posted code with valid debugging.
     
  24. Offline

    22vortex22


    Rawcode please don't do this me, I have debugged it in certain ways, I have send messages to check if the events are working properly and I can't find the problem. Could you please help me, you said you knew the fix. Could you tell me it so I can learn what I did wrong. I don't have much time during the day T.T
     
  25. I believe no one should help this kid, he's really arrogant and ignorant.

    No, you're incorrect for saying "First of all it would be". My way is the true way as it doesn't require adding a blank string, ChatColor's are converted into a string anyway. I'm not saying your way WON'T work, I'm saying my way is the true way. Please don't argue with someone with 10 plugins and two of which have over 140k downloads.

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

    22vortex22


    I know, what I said was wrong, I shouldn't have said it like that. I'm sorry please forgive me. I just want to get my code fixed :(
     
    KingFaris11 likes this.
  27. Offline

    itzrobotix

    Big headed much.
     
  28. Offline

    Tirelessly

    This is the second funniest thing I've seen today. You are a hypocrite and a loser.
     
  29. Sure. I was responding to him in a manner that he responds to everyone else, as you can see, he replies with:
    It's a way of speech.

    Read the above.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
Thread Status:
Not open for further replies.

Share This Page