Everything posted by alowave
-
[1.16.5] How to create FakePlayer
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"));
-
[1.16.5] Stroke blocks
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 ?
-
[1.16.5] 3x3 Craft Matrix in default inventory
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?
-
[1.16.5] How to make my Entity invincible to any type of damage
I found Entity#setInvulnerable and it's works fine for me if i set it to true
-
[1.16.5] How to make my Entity invincible to any type of damage
Can't see that method lol
-
[1.16.5] How to make my Entity invincible to any type of damage
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)
-
[1.16.5] fix drawHoveringText overlap
Hello, i'm trying to make GUI with buttons and hovering text on this, but when i hover on one of them, text overlapped by other button
-
[1.16.5] How can i create config for my mod?
Thank you all guys!
-
[1.16.5] How can i create config for my mod?
Hello! It's time to do the configuration for my mod, and I'm confused, how do I do it? In the old versions it was in net.minecraftforge.common.config.
-
[1.16.5] Save player who placed block with TileEntity
Okay, I found another method. LGTM! @Override public void onBlockPlacedBy(World worldIn, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) { Entity placerEntity = placer.getEntity(); if (placerEntity instanceof PlayerEntity) { this.placer = placerEntity; } }
-
[1.16.5] Save player who placed block with TileEntity
Cant see that method...
-
[1.16.5] Save player who placed block with TileEntity
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.
-
[1.16.5] How to get DedicatedServer instance on new version
Thank you all! I will consider both options.
-
[1.16.5] How to get DedicatedServer instance on new version
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()
IPS spam blocked by CleanTalk.