let make a minecraft mod that add tv screens in game lolbit theme that have mutiple use to use a pocket dimson where leads to all other tv sreens and only one player in the whole sever can use the tv and have to get prisomn form that player and pocket dimson is realy big and can be use as a prioson also in side the pocket dimson the player can open a portal to any dimson and aslo add the mutiverse and upside down dimsons wheih they can aslo go and player is also quite powerful
Let me read the necessary docs before writing any code.
Here’s my plan:
Build the full project with TV screen block, warden permission system, 3 custom dimensions (Pocket, Multiverse, Upside Down), dimension gateway blocks, warden powers, and commands
Use
PersistentStatefor warden data,TeleportTargetfor cross-dim teleport, flat generator for the enclosed prison pocket dimNo mixins needed — all functionality via events and block overrides
Now all the resource files:
Now the three custom dimensions. The Pocket Dimension uses a flat generator with a floor + ceiling to create a genuinely enclosed massive prison space:
Here’s a summary of the complete mod:
What was built
Blocks
Block | Texture | Function |
|---|---|---|
Lolbit TV Screen | Magenta Glazed Terracotta | Right-click → enter Pocket Dimension (if permitted), glows |
Overworld Portal | Emerald Block | Inside Pocket Dim → return to saved entry position |
Nether Gateway | Netherrack | Inside Pocket Dim → teleport to Nether |
End Gateway | End Stone Bricks | Inside Pocket Dim → teleport to The End |
Multiverse Portal | Amethyst Block | Inside Pocket Dim → teleport to Multiverse (floating End islands) |
Upside Down Portal | Soul Sand | Inside Pocket Dim → teleport to Upside Down (dark crimson nether caves) |
Items
Warden’s Key — The Warden right-clicks another player with this item to grant them pocket dimension access (consumes one key)
Dimensions
Dimension | Feel |
|---|---|
Pocket Dimension | Massive enclosed deepslate prison (floor at y=51, 150-block-tall air space, deepslate ceiling) — warped forest biome, end sky effects |
Multiverse | Floating End-style islands with bright ambient light |
Upside Down | Dark nether caves, crimson forest biome, nether fog, very high monster spawn rate |
Warden System
One Warden per server — stored in persistent world data, survives restarts
First player to run
/lolbit claimbecomes Warden (if no Warden exists)Warden gets +20 max health (20 hearts → 40 hearts), +10% movement speed, +6 attack damage
Powers re-applied automatically when Warden rejoins the server
Commands
Command | Who | Effect |
|---|---|---|
/lolbit status | Anyone | Shows current Warden name |
/lolbit claim | Anyone (if no Warden) | Claim Warden role |
/lolbit grant <player> | Warden only | Grant access to TV screen |
/lolbit revoke <player> | Warden only | Revoke access |
/lolbit transfer <player> | Warden only | Transfer Warden role (removes own powers) |
/lolbit release <player> | Warden only | Force-teleport a player out of Pocket Dim back to their saved entry position |
The compilation failed with this error:
Compilation failed with 6 error(s):
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 120: no suitable method found for teleport(TeleportTarget)
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 45: no suitable method found for teleport(TeleportTarget)
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 54: no suitable method found for teleport(TeleportTarget)
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 120: no suitable method found for teleport(TeleportTarget)
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 45: no suitable method found for teleport(TeleportTarget)
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 54: no suitable method found for teleport(TeleportTarget)
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, TeleportTarget.NO_OP));
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
Please fix this error by creating a new artifact with the corrected code.
The TeleportTarget constructor in 1.21.4 has an additional boolean parameter (missingRespawnBlock) between the pitch and the PostDimensionTransition. All three files need false inserted as the 6th argument.
The TeleportTarget constructor in 1.21.4 requires a 7th parameter — a boolean missingRespawnBlock inserted before the PostDimensionTransition. Added false in all three call sites.
make so they can also pull players in and if do that they become weaker and all there items get put in a chest in the pocktet dimson
Here’s the plan:
Add
pull <player>subcommand (warden-only) that teleports target into pocket dimension, strips their inventory into a chest at a deterministic position, and applies weakness debuffsTrack pulled players + their chest positions in
WardenDataAdd
applyPrisonerDebuffs/removePrisonerDebuffstoLolbitTVUpdate
releasecommand to also restore items from chest and remove debuffs
Now add applyPrisonerDebuffs / removePrisonerDebuffs to LolbitTV:
Now update LolbitCommand to add the pull subcommand and update release to restore items and remove debuffs:
Now add the new lang keys:
Here’s what was added:
WardenData— tracks pulled players, assigns a unique chestBlockPosper prisoner in the pocket dimension, persists all of it to NBTLolbitTV— two new methods:applyPrisonerDebuffs(−10 max HP, −0.06 speed, −3 attack damage) andremovePrisonerDebuffsLolbitCommand— new/lolbit pull <player>subcommand (warden-only): strips the target’s full inventory into up to 2 chests placed in the pocket dimension, applies the debuffs, then teleports them in. The existing/lolbit releasenow also restores items from those chests back to the player, removes debuffs, destroys the chests, and clears the pulled state
make so there aslo a item that also dose the puling
I’ll:
Extract the pull logic into a reusable static method in
LolbitCommandCreate a
SoulCatcherItemthat calls it when right-clicking a player (warden-only)Register it in
ModItems, add item model + texture stub JSON, and add lang keys
First, extract the pull logic into a public helper in LolbitCommand:
Now I’ll replace the inline pull logic with a call to a new static helper, add the helper, and remove unused imports from the pull block:
Now create the item class:
Register it in ModItems:
Add UseEntityCallback for the Soul Catcher in LolbitTV:
Now create the item, its model and item definition, and add lang keys:
Done. Here’s what was added:
SoulCatcherItem— a simple item with a tooltip; all behaviour is handled in theUseEntityCallbackLolbitTV— newUseEntityCallbackfor the Soul Catcher: warden-only, checks the target isn’t already pulled, then delegates toLolbitCommand.pullPlayer()LolbitCommand.pullPlayer()— the pull logic extracted into apublic staticmethod shared by both the command and the itemModItems.SOUL_CATCHER— registered withmaxCount(1)Asset files (
items/soul_catcher.json,models/item/soul_catcher.json) using the echo shard texture as a placeholder — swaplayer0for your own texture when readyLang keys for the item name, tooltip, and “already pulled” message
aslo add the tvs can be craft and a item that can be place
The TV Screen block already has a BlockItem registered (so it’s already placeable). I just need to add crafting recipes for the TV Screen and Soul Catcher items.
Everything is already placeable — I just need to add the recipe data files. I’ll give the TV Screen a thematic glass + redstone + glowstone recipe, and the Soul Catcher an echo shard + ender pearl recipe.
Three crafting recipes added under data/lolbittv/recipe/:
Item | Recipe |
|---|---|
TV Screen | 6 glass panes + 2 redstone + 1 glowstone dust (3×3 shaped) |
Soul Catcher | 4 echo shards around 1 ender pearl (cross shaped) |
Warden’s Key | 2 netherite ingots diagonal + 1 diamond (staff-like shaped) |
The TV Screen was already placeable since ModBlocks auto-registers a BlockItem for every block — no code changes needed.
The compilation failed with this error:
Compilation failed with 8 error(s):
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 156: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 197: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 45: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 54: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 156: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 197: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 45: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 54: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
=== COMPILATION ERROR ANALYSIS ===
TYPE MISMATCHES:
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
ACTION: Fix variable types or casting
FILES TO INVESTIGATE:
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
Please fix this error by creating a new artifact with the corrected code.
The compilation failed with this error:
Compilation failed with 8 error(s):
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 156: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 197: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 45: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 54: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 156: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 197: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 45: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 54: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
=== COMPILATION ERROR ANALYSIS ===
TYPE MISMATCHES:
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
ACTION: Fix variable types or casting
FILES TO INVESTIGATE:
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
Please fix this error by creating a new artifact with the corrected code.
The compilation failed with this error:
Compilation failed with 8 error(s):
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 156: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 197: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 45: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 54: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 156: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 197: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 45: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 54: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
=== COMPILATION ERROR ANALYSIS ===
TYPE MISMATCHES:
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
ACTION: Fix variable types or casting
FILES TO INVESTIGATE:
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
Please fix this error by creating a new artifact with the corrected code.
The compilation failed with this error:
Compilation failed with 8 error(s):
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 156: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 197: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 45: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 54: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 156: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 197: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 45: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 54: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
=== COMPILATION ERROR ANALYSIS ===
TYPE MISMATCHES:
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
ACTION: Fix variable types or casting
FILES TO INVESTIGATE:
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
Please fix this error by creating a new artifact with the corrected code.
The TeleportTarget constructor expects Set<PositionFlag> where false was passed. Replacing with Set.of() (empty set = no relative flags) in all three files.
Replaced all four false boolean arguments in TeleportTarget constructors with Set.of() (empty Set<PositionFlag>) across all three files, and added the required PositionFlag and Set imports.
The compilation failed with this error:
Compilation failed with 8 error(s):
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 156: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 197: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 45: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 54: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 156: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 197: incompatible types: boolean cannot be converted to Set<PositionFlag>
target.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 45: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 54: incompatible types: boolean cannot be converted to Set<PositionFlag>
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, false, TeleportTarget.NO_OP));
^
=== COMPILATION ERROR ANALYSIS ===
TYPE MISMATCHES:
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
- incompatible types: boolean cannot be converted to Set<PositionFlag>
ACTION: Fix variable types or casting
FILES TO INVESTIGATE:
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
Please fix this error by creating a new artifact with the corrected code.
The compilation failed with this error:
Compilation failed with 6 error(s):
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 20: cannot find symbol
import net.minecraft.entity.player.PositionFlag;
^
symbol: class PositionFlag
location: package net.minecraft.entity.player
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 18: cannot find symbol
import net.minecraft.entity.player.PositionFlag;
^
symbol: class PositionFlag
location: package net.minecraft.entity.player
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 18: cannot find symbol
import net.minecraft.entity.player.PositionFlag;
^
symbol: class PositionFlag
location: package net.minecraft.entity.player
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 20: cannot find symbol
import net.minecraft.entity.player.PositionFlag;
^
symbol: class PositionFlag
location: package net.minecraft.entity.player
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 18: cannot find symbol
import net.minecraft.entity.player.PositionFlag;
^
symbol: class PositionFlag
location: package net.minecraft.entity.player
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 18: cannot find symbol
import net.minecraft.entity.player.PositionFlag;
^
symbol: class PositionFlag
location: package net.minecraft.entity.player
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- PositionFlag
ACTION: Create these classes or check imports
FILES TO INVESTIGATE:
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
Please fix this error by creating a new artifact with the corrected code.
The compilation failed with this error:
Compilation failed with 6 error(s):
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 20: cannot find symbol
import net.minecraft.entity.player.PositionFlag;
^
symbol: class PositionFlag
location: package net.minecraft.entity.player
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 18: cannot find symbol
import net.minecraft.entity.player.PositionFlag;
^
symbol: class PositionFlag
location: package net.minecraft.entity.player
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 18: cannot find symbol
import net.minecraft.entity.player.PositionFlag;
^
symbol: class PositionFlag
location: package net.minecraft.entity.player
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 20: cannot find symbol
import net.minecraft.entity.player.PositionFlag;
^
symbol: class PositionFlag
location: package net.minecraft.entity.player
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 18: cannot find symbol
import net.minecraft.entity.player.PositionFlag;
^
symbol: class PositionFlag
location: package net.minecraft.entity.player
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 18: cannot find symbol
import net.minecraft.entity.player.PositionFlag;
^
symbol: class PositionFlag
location: package net.minecraft.entity.player
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- PositionFlag
ACTION: Create these classes or check imports
FILES TO INVESTIGATE:
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
Please fix this error by creating a new artifact with the corrected code.
In 1.21.4 Yarn mappings, PositionFlag moved to net.minecraft.network.packet.s2c.play.PositionFlag.
PositionFlag is imported but never actually used in any of the three files. The fix is simply removing the unused import.
All three files had import net.minecraft.entity.player.PositionFlag as an unused import — removed it from all three files.
The compilation failed with this error:
Compilation failed with 8 error(s):
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 157: no suitable method found for teleport(TeleportTarget)
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, Set.of(), TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 198: no suitable method found for teleport(TeleportTarget)
target.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, Set.of(), TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 46: no suitable method found for teleport(TeleportTarget)
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, Set.of(), TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 55: no suitable method found for teleport(TeleportTarget)
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, Set.of(), TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 157: no suitable method found for teleport(TeleportTarget)
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, Set.of(), TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 198: no suitable method found for teleport(TeleportTarget)
target.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, Set.of(), TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 46: no suitable method found for teleport(TeleportTarget)
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, Set.of(), TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 55: no suitable method found for teleport(TeleportTarget)
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, Set.of(), TeleportTarget.NO_OP));
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
Please fix this error by creating a new artifact with the corrected code.
The compilation failed with this error:
Compilation failed with 8 error(s):
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 157: no suitable method found for teleport(TeleportTarget)
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, Set.of(), TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 198: no suitable method found for teleport(TeleportTarget)
target.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, Set.of(), TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 46: no suitable method found for teleport(TeleportTarget)
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, Set.of(), TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 55: no suitable method found for teleport(TeleportTarget)
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, Set.of(), TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 157: no suitable method found for teleport(TeleportTarget)
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, Set.of(), TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 198: no suitable method found for teleport(TeleportTarget)
target.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, Set.of(), TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 46: no suitable method found for teleport(TeleportTarget)
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, Set.of(), TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 55: no suitable method found for teleport(TeleportTarget)
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, Set.of(), TeleportTarget.NO_OP));
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
Please fix this error by creating a new artifact with the corrected code.
Use the modern ServerPlayerEntity.teleport(...) overload everywhere.
Replace ALL of this:
target.teleport(new TeleportTarget(world, pos, Vec3d.ZERO, 0f, 0f, Set.of(), TeleportTarget.NO_OP));
With this:
target.teleport( world, pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5, Set.of(), 0f, 0f );
Or if you're already using Vec3d:
target.teleport( world, pos.x, pos.y, pos.z, Set.of(), 0f, 0f ); 💡 Why this is the best solution ✔ Matches current Yarn/Fabric mappings (1.21.x) ✔ Simpler and more readable ✔ Won’t break again due to deprecated internals ✔ Works for cross-dimension teleporting (Overworld ↔ custom dimension) ⚠️ When NOT to use this
Only avoid this if you:
need custom portal mechanics or are modifying entity transfer at a deeper engine level
In those rare cases, you'd deal with internal teleport logic—but that’s overkill for commands/blocks like yours.
🔥 Bottom line
Stop using TeleportTarget → switch to:
ServerPlayerEntity.teleport(ServerWorld, x, y, z, flags, yaw, pitch)
All three files now use ServerPlayerEntity.teleport(ServerWorld, x, y, z, Set.of(), yaw, pitch) directly, and the unused TeleportTarget imports have been removed.
📄
pasted-code-1777829984892.txt
txt
79 lines
▶
Alright—this tells us something important: you’re on a version where both of the common teleport signatures are gone or different. So the previous fix was close, but not correct for your exact mappings.
🔍 What’s actually happening now
In newer Fabric/Yarn (1.21.x), Mojang changed teleporting again.
ServerPlayerEntity.teleport(...) is now much stricter, and in many mappings the correct method is:
teleport(ServerWorld world, double x, double y, double z, float yaw, float pitch)
👉 Notice:
❌ No Set.of() anymore
❌ No flags parameter
✔ Just world + position + rotation
✅ The fix you should use
Replace ALL your calls with this:
target.teleport(
overworld,
returnPos.x,
returnPos.y,
returnPos.z,
0.0f,
0.0f
);
And:
serverPlayer.teleport(
pocketDim,
0.5,
54.0,
0.5,
0.0f,
0.0f
);
💥 Why your current code fails
This part:
Set.of()
is the problem.
Your compiler error literally says:
no suitable method found for teleport(..., Set
The compilation failed with this error:
Compilation failed with 8 error(s):
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 156: no suitable method found for teleport(ServerWorld,double,double,double,Set<Object>,float,float)
target.teleport(overworld, returnPos.x, returnPos.y, returnPos.z, Set.of(), 0.0f, 0.0f);
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 197: no suitable method found for teleport(ServerWorld,double,double,double,Set<Object>,float,float)
target.teleport(pocketDim, 0.5, 54.0, 0.5, Set.of(), 0.0f, 0.0f);
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 45: no suitable method found for teleport(ServerWorld,double,double,double,Set<Object>,float,float)
serverPlayer.teleport(pocketDim, 0.5, 54.0, 0.5, Set.of(), 0.0f, 0.0f);
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 54: no suitable method found for teleport(ServerWorld,double,double,double,Set<Object>,float,float)
serverPlayer.teleport(targetWorld, spawnPos.x, spawnPos.y, spawnPos.z, Set.of(), 0.0f, 0.0f);
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 156: no suitable method found for teleport(ServerWorld,double,double,double,Set<Object>,float,float)
target.teleport(overworld, returnPos.x, returnPos.y, returnPos.z, Set.of(), 0.0f, 0.0f);
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 197: no suitable method found for teleport(ServerWorld,double,double,double,Set<Object>,float,float)
target.teleport(pocketDim, 0.5, 54.0, 0.5, Set.of(), 0.0f, 0.0f);
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 45: no suitable method found for teleport(ServerWorld,double,double,double,Set<Object>,float,float)
serverPlayer.teleport(pocketDim, 0.5, 54.0, 0.5, Set.of(), 0.0f, 0.0f);
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 54: no suitable method found for teleport(ServerWorld,double,double,double,Set<Object>,float,float)
serverPlayer.teleport(targetWorld, spawnPos.x, spawnPos.y, spawnPos.z, Set.of(), 0.0f, 0.0f);
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
Please fix this error by creating a new artifact with the corrected code.
The docs confirm the correct pattern is player.teleport(new TeleportTarget(world, pos, velocity, yaw, pitch, TeleportTarget.NO_OP)) — the previous attempts used the wrong TeleportTarget constructor (7 args with a Set). The correct constructor has 6 args without the Set.
All three files now use new TeleportTarget(world, pos, Vec3d.ZERO, yaw, pitch, TeleportTarget.NO_OP) — the correct 6-argument constructor without the Set<RelativeMovement> parameter that doesn’t exist in this version.
The compilation failed with this error:
Compilation failed with 8 error(s):
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 157: no suitable method found for teleport(TeleportTarget)
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 198: no suitable method found for teleport(TeleportTarget)
target.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 46: no suitable method found for teleport(TeleportTarget)
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 55: no suitable method found for teleport(TeleportTarget)
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 157: no suitable method found for teleport(TeleportTarget)
target.teleport(new TeleportTarget(overworld, returnPos, Vec3d.ZERO, 0.0f, 0.0f, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/command/LolbitCommand.java at line 198: no suitable method found for teleport(TeleportTarget)
target.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/TvScreenBlock.java at line 46: no suitable method found for teleport(TeleportTarget)
serverPlayer.teleport(new TeleportTarget(pocketDim, new Vec3d(0.5, 54.0, 0.5), Vec3d.ZERO, 0.0f, 0.0f, TeleportTarget.NO_OP));
^
ERROR in src/main/java/com/lolbittv/block/DimensionGatewayBlock.java at line 55: no suitable method found for teleport(TeleportTarget)
serverPlayer.teleport(new TeleportTarget(targetWorld, spawnPos, Vec3d.ZERO, 0.0f, 0.0f, TeleportTarget.NO_OP));
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
- src/main/java/com/lolbittv/command/LolbitCommand.java
- src/main/java/com/lolbittv/block/TvScreenBlock.java
- src/main/java/com/lolbittv/block/DimensionGatewayBlock.java
Please fix this error by creating a new artifact with the corrected code.
package com.lolbittv;
import net.fabricmc.api.ClientModInitializer;
public class LolbitTVClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
}
}