• Recently Browsing

    No registered users viewing this page.

  • Posts

    • so basically i made an event that checks if the player is crouching. If you are crouching, you get 2 potion effects. This worked, but when i released shift the potion effects still appeared on my gui, though the effects weren't doing anything. How do i fix this? package com.watizdat.mysterymod.events; import com.watizdat.mysterymod.MysteryMod; import net.minecraft.entity.LivingEntity; import net.minecraft.potion.EffectInstance; import net.minecraft.potion.Effects; import net.minecraftforge.client.event.InputUpdateEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus; @Mod.EventBusSubscriber(modid = MysteryMod.MOD_ID, bus = Bus.FORGE) public class PlayerSneakEvent { @SubscribeEvent public static void playerSneakEvent(InputUpdateEvent event){ if(event.getMovementInput().sneaking) { System.out.println("hello"); LivingEntity livingEntity = event.getEntityLiving(); livingEntity.addPotionEffect(new EffectInstance(Effects.STRENGTH, 20, 2)); livingEntity.addPotionEffect(new EffectInstance(Effects.SLOWNESS, 20, 2)); } } }  
    • Tried it. Doesn't work, gives the same message as before. Although the folder for the forge version has been created in the versions folder. Should I try deleting all forge related folders and try again? Or maybe a clean reinstall of minecraft? Any other solutions? 
    • So I'm attempting to create a chess game in java that uses tileentities for each piece. I have one block that you place and when you right click it, it creates the board and chess pieces. However, I cannot find out how to bring the chess pieces I made into the world. I know you do worldln.setBlockState() but I can't find out how to access the block i created and set its properties as a tile entity. Any help would be appreciated. Also from a design perspective, one person told me to use the master slave pattern and have my block that creates the board hold all the blocks, but I don't know how to communicate a block back to the original board creator block. Thank you!   Edit: If anyone could give any advice on this it would be extremely helpful. Thank you!!!
    • Really old Minecraft versions are no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  • Topics

  • Who's Online (See full list)