In the game Minecraft there's a mod and a tp where you can only see ores, which can give you an unfair advantage. Also known as "hacks" aka cheats…
Now there are anticheats that ensure that all cheats are no longer possible… Mostly through plugins or scripts
Since a Tp (texture package) can't be recognized by the server, it is a bit different than with other cheats such as Fly etc., where you can punish players with events that should not be so, usually in the form of a ban on the server…
But how is that done with a Tp?
Because if you try it that way (don't come along now, you hacker😅, just want to know…) you can see all kinds of ores, even though there's really only earth, stone or whatever…
But if you play with the normal Tp or just no X-Ray, you can see (yes, with small bugs you can see it the same way as with the X-Ray tp) the blocks as normal…
Are all blockid's changed so that only the blocks that you can see have the right I'd, or how does something work? I don't think it has anything to do with the Id's, as this would be extremely detrimental to performance…
Clarify me. And thank you in advance for the answers.
You simply replace all ores that the player can't normally see with e.g. Stone
Or even more extreme: the whole environment is made of fake ores
And this is sent to the user (the blocks are not really changed, it only looks like this for the client)
Something like that is a big weak point in such games. You can of course have the server calculate all the visible things for all players, but the server will get to its knees relatively quickly.
In principle, of course, you can build your game so that there are no advantages if you know the position of everything the client knows.
I mean there was a plugin that worked against something like that, no matter if hack or TP, because the plugin noticed how quickly and how many diamonds etc. Were mined
I had once when I found several diamond veins at the strip mine, I was so banned
That was not my question, the Anti X-Ray Protection already exists…
My question was more like how it works😅
But that wasn't my question😅, there's actually an Anti xRay protection…
I'm just wondering how it works…
Yes, of course, all ores will be replaced…
But how does the server do that?
The server does not replace, but sends the player only the ores instead of the correct blocks
That already happens with the world download
I'm not asking how X-Ray works, but how the server does it with a Tp? (yes it exchanges all invisible blocks, but how exactly is this done?)
Here's how Spigot does it:
https://github.com/...iXray.java
When the chunk is loaded (by a player), it is loaded into RAM.
Then Spigot changes all stones to random ores.
The MC server then sends the player this chunk from the buffer.
If the player now gets close enough to ores, Updatet Spigot will deal with the blocks for this player.
Ah Okey, thank you, that's exactly what I wanted Antwort
Wouldn't it be possible to get around this? I mean, if you somehow simulate the radius of a player, or somehow simulate that the player is just there😅 (purely a programming question goes without saying…)
You can't simulate that. The server then looks like teleporting and the server does not allow it.
It is also not enough to be nearby, the block must be destroyed so that the ores behind it are made visible
Oki thank you.
With a XRay TP it can only be a Staff / Modban, because if you can find all the ores instantly you can think of it.
Autobans for XRay can't really exist.
Where do I write a spell? 😅
My question is (since in some Varo plugins this is the case, as the server does, that you only see fake ores…
Then the whole thing is done arbitrarily in places that you normally don't go to.