Hello! I making mod with a drill, and i need my TE to break block as FakePlayer due to mod can be used with plugins like WorldGuard and it's would break blocks in regions (grief). I created that but seems like the player is OP or something, because even if i place my drill in region it's not saying that he can't break block:
(Inside my TileEntity)
private static FakePlayer fakePlayer = new FakePlayer((ServerWorld) getWorld(), new GameProfile(UUID.randomUUID(), "DrillBlockFake"));
Hello! I making the mod that can show you random ore (one of coal, diamond, iron and etc.) in radius of 10 blocks for 10 seconds if you eat special dish. How can i stroke the block to be seen through the others ?
Hello! I want to make a mod, that gives a player ability to upgrade their inventory craft matrix to 3x3 when they eat an some upgrade item. How can i override default player inventory to upgrade craft matrix?
Hello, my question explained in title, there is my entity class:
So, little introducion, i want to make entity, that always be following player and it's have texture of specific block, now i need to make it invincible and neutral to all mobs, i figured out how to make my entity neutral, but can't understand how to make it invincible. (i take codebase from SlimeEntity)
It is possible to save player who placed block with TileEntity? I need it to track who breaks block to check if a player with his level can break this type of block.
Hello, i need to access DedicatedServer instance in my mod, but i only find how to get IntegratedServer instance on 1.16.5. For example, on 1.12.2 i need to just:
FMLCommonHandler.instance().getMinecraftServerInstance()