
TheRealMcrafter
Forge Modder-
Posts
137 -
Joined
-
Last visited
Everything posted by TheRealMcrafter
-
I have some beta testers that are not allowed to share my download link. I shipped my mod with a unique string for each beta tester. I want, for the first time my mod is loaded, to send that string to my file. Then, if I have two of the same strings in my repo file, that person is sharing the link.
-
[SOLVED] [1.8] Crash when crafting my new items
TheRealMcrafter replied to TheCMaxGuy's topic in Modder Support
GameRegistry.addShapelessRecipe(new ItemStack(TestMod1.item2), new Object[]{Items.water_bucket, new ItemStack(Items.rotten_flesh, 64)}); Your problem is here: Items.rotten_flesh, 64 This is telling Minecraft you want to use rotten flesh with a metadata of 64, which doesn't exist, so it's throwing a NullPointerException. You can't use more than one item while crafting in the vanilla crafting table. You would have to make your own crafting handler. -
Been looking around for a while and I cant find anything. Is it possible (without coremods or crazy Java wizardry) to either A) Edit a file in my GitHub repository (on github.com) and save the changes while in a separate thread by using OutputStreamWriter, or B) Download said file, edit it locally, and re-upload to my GitHub repo, via the aforementioned separate thread? I'm just grasping at straws here, I have no idea if any of this makes sense. Thanks in advance. -TheRealMcrafter
-
Spawing client side isnt working[1.7.10]
TheRealMcrafter replied to BoonieQuafter-CrAfTeR's topic in Modder Support
What??? -
[1.7.10] How to make an item shoot a beam?
TheRealMcrafter replied to shmcrae's topic in Modder Support
If I had to guess, I'd say its in net.minecraft.client.renderer Just look at how vanilla does it, and implement it the same way in your mod -
onUpdate method in item class not working
TheRealMcrafter replied to TheDoctorSoda's topic in Modder Support
+1 Your class should extend Item. -
[1.8] Handling Color variations of blocks
TheRealMcrafter replied to Durand1w's topic in Modder Support
I This is not true. Block IDs exist just like before. They are just assigned dynamically. I thought the same thing! A couple people told me that they were removed, and I didn't understand because I can still access IDs in my IDE. -
[1.7.10] Something weird with buttons (GUI) and Enchantments
TheRealMcrafter replied to a topic in Modder Support
I would try moving the buttons into the GUI, just to rule it out. -
It would be, as diesieben07 said, in the constructor of your entity class.
-
[1.7.10] How to make dye-able armor/models?
TheRealMcrafter replied to Naosyth's topic in Modder Support
I think your best bet is to make textures for all the different variants, and then wherever you render your armour model, check (via NBT, or some other way) what texture to bind, and then render it. -
I would STRONGLY suggest learning BASIC Java (concept of classes, inheritance, methods, objects, etc.) first, before you even THINK about adding another inventory slot. Then, learn the following Forge concepts: Proxies IExtendedEntitiyProperties KeyBindings Packets Containers GUIs Events etc Adding another slot is really advanced for a beginner modder. You can follow a tutorial and it might work, but if you start getting tons of errors you wont know how half of it works, so you wont be able to fix it. Same thing goes for weird bugs that pop up. If you have a basic understanding of simple Java/Forge concepts, life as an aspiring modder will be so much easier for you.
-
Spawing client side isnt working[1.7.10]
TheRealMcrafter replied to BoonieQuafter-CrAfTeR's topic in Modder Support
This is server side, not client side. -
Curious, does this still work if the player rebinds the sneak key to something other than shift?
-
[1.8] Handling Color variations of blocks
TheRealMcrafter replied to Durand1w's topic in Modder Support
Since 1.7.X, block IDs no longer exist, so you dont need to worry about ID conflicts anymore! So you should be able to use metadata. -
Yes, I believe you can use your block in a forge argument.
-
Try replacing your System.out with a simple text string, like System.out.println("Hello!"); Then read in the console and see if you are on the client side or the server side.
-
3D Model for entity Throwable [1.7.10] it no work
TheRealMcrafter replied to BoonieQuafter-CrAfTeR's topic in Modder Support
You fixed your problem? -
3D Model for entity Throwable [1.7.10] it no work
TheRealMcrafter replied to BoonieQuafter-CrAfTeR's topic in Modder Support
Ok, Ill tell you. this.doGreeting is called. doGreeting() calls sayHi(). sayHi() calls doGreeting().doGreeting() calls sayHi(). sayHi() calls doGreeting(). doGreeting() calls sayHi(). sayHi() calls doGreeting(). doGreeting() calls sayHi(). sayHi() calls doGreeting(). doGreeting() calls sayHi(). sayHi() calls doGreeting(). doGreeting() calls sayHi(). sayHi() calls doGreeting(). doGreeting() calls sayHi(). sayHi() calls doGreeting(). doGreeting() calls sayHi(). sayHi() calls doGreeting().... Do you get the point now? The same thing is happening with your 2 doRender() methods. -
3D Model for entity Throwable [1.7.10] it no work
TheRealMcrafter replied to BoonieQuafter-CrAfTeR's topic in Modder Support
Please do all of the following: 1) Post your client proxy class, or wherever you register your entity renderer, 2) Post your model class, 3) please explain what the heck this is supposed to do: public void doRender(EntityMasterBolt p_76986_1_, double p_76986_2_, double p_76986_4_, double p_76986_6_, float p_76986_8_, float p_76986_9_){ GL11.glPushMatrix(); GL11.glTranslatef((float)p_76986_2_, (float)p_76986_4_, (float)p_76986_6_); this.bindEntityTexture(p_76986_1_); GL11.glDisable(GL11.GL_LIGHTING); Tessellator tessellator; } @Override public void doRender(Entity p_76986_1_, double p_76986_2_, double p_76986_4_, double p_76986_6_, float p_76986_8_, float p_76986_9_) { this.doRender((EntityMasterBolt)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_); } Also, READ your crash report. Whenever you crash, dont just run here and post it, please try and figure it out yourself. Description: Rendering entity in world java.lang.StackOverflowError: Rendering entity in world at com.OlympiansMod.entity.RenderMasterBolt.doRender(RenderMasterBolt.java:27) at com.OlympiansMod.entity.RenderMasterBolt.doRender(RenderMasterBolt.java:27) at com.OlympiansMod.entity.RenderMasterBolt.doRender(RenderMasterBolt.java:27) at com.OlympiansMod.entity.RenderMasterBolt.doRender(RenderMasterBolt.java:27) at com.OlympiansMod.entity.RenderMasterBolt.doRender(RenderMasterBolt.java:27) at com.OlympiansMod.entity.RenderMasterBolt.doRender(RenderMasterBolt.java:27) at com.OlympiansMod.entity.RenderMasterBolt.doRender(RenderMasterBolt.java:27) By now you should be able to figure this out. Ill help you out anyways. An example you should be able to figure out: public class badCall { public badCall(){ this.doGreeting(); } public void doGreeting(){ this.sayHi(); } public void sayHi(){ this.doGreeting(); } } Please tell me what is happening here. -
[1.8] Having some more modeling issues -.-
TheRealMcrafter replied to NovaViper's topic in Modder Support
You want floats, not integers... -
Lightning striking entity [1.7.10]
TheRealMcrafter replied to BoonieQuafter-CrAfTeR's topic in Modder Support
Try this: @Override protected void onImpact(MovingObjectPosition mop) { for(int i = 0; i < 25; i++){ this.worldObj.spawnParticle("largesmoke", this.posX, this.posY, this.posZ, 0f, 0f, 0f); this.setDead(); if (mop.entityHit == null){ EntityLightningBolt undead = new EntityLightningBolt(worldObj, 10, 10, 10); undead.setPosition(this.posX, this.posY, this.posZ); worldObj.spawnEntityInWorld(undead); } else { EntityLightningBolt undead = new EntityLightningBolt(worldObj, 10, 10, 10); undead.setPosition(this.posX, this.posY - 1, this.posZ); worldObj.spawnEntityInWorld(undead); } } if (!this.worldObj.isRemote){ this.setDead(); //his.worldObj.createExplosion((Entity) null, this.posX, this.posY, this.posZ, 3.0f, true); } } } -
[Resolved]get were the player is looking 1.7.10
TheRealMcrafter replied to BoonieQuafter-CrAfTeR's topic in Modder Support
Can you put a System.err.println(); to display the coordinates you are spawning your entity at?