Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Discussion Xray

Comments in 'General Discussion' started by predawnia, Dec 31, 2014.

  1. predawnia
    Offline

    predawnia Active Member

    Joined:
    Dec 23, 2014
    Posts:
    167
    Minecraft User:
    GhostSpex
    Is it possible for people using BlockLauncher and a xray mod to Xray the world in a Pocket Mine server?
    Junhua likes this.
  2. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    If the Xray mod exists, why not? ;)
    Last edited: Dec 31, 2014
    iksaku and xFlare like this.
  3. hoyinm14mc
    Offline

    hoyinm14mc Notable Member Plugin Developer

    Joined:
    Jun 4, 2014
    Posts:
    502
    Plugins:
    9
    Minecraft User:
    hoyinm14mc
    Then make an anti xray plugin
  4. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    It's impossible to do. Plugins can't detect clients mods
    iksaku likes this.
  5. hoyinm14mc
    Offline

    hoyinm14mc Notable Member Plugin Developer

    Joined:
    Jun 4, 2014
    Posts:
    502
    Plugins:
    9
    Minecraft User:
    hoyinm14mc
    Just joking:p
    (PS: Why dont ModPE scripts be writen in PHP :(
    EvolSoft likes this.
  6. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    Ah ok xD
  7. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Yep, just really impractical. You could run a thread which scans chunks and fills in blocks that players can't see with solid diamond or something, it would then push these to players every few ticks. It would be a huge drain on performance and would be a challenge to write in a pretty way.
  8. Exxarion
    Offline

    Exxarion Active Member Plugin Developer

    Joined:
    Jan 5, 2014
    Posts:
    242
    Plugins:
    1
    Minecraft User:
    Notch
    And it would be time consuming :p
  9. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    The writing of it would, the process would be multithreaded and could have a pool of workers rendering changes needed to individual chunks, so it could be quite fast.
  10. ProjectInfinity
    Offline

    ProjectInfinity Active Member Plugin Developer

    Joined:
    Sep 7, 2014
    Posts:
    112
    Plugins:
    3
    Minecraft User:
    ProjectInfinity
    Look at Spigot's built in anti-xray. It is quite decent, performance hit is justifiable, not too bad.
    iksaku likes this.
  11. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Yes but challenging. The other so-called anti-xray plugins just report how many ores players find in a period of time without actually preventing it. I attempted it before but I failed.

    Actually we could make it replace all ores with stones and send them when there are air blocks near them, or when players walk near enough. But how you replace is the problem - will they be restored when the plugin is disabled, do you edit FullChunkDataPacket to hide or do you setBlock() directly, etc....
  12. ProjectInfinity
    Offline

    ProjectInfinity Active Member Plugin Developer

    Joined:
    Sep 7, 2014
    Posts:
    112
    Plugins:
    3
    Minecraft User:
    ProjectInfinity
    You don't set. I have read many horror stories regarding anti-xray plugins that sets blocks. It ended up with a map devoid of diamonds.
    Falk likes this.
  13. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Only if the plugin doesn't handle onEnable() and onDisable() properly.
  14. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    I think it would be possible to modify the outgoing chunks (and block sets), removing diamonds and other ores. Then every few ticks you would run an AsyncTask which would look for ores around players, and then send updated chunks to those players. That way the world looks normal to other plugins.
  15. ProjectInfinity
    Offline

    ProjectInfinity Active Member Plugin Developer

    Joined:
    Sep 7, 2014
    Posts:
    112
    Plugins:
    3
    Minecraft User:
    ProjectInfinity
    What if the server crashes?
  16. shoghicp
    Offline

    shoghicp Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    433
    Plugins:
    14
    Minecraft User:
    shoghicp
    @ProjectInfinity chunks are modified on the fly, before being sent. That way the chunks in disk/memory are not changed
    hoyinm14mc, Falk and iksaku like this.
  17. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    And pain with race conditions.
  18. Samueljh1
    Offline

    Samueljh1 Active Member Plugin Developer

    Joined:
    Jan 9, 2015
    Posts:
    316
    Plugins:
    5
    Minecraft User:
    Samueljh1_
    Lol i used an x-ray mod once, but for some reason all the ores except from diamond were there! LOL

Share This Page

Advertisement