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

Blindness effect workaround

Comments in 'Plugin Development' started by thebigsmileXD, Oct 19, 2015.

  1. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    One more time, i need a workaround for something.
    Blindness. Any ideas? (Sending a packet that the player is in a block/set a block only for the player at their had, but others can still walk trough etc)
  2. zombie_Power
    Offline

    zombie_Power Active Member

    Joined:
    Sep 7, 2015
    Posts:
    239
    Minecraft User:
    Zombie_Power
    maybe you can teleport a player to a different place (which can be a timely teleportation)
  3. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    431
    Plugins:
    4
    Minecraft User:
    Lambo
    Is it possible to put a pumpkin on a player's head like in MCPC? If so, you should try that.
  4. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    ??? What do you mean by blindness?
  5. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    No. I cant teleport them to a special position because i would break the maps.
    No, and it wouldn't make they totally blind.
    -.-" Really? That you can see nothing.
    Legoboy0215 likes this.
  6. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Not true, you cant see 'nothing' because nothing is not a physic object that you could touch. And as i know anything you can see is a light, thats why you cant see nothing :p. Try this: 'That you cant see anything'. I will feel dumb after this :D
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I think sending an UpdateBlockPacket to get the player's head stuck is the only solution, although still vulnerable to lag.

    Edit: Have you thought about falling blocks? Does a stationary falling block make a player blind?
    thebigsmileXD likes this.
  8. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Both ideas are nice. I do not know how to use neither modify packets yet, anyone has a nice reference?

    Might you be so kind and send me some basic code as of the UpdateBlockEvent? (But sure, this will be laggy)
    The 2nd way: well, black stained clay would be the best for this. When you stand in TnT or falling sand, you see its texture. Nice idea
  9. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Falling blocks tested: wouldn't really make you "blind", you see the blocks texture. also the blocks can actually spawn.
  10. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Make a sphere of falling blocks around the player and make them move along with the player?
  11. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    All of those entities would cause some lag.
  12. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Thats why we use packets.
    LDX likes this.
  13. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    There are just 9 blocks. Do you think that would make much difference?
    jojoe77777 likes this.
  14. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Nope :)
    (But still, the blocks will be set when they collide with other blocks. Killing them instantly isn't enough)
  15. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Actually, I only meant to do it with packets :p
  16. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Yeaa.. Just realized that i forgot to add the packet part *facepalm* :D :p
  17. Muqsit
    Offline

    Muqsit Active Member

    Joined:
    Sep 9, 2015
    Posts:
    175
    Minecraft User:
    Muqsit
    Suffocate the player's head = Blindness...
    right?
    thebigsmileXD likes this.
  18. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Water is transperent, but it has some kind a fog when you're in it. Try water?
    thebigsmileXD likes this.
  19. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    Maybe not if one player has the blindness.
    What if 10 or 20+ players have the effect?
  20. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Nope :)
    Because every player would only see it for himself :p
    yes
    Not a bad idea :)
    Muqsit likes this.

Share This Page

Advertisement