Memeware 7.3 BlockESP module 1 files, 63 lines

Memeware 7.3 BlockESP: Full Source Analysis

A see-through-walls renderer: every render frame it draws translucent boxes over chests, ender chests, dispensers, and droppers (walking the client's loadedTileEntityList) plus breakable cake blocks found by a 5-block-radius block scan.

me/memewaredevs/client/module/render/BlockESP.java · GitHub source ↗

Published 2026-08-13 · Updated 2026-10-14

Packets This Module Uses

Analysis

Overview

A see-through-walls renderer: every render frame it draws translucent boxes over chests, ender chests, dispensers, and droppers (walking the client's loadedTileEntityList) plus breakable cake blocks found by a 5-block-radius block scan. All positions come from world data the server already sent via chunk packets such as S21PacketChunkData; the module only changes what is drawn, so it emits no packets and cannot be detected by packet analysis.

Architecture

One Render3DEvent consumer drives everything. Five boolean options (Chests, Ender Chests, Dispensers, Droppers, Breakable Cakes) gate the draws. The cake scan is a triple loop over a 5-block cube around the player's integer position that compares getBlockState(blockPos).getBlock() against Blocks.cake and boxes each hit; the tile-entity pass iterates mc.theWorld.loadedTileEntityList with an instanceof dispatch (TileEntityChest, TileEntityDropper, TileEntityDispenser, TileEntityEnderChest) and skips whichever type its toggle disables, drawing every remaining entity with RenderUtils.drawEsp. The boxes are the same semi-transparent black (Color(0,0,0,21)) in both paths.

Data source and detection surface

The chests, dispensers, and droppers are tile entities: their block positions are delivered to every client inside chunk data (S21PacketChunkData tile-entity section) and held in the client's loadedTileEntityList from the moment the chunk arrives. The cake scan reads the same chunk block array. So the module reveals nothing the client was not already told. The server broadcast these positions to everyone; the cheat is only that the ESP makes them visible through walls. A server cannot observe the drawing, so the only real countermeasures in the corpus are the X-ray family, which target the mining behavior that seeing-through-walls enables rather than the rendering itself.

source BlockESP.java

BlockESP.java63 lines · JavaOriginal ↗
1
package me.memewaredevs.client.module.render;
2
3
import me.hippo.api.lwjeb.annotation.Handler;
4
import me.memewaredevs.client.event.events.Render3DEvent;
5
import me.memewaredevs.client.module.Module;
6
import me.memewaredevs.client.util.render.RenderUtils;
7
import net.minecraft.block.Block;
8
import net.minecraft.init.Blocks;
9
import net.minecraft.tileentity.*;
10
import net.minecraft.util.BlockPos;
11
12
import java.awt.*;
13
import java.util.function.Consumer;
14
15
public class BlockESP extends Module {
16
    public BlockESP() {
17
        super("Block ESP", 0, Module.Category.RENDER);
18
        this.addBoolean("Chests", true);
19
        this.addBoolean("Ender Chests", true);
20
        this.addBoolean("Dispensers", true);
21
        this.addBoolean("Droppers", true);
22
        this.addBoolean("Breakable Cakes", true);
23
    }
24
25
    @Handler
26
    public Consumer<Render3DEvent> eventConsumer0 = event -> {
27
        if (getBool("Breakable Cakes")) {
28
            final int radius = 5;
29
            for (int x = -radius; x < radius; ++x) {
30
                for (int y2 = radius; y2 > -radius; --y2) {
31
                    for (int z = -radius; z < radius; ++z) {
32
                        final int xPos = (int) this.mc.thePlayer.posX + x;
33
                        final int yPos = (int) this.mc.thePlayer.posY + y2;
34
                        final int zPos = (int) this.mc.thePlayer.posZ + z;
35
                        final BlockPos blockPos = new BlockPos(xPos, yPos, zPos);
36
                        final Block block = this.mc.theWorld.getBlockState(blockPos).getBlock();
37
                        if (block == Blocks.cake) {
38
                            RenderUtils.box(blockPos.getX() - 0.5, blockPos.getY(),
39
                                    blockPos.getZ() - 0.5, blockPos.getX() + 0.5,
40
                                    blockPos.getY() + 1, blockPos.getZ() + 0.5, new Color(0, 0, 0, 21));
41
                        }
42
                    }
43
                }
44
            }
45
        }
46
        for (TileEntity entity : this.mc.theWorld.loadedTileEntityList) {
47
            if (entity instanceof TileEntityChest && !getBool("Chests")) {
48
                continue;
49
            }
50
            else if (entity instanceof TileEntityDropper && !getBool("Droppers")) {
51
                continue;
52
            }
53
            else if (entity instanceof TileEntityDispenser && !getBool("Dispensers")) {
54
                continue;
55
            }
56
            else if (entity instanceof TileEntityEnderChest && !getBool("Ender Chests")) {
57
                continue;
58
            }
59
            RenderUtils.drawEsp(entity, new Color(0, 0, 0, 21).getRGB());
60
        }
61
    };
62
63
}

What this file does

The constructor registers five toggles. eventConsumer0 first runs the optional cake scan (a 10x10x10 cube centered on the player, which means roughly 1000 getBlockState lookups per frame), each hitting the client's chunk block-array cache; then the tile-entity loop, which is the cheap path since loadedTileEntityList is already populated by chunk loading. Both render paths funnel into RenderUtils (box for the scanned blocks, drawEsp for the tile entities) with the same translucent black fill. No packet is read or written beyond what the render thread already consumes.

anticheat Countering Checks

The anticheat code that detects or counters the techniques this module uses. Full source, with the detection mechanism explained below each box.

anticheat XRayCheck (ore-targeting ghost-block ledger)

XRayCheck.java176 lines · Java
1
package me.jinky.checks.world;
2
3
import java.util.ArrayList;
4
import java.util.HashMap;
5
import java.util.Iterator;
6
import java.util.List;
7
import java.util.Map;
8
9
import org.bukkit.Material;
10
import org.bukkit.block.Block;
11
import org.bukkit.block.BlockFace;
12
import org.bukkit.entity.Player;
13
import org.bukkit.event.Event;
14
import org.bukkit.event.block.BlockBreakEvent;
15
import org.bukkit.event.player.PlayerMoveEvent;
16
17
import me.jinky.checks.Check;
18
import me.jinky.checks.CheckResult;
19
import me.jinky.logger.User;
20
import me.jinky.util.UtilBlock;
21
22
public class XRayCheck extends Check {
23
24
	public static Map<Player, HashMap<Block, Long>> ghostblocks = new HashMap<Player, HashMap<Block, Long>>();
25
	public static Map<Player, HashMap<Block, Integer>> ghostblocks_closecount = new HashMap<Player, HashMap<Block, Integer>>();
26
	public static Map<Player, Long> lastcheck = new HashMap<Player, Long>();
27
	public static Map<Player, HashMap<Block, Double>> ghostblocks_lastcheckloc = new HashMap<Player, HashMap<Block, Double>>();
28
29
	@Override
30
	public String getName() {
31
		return "XRay";
32
	}
33
34
	@Override
35
	public String getEventCall() {
36
		return "PlayerMoveEvent";
37
	}
38
39
	@Override
40
	public String getSecondaryEventCall() {
41
		return "BlockBreakEvent";
42
	}
43
44
	@Override
45
	public CheckResult performCheck(User u, Event ev) {
46
		Player p = u.getPlayer();
47
		if (ev.getEventName().equalsIgnoreCase("PlayerMoveEvent")) {
48
			if (!lastcheck.containsKey(p)) {
49
				lastcheck.put(p, 1L);
50
			}
51
			PlayerMoveEvent e = (PlayerMoveEvent) ev;
52
			Long math = System.currentTimeMillis() - lastcheck.get(p);
53
			if (e.getTo().getWorld() != e.getFrom().getWorld()) {
54
				if (ghostblocks.containsKey(p)) {
55
					for (Block b : ghostblocks.get(p).keySet()) {
56
						b.setType(Material.STONE);
57
					}
58
					ghostblocks.remove(p);
59
				}
60
				if (ghostblocks_closecount.containsKey(p))
61
					ghostblocks_closecount.remove(p);
62
				if (ghostblocks_lastcheckloc.containsKey(p))
63
					ghostblocks_lastcheckloc.remove(p);
64
				lastcheck.put(p, System.currentTimeMillis());
65
				return new CheckResult("XRay", true, "WorldChange");
66
			}
67
			if (math > 1750 && ghostblocks_closecount.containsKey(p) && e.getFrom().distance(e.getTo()) > 0.1) {
68
				Iterator<Block> i = ghostblocks_closecount.get(p).keySet().iterator();
69
				List<Block> remove = new ArrayList<Block>();
70
				while (i.hasNext()) {
71
					Block b = i.next();
72
					if (b != null && b.getType() != null && !b.getType().toString().contains("ORE")) {
73
						remove.add(b);
74
						return new CheckResult("XRay", true, "pass");
75
					}
76
					Integer count = ghostblocks_closecount.get(p).get(b);
77
78
					if (b.getLocation().getWorld() != e.getTo().getWorld()) {
79
						return new CheckResult("XRay", true, "WorldChange");
80
					}
81
					if (e.getTo().distance(b.getLocation()) < ghostblocks_lastcheckloc.get(p).get(b)) {
82
						count++;
83
						ghostblocks_closecount.get(p).put(b, count);
84
					} else {
85
						count--;
86
						if (count < 0) {
87
							remove.add(b);
88
							b.setType(Material.STONE);
89
						} else {
90
							ghostblocks_closecount.get(p).put(b, count);
91
						}
92
					}
93
				}
94
				if (remove.size() > 0) {
95
					for (Block b : remove) {
96
						ghostblocks_closecount.get(p).remove(b);
97
						ghostblocks.get(p).remove(b);
98
						ghostblocks_lastcheckloc.get(p).remove(b);
99
					}
100
				}
101
				lastcheck.put(p, System.currentTimeMillis());
102
			}
103
104
		} else {
105
			if (!ghostblocks.containsKey(p)) {
106
				ghostblocks.put(p, new HashMap<Block, Long>());
107
			}
108
			if (!ghostblocks_closecount.containsKey(p)) {
109
				ghostblocks_closecount.put(p, new HashMap<Block, Integer>());
110
			}
111
			if (p.isSneaking()) {
112
				ghostblocks.get(p).put(p.getLocation().getBlock().getRelative(BlockFace.DOWN),
113
						System.currentTimeMillis());
114
			}
115
116
			BlockBreakEvent e = (BlockBreakEvent) ev;
117
118
			if (e.getBlock().getType().toString().contains("ORE")) {
119
				if (ghostblocks.get(p).containsKey(e.getBlock())) {
120
					Integer count = ghostblocks_closecount.get(p).get(e.getBlock());
121
					ghostblocks.get(p).remove(e.getBlock());
122
					ghostblocks_closecount.get(p).remove(e.getBlock());
123
					if (count > 4) {
124
						return new CheckResult("XRay", false, "broke ghostblocks 5+ blocks ret");
125
					}
126
				} else {
127
					BlockFace opposite = getopposite(p);
128
					Block target = e.getBlock();
129
					Integer g = 0;
130
					for (int i = 0; i < 9; i++) {
131
						target = target.getRelative(opposite);
132
						if (i > 4) {
133
							if (UtilBlock.xraysafe(target, target.getType()).size() == 0) {
134
								g++;
135
								if (g == 2 && target.getLocation().getWorld().equals(p.getLocation().getWorld())) {
136
									target.setType(e.getBlock().getType());
137
									ghostblocks.get(p).put(target, System.currentTimeMillis());
138
									ghostblocks_closecount.get(p).put(target, 4);
139
									if (!ghostblocks_lastcheckloc.containsKey(p)) {
140
										ghostblocks_lastcheckloc.put(p, new HashMap<Block, Double>());
141
									}
142
									ghostblocks_lastcheckloc.get(p).put(target,
143
											p.getLocation().distance(target.getLocation()));
144
									break;
145
								}
146
147
							}
148
						}
149
					}
150
				}
151
				return new CheckResult("XRay", true, "pass");
152
			}
153
154
			return new CheckResult("XRay", true, "pass");
155
		}
156
		return new CheckResult("XRay", true, "pass");
157
	}
158
159
	public static BlockFace getopposite(Player player) {
160
		float yaw = player.getLocation().getYaw();
161
		if (yaw < 0) {
162
			yaw += 360;
163
		}
164
		if (yaw >= 315 || yaw < 45) {
165
			return BlockFace.NORTH;
166
		} else if (yaw < 135) {
167
			return BlockFace.EAST;
168
		} else if (yaw < 225) {
169
			return BlockFace.SOUTH;
170
		} else if (yaw < 315) {
171
			return BlockFace.WEST;
172
		}
173
		return BlockFace.NORTH;
174
	}
175
176
}

How it counteracts this module

Jinky's X-ray check is the closest real detector of 'client sees blocks it should not'. When a player breaks an ore, the check walks back along the player's look vector through the block column (getopposite from yaw, up to 9 blocks): if the ore sits behind more than two non-xray-safe blocks with no clear line, the check plants a 'ghost block' (it temporarily swaps the covering block's material to the ore type on the server) and then tracks whether the player turns toward and breaks that ghost. Approaching the ghost (closecount rising per move) and finally breaking it flags 'broke ghostblocks 5+ blocks ret'. Honest note: the technique is a behavioral test for ore-mining knowledge, not a packet test; BlockESP renders tile-entity containers and cakes rather than ores and never mines them, so the ghost ledger cannot fire on it. It is the only real check in the corpus that polices the see-through-walls behavior class this module belongs to.

anticheat XRayProtocol (registration stub)

XRayProtocol.java13 lines · Java
1
package com.elikill58.negativity.spigot.protocols;
2
3
import org.bukkit.Material;
4
5
import com.elikill58.negativity.universal.Cheat;
6
import com.elikill58.negativity.universal.CheatKeys;
7
8
public class XRayProtocol extends Cheat {
9
	
10
	public XRayProtocol() {
11
		super(CheatKeys.XRAY, false, Material.EMERALD_ORE, CheatCategory.WORLD, false);
12
	}
13
}

How it counteracts this module

Negativity's X-ray protocol class is, in the mined corpus, a 13-line registration stub: it registers the XRAY cheat with its display category (WORLD) and emerald-ore icon and nothing else. The detection body is not present in this build. Honest note: it is included because it is the named X-ray detector in one of the corpus anticheats, and to make explicit that even a major anticheat's X-ray feature is registration-only against a rendering cheat. Like the Jinky check, any real X-ray detection is behavioral (mining patterns), which a pure ESP module never exercises.

anticheat PacketWorld (per-player chunk-change ledger)

PacketWorld.java89 lines · Java
1
package ai.idealistic.spartan.abstraction.data;
2
3
import ai.idealistic.spartan.abstraction.event.PlayerTickEvent;
4
import ai.idealistic.spartan.abstraction.event.ServerBlockChange;
5
import ai.idealistic.spartan.listeners.bukkit.standalone.ChunksEvent;
6
import ai.idealistic.spartan.utils.java.ConcurrentList;
7
import ai.idealistic.spartan.utils.minecraft.world.BlockUtils;
8
import org.bukkit.Location;
9
import org.bukkit.Material;
10
import org.bukkit.block.Block;
11
import org.bukkit.entity.Player;
12
13
import java.util.ArrayList;
14
import java.util.List;
15
16
17
public class PacketWorld {
18
19
    private final List<ServerBlockChange> query;
20
    private final Player player;
21
    private int lagTick;
22
    public boolean transactionLock;
23
24
    public PacketWorld(Player player) {
25
        this.player = player;
26
        this.query = new ConcurrentList<>();
27
        this.lagTick = 0;
28
    }
29
30
31
    public void tick(PlayerTickEvent tickEvent) {
32
        if (tickEvent.getDelay() < 12) {
33
            this.lagTick = 3;
34
        } else if (lagTick > 0) {
35
            if (!this.transactionLock) this.lagTick--;
36
        } else {
37
            this.query.removeIf(change -> --change.tick == 0);
38
        }
39
    }
40
41
    public List<ServerBlockChange> getLocalWorld() {
42
        return new ArrayList<>(this.query);
43
    }
44
45
    public Material getBlockRaw(Location location) {
46
        for (ServerBlockChange change : this.query) {
47
            Location lL = change.position.toLocation(this.player.getWorld());
48
49
            if (Math.abs(lL.getX() - location.getX()) <= 1.3 &&
50
                    Math.abs(lL.getY() - location.getY()) <= 1.3 &&
51
                    Math.abs(lL.getZ() - location.getZ()) <= 1.3) {
52
                return change.getData();
53
            }
54
        }
55
        return null;
56
    }
57
58
    public Material getBlock(Location location) {
59
        Material raw = this.getBlockRaw(location);
60
61
        if (raw != null) {
62
            return raw;
63
        }
64
        Block b = ChunksEvent.getBlockAsync(location);
65
        return (b == null) ? null : b.getType();
66
    }
67
68
    public void worldChange(ServerBlockChange blockChange) {
69
        if (BlockUtils.areAir(blockChange.getData())) {
70
            Block b = ChunksEvent.getBlockAsync(
71
                    blockChange.position.toLocation(this.player.getWorld())
72
            );
73
            if (b == null || BlockUtils.areAir(b.getType())) return;
74
            blockChange.setData(b.getType());
75
        }
76
        long hash = blockChange.hashCode();
77
78
        for (ServerBlockChange c : this.query) {
79
            if (c.generateHash() == hash) {
80
                this.query.remove(c); // to delete
81
                break;
82
            }
83
        }
84
        this.query.add(blockChange);
85
        this.transactionLock = true;
86
        this.lagTick = 3;
87
    }
88
89
}

How it counteracts this module

Spartan's per-player mirror of the server-side world. worldChange records every ServerBlockChange into a query list (with a transactionLock and a 3-tick lag guard so changes apply in order), getBlockRaw consults that pending-change list first with a 1.3-block proximity match, and getBlock falls back to the async chunk cache; tick() expires stale entries once the tick delay is healthy. This is the server-side counterpart of the world state BlockESP reads client-side from chunk packets: Spartan keeps its own authoritative copy of every block the player could have seen, which is what lets its world checks (scaffold, phase, liquid) validate actions against the real layout instead of trusting the client. Honest note: the module's rendering consumes the client copy of that same world; the check family built on PacketWorld is how a server answers 'what did the client actually know about this block': the question ESP cheats try to make irrelevant.

anticheat ServerBlock (block-state cache wrapper)

ServerBlock.java94 lines · Java
1
package ai.idealistic.spartan.abstraction.world;
2
3
import ai.idealistic.spartan.listeners.bukkit.standalone.ChunksEvent;
4
import ai.idealistic.spartan.utils.minecraft.world.BlockUtils;
5
import org.bukkit.Material;
6
import org.bukkit.block.Block;
7
import org.bukkit.block.data.BlockData;
8
9
public class ServerBlock {
10
11
    private final Object block;
12
13
    public ServerBlock(Object block) {
14
        this.block = block;
15
    }
16
17
    public boolean dataLoaded() {
18
        return this.block != null;
19
    }
20
21
    public boolean isMaterial() {
22
        return this.block instanceof Material;
23
    }
24
25
    public boolean isBlock() {
26
        return this.block instanceof Block;
27
    }
28
29
    public boolean isBlockData() {
30
        return BlockUtils.blockDataExists
31
                && this.block instanceof BlockData;
32
    }
33
34
    public Material getTypeOrNull() {
35
        if (this.block instanceof Block) {
36
            Block local = (Block) this.block;
37
            return ChunksEvent.isLoaded(local)
38
                    ? local.getType()
39
                    : null;
40
        } else if (this.block instanceof Material) {
41
            return (Material) this.block;
42
        } else if (BlockUtils.blockDataExists
43
                && this.block instanceof BlockData) {
44
            return ((BlockData) this.block).getMaterial();
45
        } else {
46
            return null;
47
        }
48
    }
49
50
    public Material getType() {
51
        Material type = this.getTypeOrNull();
52
        return type != null ? type : ServerLocation.emptyMaterial;
53
    }
54
55
    public boolean isWaterLogged() {
56
        return this.block instanceof Block
57
                ? BlockUtils.isWaterLogged((Block) this.block)
58
                : BlockUtils.blockDataExists
59
                && this.block instanceof BlockData
60
                && BlockUtils.isWaterLogged((BlockData) this.block);
61
    }
62
63
    public boolean isLiquidOrWaterLogged(boolean lava) {
64
        return this.block instanceof Block
65
                ? BlockUtils.isLiquidOrWaterLogged((Block) this.block, lava)
66
                : this.block instanceof Material
67
                ? BlockUtils.isLiquid((Material) this.block)
68
                : BlockUtils.blockDataExists
69
                && this.block instanceof BlockData
70
                && BlockUtils.isLiquidOrWaterLogged((BlockData) this.block, lava);
71
    }
72
73
    public boolean isLiquid(Material target) {
74
        if (this.block instanceof Block) {
75
            Block block = (Block) this.block;
76
            return ChunksEvent.isLoaded(block)
77
                    && BlockUtils.isLiquid(block)
78
                    && block.getType() == target;
79
        } else {
80
            Material material;
81
82
            if (this.block instanceof Material) {
83
                material = (Material) this.block;
84
            } else if (BlockUtils.blockDataExists
85
                    && this.block instanceof BlockData) {
86
                material = ((BlockData) this.block).getMaterial();
87
            } else {
88
                return false;
89
            }
90
            return BlockUtils.isLiquid(material) && material == target;
91
        }
92
    }
93
94
}

How it counteracts this module

ServerBlock is the cache wrapper around the block objects Spartan resolves per location: it accepts a Bukkit Block, a Material, or a BlockData and resolves getType() through the chunk-load check (ChunksEvent.isLoaded), returning an empty-material sentinel when the chunk is not loaded, plus isLiquid/isWaterLogged helpers used by the liquid checks. Honest note: like PacketWorld, this is world-truth infrastructure rather than a detector. The pair of files shows the mechanism by which Spartan knows the real block type at any position, which is the server-side ground truth that a client-side block ESP cannot influence and that all of Spartan's world-validating checks depend on.

← Back to Analysis Hub