• Recently Browsing

    No registered users viewing this page.

  • Posts

    • I have this problem from i installed the latest java 8 version, wich is 241, i have LauncherFenix and when i try to open minecraft 1.14.4 with forge it says "Error at start the game". Ive tried to reset the launcher but it dosent chage anything, when i used the previous java version (240) i hadn't that problem, i tried too to reinstall forge but anything changed
    • package com.eugeny.mobscountmod.init; import java.util.List; import com.eugeny.mobscountmod.MobsCountMod; import com.mojang.datafixers.FunctionType.Instance; import net.minecraft.entity.Entity; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.item.ItemEntity; import net.minecraft.entity.monster.MonsterEntity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.Item; import net.minecraft.item.ItemGroup; import net.minecraft.item.ItemStack; import net.minecraft.item.Items; import net.minecraft.potion.EffectInstance; import net.minecraft.potion.Effects; import net.minecraft.util.ActionResult; import net.minecraft.util.DamageSource; import net.minecraft.util.Hand; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus; import net.minecraftforge.registries.ObjectHolder; import net.minecraft.block.BlockState; import net.minecraft.block.Blocks; @Mod.EventBusSubscriber(modid = MobsCountMod.MOD_ID, bus = Bus.MOD) @ObjectHolder(MobsCountMod.MOD_ID) public class ItemInit { @ObjectHolder(MobsCountMod.MOD_ID + "some_item") private static final Item some_item = null; @SubscribeEvent public static void registerItems(final RegistryEvent.Register<Item> event) { event.getRegistry().register(new Item(new Item.Properties().group(ItemGroup.COMBAT)) { @Override public ActionResult<ItemStack> onItemRightClick(World worldIn, PlayerEntity playerIn, Hand handIn) { MobsCountMod.LOGGER.info("RIGHT CLICK"); if (!playerIn.addItemStackToInventory(new ItemStack(Blocks.BEDROCK, 1))) { ItemEntity item = new ItemEntity(worldIn, playerPos.getX(), playerPos.getY(), playerPos.getZ(), new ItemStack(Items.BEDROCK, 1)); worldIn.addEntity(item); } return super.onItemRightClick(worldIn, playerIn, handIn); }; }.setRegistryName("some_item")); } } P.S. It logs "RIGHT CLICK".
    • It doesn't work somewhy. No errors and no item.
  • Topics

  • Who's Online (See full list)