Develop a Minecraft mod that introduces a customizable "Copycat Block" modeled after a Koenigsegg Jesko car, designed to fit aroumd a 3x9x1 platform. The full structure should have dimensions of 5x11x3, allowing players to replicate and create large-scale designs, with options for different textures and colors. Include permissions for usage and a configuration file for customizing the block's properties. The copycat blocks should be working like the mod "framed blocks" or "create copycats".
Build the Fabric 1.21.11 project structure and metadata.
Add the configurable Copycat Block, block entity storage, placement/use behavior, and permissions.
Add client rendering, item models, language, recipes, and configuration resources.
Created a complete Fabric 1.21.11 project with Yarn mappings, split client source sets, Gradle configuration, and mod metadata.
Added the configurable Jesko Copycat Block with:
Block entity-backed copied block appearance
Right-click block copying
Sneak-right-click clearing
Copied appearance preserved when broken and replaced
Configurable hardness, blast resistance, permissions, and block-entity appearance behavior
Added server-side permission checks using the configured permission level.
Added client block-entity rendering that displays the copied block model.
Added registration, creative-tab integration, crafting recipe, block state, item definition, model, language file, and generated JSON configuration support.
The compilation failed with this error:
Compilation failed with 20 error(s):
ERROR in src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java at line 4: cannot find symbol
import net.minecraft.client.render.CameraRenderState;
^
symbol: class CameraRenderState
location: package net.minecraft.client.render
ERROR in src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java at line 31: cannot find symbol
CameraRenderState camera
^
symbol: class CameraRenderState
location: class CopycatBlockEntityRenderer
ERROR in src/main/java/com/kodari/jeskocopycat/item/CopycatBlockItemData.java at line 36: cannot find symbol
return Registries.BLOCK.getOrEmpty(identifier)
^
symbol: method getOrEmpty(Identifier)
location: variable BLOCK of type DefaultedRegistry<Block>
ERROR in src/main/java/com/kodari/jeskocopycat/interaction/CopycatInteraction.java at line 32: isClient has private access in World
if (world.isClient) {
^
ERROR in src/main/java/com/kodari/jeskocopycat/interaction/CopycatInteraction.java at line 38: cannot find symbol
|| !serverPlayer.hasPermissionLevel(CopycatConfig.get().permissionLevel)) {
^
symbol: method hasPermissionLevel(int)
location: variable serverPlayer of type ServerPlayerEntity
ERROR in src/main/java/com/kodari/jeskocopycat/block/CopycatBlock.java at line 36: isClient has private access in World
if (!world.isClient && world.getBlockEntity(pos) instanceof CopycatBlockEntity blockEntity) {
^
ERROR in src/main/java/com/kodari/jeskocopycat/block/CopycatBlock.java at line 46: onBreak(World,BlockPos,BlockState,PlayerEntity) in CopycatBlock cannot override onBreak(World,BlockPos,BlockState,PlayerEntity) in Block
public void onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) {
^
ERROR in src/main/java/com/kodari/jeskocopycat/block/CopycatBlock.java at line 45: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/kodari/jeskocopycat/block/CopycatBlock.java at line 47: isClient has private access in World
if (!world.isClient && !player.isCreative() && world.getBlockEntity(pos) instanceof CopycatBlockEntity blockEntity) {
^
ERROR in src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java at line 21: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/kodari/jeskocopycat/block/CopycatBlock.java at line 46: onBreak(World,BlockPos,BlockState,PlayerEntity) in CopycatBlock cannot override onBreak(World,BlockPos,BlockState,PlayerEntity) in Block
public void onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player) {
^
ERROR in src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java at line 4: cannot find symbol
import net.minecraft.client.render.CameraRenderState;
^
symbol: class CameraRenderState
location: package net.minecraft.client.render
ERROR in src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java at line 31: cannot find symbol
CameraRenderState camera
^
symbol: class CameraRenderState
location: class CopycatBlockEntityRenderer
ERROR in src/main/java/com/kodari/jeskocopycat/interaction/CopycatInteraction.java at line 32: isClient has private access in World
if (world.isClient) {
^
ERROR in src/main/java/com/kodari/jeskocopycat/block/CopycatBlock.java at line 36: isClient has private access in World
if (!world.isClient && world.getBlockEntity(pos) instanceof CopycatBlockEntity blockEntity) {
^
ERROR in src/main/java/com/kodari/jeskocopycat/block/CopycatBlock.java at line 47: isClient has private access in World
if (!world.isClient && !player.isCreative() && world.getBlockEntity(pos) instanceof CopycatBlockEntity blockEntity) {
^
ERROR in src/main/java/com/kodari/jeskocopycat/block/CopycatBlock.java at line 45: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java at line 21: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/kodari/jeskocopycat/item/CopycatBlockItemData.java at line 36: cannot find symbol
return Registries.BLOCK.getOrEmpty(identifier)
^
symbol: method getOrEmpty(Identifier)
location: variable BLOCK of type DefaultedRegistry<Block>
ERROR in src/main/java/com/kodari/jeskocopycat/interaction/CopycatInteraction.java at line 38: cannot find symbol
|| !serverPlayer.hasPermissionLevel(CopycatConfig.get().permissionLevel)) {
^
symbol: method hasPermissionLevel(int)
location: variable serverPlayer of type ServerPlayerEntity
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- CameraRenderState
ACTION: Create these classes or check imports
MISSING METHODS:
- getOrEmpty(Identifier)
- hasPermissionLevel(int)
ACTION: Check method names and signatures
FILES TO INVESTIGATE:
- src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java
- src/main/java/com/kodari/jeskocopycat/item/CopycatBlockItemData.java
- src/main/java/com/kodari/jeskocopycat/interaction/CopycatInteraction.java
- src/main/java/com/kodari/jeskocopycat/block/CopycatBlock.java
- src/main/java/com/kodari/jeskocopycat/block/CopycatBlock.java
- src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java
- src/main/java/com/kodari/jeskocopycat/interaction/CopycatInteraction.java
- src/main/java/com/kodari/jeskocopycat/item/CopycatBlockItemData.java
Please fix this error by creating a new artifact with the corrected code.
Correct the 1.21.11 render-state package and renderer override.
Update registry, world-side, permission, and block replacement APIs.
Preserve copycat drops through the current server-side replacement hook.
Fixed the Fabric 1.21.11 compilation errors:
Moved
CameraRenderStateimport tonet.minecraft.client.render.state.Replaced
Registries.BLOCK.getOrEmpty()withgetOptional().Updated
world.isClienttoworld.isClient().Replaced
hasPermissionLevel()withserverPlayer.getCommandSource().hasPermissionLevel(...).Replaced the removed
onBreak()override with the 1.21.11onStateReplaced(...)hook.Preserved custom copycat block drops during block replacement.
The compilation failed with this error:
Compilation failed with 6 error(s):
ERROR in src/main/java/com/kodari/jeskocopycat/item/CopycatBlockItemData.java at line 36: no suitable method found for getOptional(Identifier)
return Registries.BLOCK.getOptional(identifier)
^
ERROR in src/main/java/com/kodari/jeskocopycat/interaction/CopycatInteraction.java at line 39: cannot find symbol
.hasPermissionLevel(CopycatConfig.get().permissionLevel)) {
^
symbol: method hasPermissionLevel(int)
location: class ServerCommandSource
ERROR in src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java at line 21: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/kodari/jeskocopycat/item/CopycatBlockItemData.java at line 36: no suitable method found for getOptional(Identifier)
return Registries.BLOCK.getOptional(identifier)
^
ERROR in src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java at line 21: method does not override or implement a method from a supertype
@Override
^
ERROR in src/main/java/com/kodari/jeskocopycat/interaction/CopycatInteraction.java at line 39: cannot find symbol
.hasPermissionLevel(CopycatConfig.get().permissionLevel)) {
^
symbol: method hasPermissionLevel(int)
location: class ServerCommandSource
=== COMPILATION ERROR ANALYSIS ===
MISSING METHODS:
- hasPermissionLevel(int)
ACTION: Check method names and signatures
FILES TO INVESTIGATE:
- src/main/java/com/kodari/jeskocopycat/item/CopycatBlockItemData.java
- src/main/java/com/kodari/jeskocopycat/interaction/CopycatInteraction.java
- src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java
- src/main/java/com/kodari/jeskocopycat/item/CopycatBlockItemData.java
- src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java
- src/main/java/com/kodari/jeskocopycat/interaction/CopycatInteraction.java
Please fix this error by creating a new artifact with the corrected code.
Replaced
getOptionalwith Yarn 1.21.11’sgetOptionalValue.Replaced
hasPermissionLevelwithServerCommandSource.hasPermission.Updated
updateRenderStateto the 1.21.11 renderer signature with camera position and crumbling-overlay parameters.Added the required renderer imports.
The corrected artifact has been applied to the affected files.
The compilation failed with this error:
Compilation failed with 6 error(s):
ERROR in src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java at line 8: cannot find symbol
import net.minecraft.client.render.command.CrumblingOverlayCommand;
^
symbol: class CrumblingOverlayCommand
location: package net.minecraft.client.render.command
ERROR in src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java at line 29: cannot find symbol
CrumblingOverlayCommand crumblingOverlay
^
symbol: class CrumblingOverlayCommand
location: class CopycatBlockEntityRenderer
ERROR in src/main/java/com/kodari/jeskocopycat/interaction/CopycatInteraction.java at line 39: cannot find symbol
.hasPermission(CopycatConfig.get().permissionLevel)) {
^
symbol: method hasPermission(int)
location: class ServerCommandSource
ERROR in src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java at line 8: cannot find symbol
import net.minecraft.client.render.command.CrumblingOverlayCommand;
^
symbol: class CrumblingOverlayCommand
location: package net.minecraft.client.render.command
ERROR in src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java at line 29: cannot find symbol
CrumblingOverlayCommand crumblingOverlay
^
symbol: class CrumblingOverlayCommand
location: class CopycatBlockEntityRenderer
ERROR in src/main/java/com/kodari/jeskocopycat/interaction/CopycatInteraction.java at line 39: cannot find symbol
.hasPermission(CopycatConfig.get().permissionLevel)) {
^
symbol: method hasPermission(int)
location: class ServerCommandSource
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- CrumblingOverlayCommand
ACTION: Create these classes or check imports
MISSING METHODS:
- hasPermission(int)
ACTION: Check method names and signatures
FILES TO INVESTIGATE:
- src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java
- src/main/java/com/kodari/jeskocopycat/interaction/CopycatInteraction.java
- src/main/java/client/java/com/kodari/jeskocopycat/client/CopycatBlockEntityRenderer.java
- src/main/java/com/kodari/jeskocopycat/interaction/CopycatInteraction.java
Please fix this error by creating a new artifact with the corrected code.
Correct the 1.21.11 renderer callback type and signature.
Replace the unavailable command permission API with the server-player permission check supported by this mapping.
Fixed the remaining compilation errors:
Replaced the missing
CrumblingOverlayCommandimport withModelCommandRenderer.CrumblingOverlayCommand.Updated the renderer’s
updateRenderStateparameter type.Replaced the unavailable integer permission method with:
JavaserverPlayer.getPermissions().hasPermission( new Permission.Level(PermissionLevel.fromLevel(permissionLevel)) )Confirmed block lookup uses
Registries.BLOCK.getOptionalValue(identifier).
The corrected artifact has been applied.
There is only 1 block while the stucture needs to be buildt with around 70-85 block that wrpas around a 3x7-9 platfrom, plus some of the blocks should have multiple copycat parts
Trace the current structure-generation and copycat-part code.
Expand the structure into the requested 3×7–9 platform wrapper with varied copycat parts and verify registrations/assets.
The current layout would place 103 blocks, so I’m tightening it to 83 blocks: a 3×9 platform, two-layer perimeter, and eight raised corner/side pieces. Those eight pieces will render two copied parts each.
Added
CopycatStructureGenerator, triggered by sneak-clicking an existing copycat block with an empty hand.The generated structure contains 83 copycat blocks arranged around a 3×7 platform.
Added perimeter layers and raised side elements for a wrapped platform design.
Extended
CopycatBlockEntityto support multiple copied parts per block.Updated the client render state and renderer to render every copycat part.
Eight raised blocks contain multiple parts, including dark oak logs and lanterns.
Existing single-part copycat blocks remain compatible through legacy data loading.
There is still only one block, MAKE THAT SO THERE IS 1 BLOCK FOR EVERY PART OF THE CAR plus fix the issue with blocks copying bc i can't put blocks in it
Map the current car-part layout and placement interaction.
Generate one copycat block per car part and make block insertion work reliably.
Update rendering/state handling only where required for multi-part blocks.
Reworked the generated car structure to contain 80 individual copycat blocks:
27 blocks for the 3×9 platform
18 side supports
14 glass side sections
6 front/rear bumper blocks
15 raised roof/details blocks
Removed the multi-part lantern block so every car part now has its own copycat block.
Fixed block insertion by validating the held item as a
BlockItemdirectly instead of relying onBlock.getBlockFromItem.Added block-entity synchronization after copying, so changes are sent to the client and become visible immediately.
Removed duplicate update handling that could prevent copied blocks from refreshing correctly.
The corrected artifact has been applied.
package com.kodari.jeskocopycat;
import com.kodari.jeskocopycat.block.entity.ModBlockEntities;
import com.kodari.jeskocopycat.client.CopycatBlockEntityRenderer;
import net.fabricmc.api.ClientModInitializer;
import net.minecraft.client.render.block.entity.BlockEntityRendererFactories;
public class JeskoCopycatClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
BlockEntityRendererFactories.register(ModBlockEntities.COPYCAT_BLOCK_ENTITY, CopycatBlockEntityRenderer::new);
}
}