Everything posted by Anon10W1z
-
[1.8] Override EntityFishHook
The problem with this is that you won't be able to reel the fish hook back in.
-
[1.7.10] Cancelling LivingAttackEvent
Try using event.entity rather than event.entityLiving
-
[1.8] [SOLVED] Rendering Custom TNT
Yeah, no problem. That's a common error; can't blame you The init method works too BTW.
-
[1.7.10] Cancelling LivingAttackEvent
Switch to LivingHurtEvent.
-
Making a generator
"I am new" Thanks, Sherlock. You can't just go around asking people to make stuff for you. That's the point of learning Java...
-
[1.8] Override EntityFishHook
You can't do this without a class transformer.
-
[1.8] [SOLVED] Rendering Custom TNT
Did you register the entity and the renderer?
-
[1.8] Override EntityFishHook
You shouldn't need to replace it. FishingHooks.java provides many helper functions to add and remove fish, junk, and treasure.
-
[1.7.10] How to make a Custom Tool Material
setupDecompWorkspace not setupDevWorkspace, the README is a lying bitch. Then quit and relaunch your IDE But how Do i add it to the original ToolMaterial class it wont allow me. And sorry for asking so many questions. You don't need to. Initialize a variable to EnumHelper.addToolMaterial.
-
Referencing instance of Player
Where are you trying to do this?
-
Looking for example Entity code
TheGreyGhost, lord of coding...how could you? Just kidding; it's not too hard to learn how to code an entity. This tutorial should help you.
-
Test Client crashes for no reason?
There is something null in the preInit method.
-
Access restrictions with Forge?
What exactly are you doing?
-
[Forge 1.8] How to Render Blocks in Inventory?
Item itemBlockSimple = GameRegistry.findItem("minecraftbyexample", "mbe01_block_simple"); ModelResourceLocation itemModelResourceLocation = new ModelResourceLocation("minecraftbyexample:mbe01_block_simple", "inventory"); Make sure you changed those lines to match your texture name and mod ID.
-
[SOLVED] Performance Bottleneck with Multithreading
No! Do not do that! There is ServerTickEvent, ClientTickEvent, etc...do some research on tick events. They get run 20 times/second.
-
[Forge 1.8] Mod Not Working!!! Need HELP!!!!!!!!
Show the mod code and build.gradle
-
[1.7.10] Getting total day duration
To add on to the previous reply, if every tick you add one to the time, it'll make time go twice the speed. 2 is 3 times, 3 is 4, and so on.
-
How to save a set of random variables on world creation?
Which line is null, specifically?
-
[1.8] Best approach to replace vanilla items?
If you don't want to tinker too much with the item registry, I suggest you remove the recipe for the vanilla bow, set its creative tab to null, and add the recipe for the new bow. Also, add a recipe so vanilla bows can be converted into the new bows. Look up how to remove crafting recipes.
-
Mystery: One class of my mod cannot be found in some rare cases
As a workaround, you can create a new instance of CrafterBlockTileEntity3, then do setSupportedRecipes(2)
-
Display Chat message
That's a blunt request... player.addChatComponentMessage(new ChatComponentText("message goes here"));
-
[1.8] Getting the players GameMode
He said this is singleplayer.
-
[1.8] Getting the players GameMode
http://www.minecraftforge.net/forum/index.php/topic,11560.msg59626.html#msg59626 EDIT: Minecraft.getMinecraft().playerController.getCurrentGameType();
-
[1.7.10]Spawning Lightning Bolts
Learn it. It will come handy.
-
[1.7.10]Spawning Lightning Bolts
It doesn't matter, and it depends on willingness to learn and effort.
IPS spam blocked by CleanTalk.