Re-Enable the Glowstone Glitch

Discussion in 'Archived: Plugin Requests' started by LordDarthBob, Apr 4, 2014.

  1. Offline

    LordDarthBob

    Plugin Category: Mechanics

    Suggested Plugin Name: OnceAgainUsefulGlowstone (O.A.U.G)

    What I want: In minecraft pre-1.7, sitting inside of a glowstone block or TNT would allow you to see through adjacent blocks, sort of like a form of x-ray. This was used in a minigame of mine, and I dislike the fact that this no longer works at all, as you simply see the block's own texture displayed on both sides of the object's 6 faces.

    If it's client side, then there's nothing you can do.
    However, if this is something related to servers or packets, you can pretty much just cancel whatever device they added to stop that.

    When I want it: Sooner rather than later?
     
  2. Offline

    thepluginbros

    I think it's client side texture change :/
     
  3. Offline

    LordDarthBob

    N3rdFall
    Well, thanks for responding. I guess I can just modify minecraft.jar
     
  4. Offline

    Kiaeyi

    Did they fix this with red stone blocks too?
     
  5. Offline

    LordDarthBob

    thepluginbros N3rdFall Kiaeyi
    I just discovered something weird.



    The client takes time to update the block, possibly because it has to identify that it is inside of the block. Is there any way to use this to achieve the desired effect? Such as misinforming the client of it's position when inside of the block?
     
  6. Offline

    thepluginbros

    You could time how long it does take to update the block and then replace the block after the time the client updates the block?
     
  7. Offline

    LordDarthBob

    thepluginbros
    Maybe, but it would take some testing to find out exactly how Mojang is registering this with the client. The fact that it does have some lag in figuring out stuff, and it still to some degree works if you keep hopping, give me hope that this is possible.
     
  8. Offline

    thepluginbros

    What do you mean by hopping?
     
  9. Offline

    LordDarthBob

    thepluginbros
    Holding down the space bar so you jump repeatedly.
     
  10. Offline

    thepluginbros

    Yes but you can also replace the block at an rate of 20 times per second! Maybe that does work?
     
  11. Offline

    LordDarthBob

    In a continuation of what I had said, if you keep jumping, for a half to a quarter of a second the texture will not appear, and you can see through. My though was that if Mojang was trying to use head coordinates to test if you were inside of a block of glowstone, you could just send the client fake coordinates, pretending that the player is 1 block higher that they really are, so that the client will not think to texture the inside of the glowstone block which it thinks you are not inside of. This may be wrong, I don't know Java or Minecraft API, but this is my guess at what's going on based on my observations.

    thepluginbros
    That may work too, but it's the potential lag I'm worried about...
    However, I know nothing about how much that really could lag, and I'd still be very interested to see if that would work! :)

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

    thepluginbros

    You can make it so that I will only replace the block if the players is in an radius of 3 blocks or use an pressure plate that triggers it?
     
  13. Offline

    LordDarthBob

    thepluginbros
    That's possible I suppose, I was actually thinking about asking someone to try programming what I mentioned above to reduce lag from this plugin. Replacing glowstone with more glowstone may not confuse the client, and replacing blocks will cause a ton of lag. However, simply sending a coordinate to the client that the player is 1 block higher than they really are whenever they are standing inside of glowstone block would not lag much, and it may confuse the client, making it think that you are not inside of the glowstone, and consequently not texturing it.
     
  14. Offline

    thepluginbros

    I don't know but you can try....
     
  15. Offline

    LordDarthBob

    thepluginbros
    I don't know Java, someone else would have to make this.

    Does anyone want to try either of these ideas? I think it's definitely worthwhile to test them.

    Bump

    Bump...

    In case the above is kind of dis-organised in terms of ideas, here are the two ideas of how to make this work:

    One is to send an extremely high Y coordinate to the player's client whenever their head is inside of a block of glowstone to try to trick the client into not texturing the inside as it takes time to texture, allowing you to see through for a split second, and this may be indicative of some kind of coordinate based detection.

    Another is to rapidly update the block of glowstone between it and another block type, the idea being that if you did this, each time the block updated it would take time for the client to texture the inside of the block. This may lag however.

    Thanks to anyone who is willing to do this!

    Bump.

    Bump.
     
  16. Offline

    LordDarthBob

    ...Bump

    Bump

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

    LordDarthBob

  18. Offline

    LordDarthBob

  19. Offline

    LordDarthBob

  20. Offline

    timtower Administrator Administrator Moderator

  21. Offline

    LordDarthBob

    I know that it is possible to check if a player is inside of a glowstone/redstone/TNT block .
    I know that it is also possible to send fake coordinates to players, as seen in this plugin:
    http://dev.bukkit.org/bukkit-plugins/randomcoords/

    Therefore it would b totally possible to send a fake Y offset of 1000 blocks higher or something when a player is inside of a glowstone or other stated block, possibly confusing the client into not texturing the inside.

    Does anyone have the time or knowledge to do this?
     
  22. Offline

    LordDarthBob

  23. Offline

    LordDarthBob

  24. Offline

    LordDarthBob

  25. Offline

    LordDarthBob

    Again, bump.
    Look at all the bumps... so many that it reminds me of the Rocky Mountains...
     
    Williscool98 likes this.
  26. Offline

    LordDarthBob

  27. Offline

    chasertw123

    LordDarthBob
    All of the textures are done client side and not server side.
     
  28. Offline

    LordDarthBob

    chasertw123
    Yes, but it may be possible to trick the client.



     
  29. Offline

    chasertw123

    LordDarthBob

    I mean to say that even if it is possible then it would be so complicated that it would not be worth it.
     
  30. Offline

    LordDarthBob

    chasertw123
    Spamming between glowstone and glass blocks when a player is standing in a glowstone block, or sending a fake y offset to a player's client doesn't sound too complicated. Adding bot players with AI and speech recognition would be hard, making a full replica of the the whole OCN battle system would be hard, but this wouldn't involve blatantly excessive amounts of code as you're suggesting.

    Bump
     

Share This Page