Send fake world architecture to players? (likely request)

Discussion in 'Plugin Development' started by AUTOMATIC_MAIDEN, Jul 3, 2011.

Thread Status:
Not open for further replies.
  1. Is it possible to, when sending blocks to players, change block ids to something else, so that player sees world differently from what it actually is?

    For example, I want to make a portal, and I want to VISUALLY fill insides of it with lava, but actually there should be air that does not hurt players. So when sending chunk to players, I replaces some air blocks with lava, and clients display portals as having lava inside.

    This could also be used to make very simple Anti X-Ray, or to make secret passages that are only seen to some players while being stone for others.

    Of course this could introduce errors (standing on nonexistent fake block = flying = kick), but when used correctly, it could produce miracles.
     
  2. Offline

    feildmaster

    No that's not possible. (If it were, I would have made it long ago)

    If it is possible, I invite someone to disprove me.
     
  3. Offline

    RawCode

    send block change allow to fake players...

    there are multiple plugins using this, check bananabox, musiccraft...
     
  4. Offline

    Acrobot

    It is possible. I will be trying to do something with blocks, like this or hiding chests.
     
  5. Well, for one, you need to know when the server sends chunk to player - and immediately follow with manual block updates (which, form looking at events, I assume we can't do). The other issue is that it would create a whole lot of unnecessary traffic - all those things could be incorporated into chunk update itself. I guess devs are reluctant to add new features because that adds more work for every update that breaks things (thanks Notch!), but in any case this is the addition that I think a lot of modders would be happy to see - something like an onSendingChunkToPlayer event where you can mess with contents of chunk without changing world.
     
  6. Offline

    Acrobot

    I created one, non-lagging version of my plugin, that hides the chests (masks it as surrounding blocks).
    It's easy.
    player.sendBlockChange(Location location, Material material, byte dataValue)
     
Thread Status:
Not open for further replies.

Share This Page