Everything posted by coolboy4531
-
[1.7.2] New biome generate in new dimension
Why are you registering / making your items during class construction? They need to be in a method (preInit) with (FMLPreInitializationEvent) for Forge to read. Check this out: http://www.wuppy29.com/minecraft/modding-tutorials/forge-modding-1-7/
-
Items in Inv
That most likely means - its null.
-
Items/Blocks not loading in 1.7
You named your preInit - FMLInitializationEvent (instead of) FMLPreInitializationEvent
-
ASM Coremod
What do you mean its illegal in 1.7.2? Are you trying to replace the whole class, or patch some methods/fields?
-
[1.7.2] Teleporting to where your cursor is at?
I made a teleport wand (cursor location) a few weeks ago, in Forge 10.12.0.997, I will tell you how I did it [ !!! INCOMING: WALL OF TEXT !!! ] I created a special class for the teleportation and made a method [void] method with (World, EntityPlayer) for the whatchamacallit [forgot ><, someone please tell me] Checking if the world is NOT remote, I get the player's look location [getLook] and position [getPosition] through vectors (Vec3) [vector, lookVector], and multiplying the lookVector (x, y, z) by 50 doubles (50D) to another vector (addedVector). Then I used (World.clip(Vec3, Vec3)) as a MovingObjectPosition to create an object (that helps locate the error you are looking at). Checking if the moving object is not null, and the thing it hits is a block, I save the coordinates of where it hits, and teleport the player to the location of the saved coordinates through the server net handler, making fall distance to 0F to remove fall damage. I might give you PSUEDO CODE if you need more help/this makes NO sense.
-
[1.6.4] [NEW PROBLEM] Problem with damaging an item after crafted with.
I hope you know what this is doing. int d = j.getItemDamage(); if(d > 128) { inv.setInventorySlotContents(i, null); } This is checking when - your item is above the max damage (greater than 128). You can check if it is at 0, then remove the item, but the problem is that you probably don't even know what (d>128) really means - d (greater than) 128. You should use (checks if it is equal to 0 or below 0. [0,-1,-2,-3,etc.]) int d = j.getItemDamage(); if(d <= 0) { //break / delete item }
-
Brand new at this getting issues loading textures 1.7
In your eclipse workspace, it should be (in the folder) src -> main -> resources -> assets -> [modid] -> textures -> items -> [itemName].png It your case it should be: src -> main -> resources -> assets -> extratools -> textures -> items -> EnderShard.png
-
Spawning a custom entity?
What Forge version are you using? I'm using 10.12.0.1024 - and this works: Note: You may have to change some fields to match your needs. Pseudo Code EntityRegistry.registerGlobalEntityID(MB_FireSkeleton.class, "FireSkeleton", EntityRegistry.findGlobalUniqueEntityId()); If you want a custom renderer use this: Pseudo Code RenderingRegistry.registerEntityRenderingHandler(MB_FireSkeleton.class, new RenderFireSkeleton());
-
Spawning a custom entity?
If you're using 1.7+: ------------------------- Use PreInit (FMLPreInitializationEvent) not Init (FMLInitializationEvent) If you're using 1.6 (or below): -------------------------------------- Not sure.
-
[Solved] Bounding boxes [1.7.2]
Why not use a switch?
-
[1.7.2] Multi-line chats & text colour
Yeah, we all have been having this problem. Even for me, I can't find a fix on how to use color on a seperate line. You can however do the color code / color enum for it, but changing the GUI scale for chat would make that color discontinue. I'll check back if I ever find a fix for it, or someone finds a fix (in this subject)
-
[1.7.2] Is possible to change main menu music?
You can cancel the main menu music, and replace it with events. > PlayBackgroundMusicEvent <
-
[1.7.2]Creating an item that opens a gui
Dude. Learn basic Java before coming to mod. You don't put another method inside a method, to use the onItemRightClick you need to create your own Item class.
-
Enchanting
Not the most efficient way, but I have some ideas that might work. If your damage is damageable, let's say like a sword... then you could save the damage of the item, and use it later. Remove the item with - Smite - from your inventory, then spawn another item with your needs (Sharpness) then apply the damage that you saved earlier.
-
[1.7.2]Best way to add an entity spawn
I think he means that its not biomeList, he can't find it. @OP: Probably as field/func names.
-
[1.7.2] Entity not spawning
Have you even set the spawn rates (and made it spawnable) in your main class (where you register your stuff)?
-
Swap tools for an item when reaching 1 durability - Need Help.
Why don't you check for the durability in those methods, instead of returning a boolean?
-
(1.7.2) How many ticks does the world get each second?
Not sure what you are asking... but there are 20 ticks per second.
-
[Solved] Block rendered as Item, crash when placed [1.7.2]
Do all your registering stuff in preInit (FMLPreInitializationEvent)
-
[1.7.2]Item right click for a GUI in 1.7?
Minecraft minecraft = Minecraft.getMinecraft(); if (minecraft.renderViewEntity != minecraft.thePlayer) { return; } if (YOURGUISCREEN != null) { minecraft.displayGuiScreen(YOURGUISCREEN); } That's what I use for displaying things without the Player instance, probably not the best, but works.
-
[Solved] [1.6.4] Disabling the F3 menu/coordinates
I never sad that cancels the GuiIngame menu.
-
[Solved] [1.6.4] Disabling the F3 menu/coordinates
RenderGameOverlayEvent?
-
Get Entity Hit by Custom Arrow.
How am I get to get the entity hit by a custom arrow. For example, I'm going to create a fire bow (w/o enchantments) - not doing this but just an example. Is there a method / event I can use? I am extending my arrow class to EntityArrow (also). Any help would be appreciated!
-
how to update forge
I'm not sure what you mean, you mean you can't install it? Well, I hope you have read the tutorial. http://www.minecraftforge.net/forum/index.php/topic,14048.0.html
-
[1.7.2] Block list
Okay, I know this is another one of those nub questions lmao. Couldn't solve it myself... Is there a way to retrieve all blocks like Block.blockList or something? It was removed in 1.7
IPS spam blocked by CleanTalk.