Jump to content

alowave

Members
  • Posts

    14
  • Joined

  • Last visited

alowave's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. 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"));
  2. 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 ?
  3. 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?
  4. I found Entity#setInvulnerable and it's works fine for me if i set it to true
  5. 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)
  6. 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
  7. 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.
  8. 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; } }
  9. 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.
  10. 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()
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.