Jump to content

Shprqness

Members
  • Posts

    5
  • Joined

  • Last visited

Shprqness's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. So, i normally code bukkit. getting into forge is a big change, 1 issue i am running into is how to register events (i've been looking for 2 hours) classes -> Main: @Mod(modid = Styles.MOD_ID, name = Styles.MOD_NAME, version = Styles.VERSION) public class Client { @SidedProxy(clientSide = Styles.clientProxyClass, serverSide = Styles.serverProxyClass) public static ServerProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent e) { } @EventHandler public void init(FMLPreInitializationEvent e) { } @EventHandler public void postInit(FMLPostInitializationEvent e) { } } Event Class: public class Knockback { @SubscribeEvent public void knockback(LivingAttackEvent e) { if(e.entity instanceof EntityPlayer && e.source.getEntity() instanceof EntityPlayer) { EntityPlayer target = (EntityPlayer) e.entity; Vec3 look = e.source.getEntity().getLookVec().normalize(); double knockback = 0.5; target.addVelocity(look.xCoord-knockback, look.yCoord-knockback, look.zCoord-knockback); } } } Server side: (Still a little confused here) public class ServerProxy { } Client side: (once again, a little confused) public class ClientProxy { } Help is much appreciated (Yes i know, its a 1.8 build, however pointing me in the right direction would help)
  2. am i able to still use it?
  3. Is 1.8 supported? I only code 1.7 and 1.8 so please let me know!
  4. Sorry if i seem a little clueless, just getting into forge development, i am currently getting this issue - * What went wrong: Execution failed for task ':downloadClient'. > java.io.IOException: Server returned HTTP response code: 403 for URL: http://s3.amazonaws.com/Minecraft.Download/versions/1.7.10_pre4/1.7.10_pre4.jar Command Line - .\gradlew setupDecompWorkspace
  5. So, i want to know a few things, i code plugins, i don't really know if mod coding is worth my time, i want to be able to learn how to create my own minecraft client one day, i think forge is the way! Can you guys let me know what you think. Also, i am knew to the forums, i may be here for good!
×
×
  • Create New...

Important Information

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