Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GotoLink

Members
  • Joined

  • Last visited

Everything posted by GotoLink

  1. By the way Block#RegisterIcons(IconRegister) doesn't exist. It's Block#registerIcons(IconRegister).
  2. You need to extend Event, or one of its subclasses, depending on what your event is.
  3. You need to call the generation. Like with a IWorldGenerator, registered with GameRegistry.registerWorldGenerator(IWorldGenerator)
  4. You can use forge events system. Make an event class, add parameters and options, then trigger it with MinecraftForge.EventBus#post(Event). As simple as that.
  5. Is your extended properties registered ? Does your onEntityConstructing get called ?
  6. Do not call tess.draw() either.
  7. 1/ You don't need to cast here. 2/ mc.thePlayer can be null. Rendering happens before any player is connected.
  8. Client-side only method.
  9. I just noticed you don't use anything from the packet data. And you are using a string to store two integers. And the handlePackets method in your packet handler is 99% useless...splitting a string in 3 and putting it back together.
  10. You might want to use something like ClassPatchManager, if you are interested into *.patch files.
  11. Try not to use static methods. You can get the container with EntityPlayer-openContainer and casting down. You seem to have two channels, but your packet handler does the same thing for both. We need the code which sends the packet too.
  12. You need to use a IRecipe implementation that supports the ore dictionary. For example, ShapedOreRecipe.
  13. GL11.glRotatef(value1, 0.0F, 1.0F, 1.0F); GL11.glScalef(1.0F / value2, 1.0F, 1.0F); GL11.glRotatef(-value1, 0.0F, 1.0F, 1.0F); So, that's all the confusion is doing... Well basically set a render tick handler, and do the same. Obviously you can set the values to whatever you feel like using.
  14. A different lwjgl version or video setting in game maybe ?
  15. ClassCircularityError is probably an error he made. Except for "tweakers priority" added by Forge (which is optional), i don't see anything that would make patching any different in 1.6.4. This code you are showing doesn't make sense to me. It looks like it is visiting his own classes and patch them afterwards... Why would anyone do that instead of writing the code directly ? And using (net.minecraft.block.BlockGrass, net/minecraft/client/renderer/texture/IconRegister) unobfuscated class name too ! Anyway, you can do that to Minecraft classes indeed, if you don't want to touch Mojang code directly. Though unnecessary work in my opinion.
  16. Maybe The End can only spawn "monster" CreatureType ? Or maybe the end stone prevents most spawn ? You might want to show at least one of those chicken classes.
  17. if (world.isRemote) { EntityBasicCar car = new EntityBasicCar(world); car.posX = x + 0.5; car.posY = y + 1.5; car.posZ = z + 0.5; world.spawnEntityInWorld(car); Error in server side check. You might want to use Entity#setPosition(double,double,double)
  18. Probably need to override Entity#shouldRiderSit() and Entity#updateRiderPosition()
  19. If you changed something that belongs to the server (food effects) the mod need to be installed on server side. Considering the server has all rights and client has none, you can't check what mod is in effect before being accepted by it. Thus the answer is logically: no. It isn't that big of a deal anyway, since you can make a profile without the mod installed.
  20. Actually the coremod shouldn't launch at all in dev environment. You are supposed to patch minecraft files when developing. Then only include the compiled transformers into the coremod jar. You can include a mod into a coremod jar by setting FMLCorePluginContainsFMLMod: true in the Manifest file.
  21. You failed to use brackets correctly. Remove all that "entityid" part.
  22. if(!worldObj.isRemote && this.riddenByEntity != null) { if(Minecraft.getMinecraft().gameSettings.keyBindForward.pressed Ultimate server crash. Use a TickHandler to catch the keys and send packets to update the entity.
  23. You could also use Entity#getPickedResult(MovingObjectPosition) though i don't know what you want actually. Entity entity = (EntityLiving)Minecraft.getMinecraft().objectMouseOver.entityHit;//useless cast Entity entity1 = entity.getClass().getConstructor(new Class[] {World.class}).newInstance(new Object[] {world});//why ? I don't understand that part either.
  24. EntityList.getEntityID(Entity) This is what you are looking for. If you want to support a mod added entity, you'd better use EntityList.getEntityString(Entity) And make a different spawner egg to support names instead.
  25. Use lowercase for packages.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.