Everything posted by coolboy4531
-
[1.7.2] Persistant NBT Data [Solved]
You better null check [!=null], create an if statement to check if it is not null before proceeding.
-
[1.6.4] Give Player items at world generation
Why not try events like WorldLoadEvent and stuff?
-
[1.7][SOLVED]Compare 2 items
Can we see your DimensionShift class?
-
WorldType ChunkProvider is not working
What are you trying to make it look like?
-
Potion Effect Particles
You can create a custom Potion Effect and override methods that cause the particles to spawn.
-
WorldType ChunkProvider is not working
Hmm. I don't see anything unusual. Let me take a look at any classes that correspond to the block you are trying to use. BlockDirte would be a good class to show to me. --- Let me get this straight, when you change: p_147424_3_[j3 += short1] = Blocks.stone; to p_147424_3_[j3 += short1] = ModTest.BlockDirte; It doesn't generate, but when you change it back - it generates?
-
Item Enchantment effect
You mean like the Enchanted Golden Apple? Look at the source of the golden apple. Not happenin' son. "The more you learn."
-
[1.7.2] World Gen crashes game
What are you trying to change null into? It shouldn't just change back by itself... -.-'
-
[1.7] Moving where ".lang" file is found
Most likely not, the File path is directly hardcoded.
-
WorldType ChunkProvider is not working
Can we see your ModTest class? Thanks :3
-
[1.7.2] Empty bucket + Custom Fluid returns a bucket of water?
Example: public static Item example; @EventHandler public void preInit(FMLPreInitializationEvent e) { example = new ExampleItem().setUnlocalizedName("exampleItem"); } Come on dude, learn basic Java before modding.
-
[FORGE 1.7.2] Crashes when running client through Eclipse
Found it. Try using this: http://www.minecraftforum.net/topic/2244418-172-windows-how-to-setup-a-minecraftforge-172-workspace/
-
[FORGE 1.7.2] Crashes when running client through Eclipse
That error is suppose to happen because of a Forge mistake.
-
Mob refuses to move faster, but will move slower when adjusting attributes?
Hmm. There might be another way. Can I see your whole entire Entity class - real quick?
-
Mob refuses to move faster, but will move slower when adjusting attributes?
Have you tried @Override ?
-
[1.7.2] Empty bucket + Custom Fluid returns a bucket of water?
How did you do - and expect it to load? Forge doesn't read it in class construction - only in the preInit method. public static Item BucketHotSpring = new BucketHotSpring(blockCrystalFluid, FluidCrystalID);
-
Client doesn't want to connect to server? (Eclipse & modding)
Client errors, happens with un-modded (vanilla) launchers. Try restarting your game launcher (client) and its all good.
-
[1.7.2][Dimensions] Return portal is a flat platform
Never created a dimension in 1.7, but I'd have to bet that you should change: if (this.worldServerInstance.provider.dimensionId != ConfigurationHelper.Eden) to this: if (this.worldServerInstance.provider.dimensionId == ConfigurationHelper.Eden) For your sake, this is located in your Teleporter [TeleporterEden]
-
[1.7.2][Dimensions] Return portal is a flat platform
You probably used some code from the Sky [End] portal generator.
-
[1.7.2]Access Transformer not working
Not sure - read somewhere that you need an empty line in your MANIFEST.MF, like this: Manifest-Version: 1.0 FMLCorePlugin: com.fluffy.lantern.LanternPlugin
-
[1.7.2] Crash when trying to make a simple GUI mod
I don't think that's your full crash report.
-
[1.7.2] Teleporting to where your cursor is at?
I'll try and give you the basic fields you need and you can rearrange them (if you really know how to use these, if not I'll give you cheats). * looks at 1 month old stuff * This might be a long post, but worth it for people to learn some things. Like I said I created a Teleportation Handler with a teleport method. public void teleport(World world, EntityPlayer player) I checked if the world is not remote[server]: (!world.isRemote) Then got the player's position - adding the yCoord (++) by 1 to make sure you aren't inside the block. Vec3 vec3 = player.getPosition(1.0F); vec3.yCoord++; Then I get the look position, and send an invisible MovingObjectPosition - we'll save the block coord it hits later. I use [World#clip] because its a hardcoded method that helps with this - don't know what to call it Vec3 lookVec = player.getLook(1.0F); Vec3 aVector = vec3.addVector(lookVec.xCoord * 50.0D, lookVec.yCoord * 50.0D, lookVec.zCoord * 50.0D); MovingObjectPosition movingObjPos = world.clip(vec3, aVector); I then check if the MovingObject [movingObjPos] is not null, and the [typeOfHit] is a block (MovingObjectPosition.MovingObjectType.BLOCK) proceeding, I create 3 ints and put each int with the [blockX, blockY, blockZ] of the MovingObject [movingObjPos] I create an instance of the player as EntityPlayerMP - below if you are confused and/or need help. EntityPlayerMP playerMP = (EntityPlayerMP)player; Once again, I check if EntityPlayerMP's ServerNetHandler's Connection is not closed. if (!playerMP.playerNetServerHandler.connectionClosed) I set the PlayerMP's position whilst updating it (setPositionAndUpdate): playerMP.setPositionAndUpdate((double) blockX, (double) ((float) blockY + 1F), (double) blockZ); Be sure after that you set the player's fallDistance to 0 floats [0F]. Phew. I'm done
-
[1.6.4] World Gen chance?
Can I see your GenerateStructure() method?
-
Mob invisible, makes sounds, has shadow, has hitbox, just can't see it.
*facedesk* Let me repeat "exactly" what darty11 said. @EventHandler public void PreInit(FMLPreInitializationEvent event) { } If you actually read the changes in 1.7 you would know. You are placing it in FMLInitializationEvent; Forge doesn't use that anymore for these kinds of registrations.
-
[SOLVED] Changing eye height / camera render viewpoint
iChun's Morph Mod changes the camera viewpoint without using ASM. https://github.com/iChun/Morph
IPS spam blocked by CleanTalk.