
TheRealMcrafter
Forge Modder-
Posts
137 -
Joined
-
Last visited
Everything posted by TheRealMcrafter
-
[1.7.10] [SOLVED] Problem with custom rendered Blocks
TheRealMcrafter replied to Pythonschlange's topic in Modder Support
Can you post the class where you register your tile entity? -
[1.7.10] [SOLVED] Problem with custom rendered Blocks
TheRealMcrafter replied to Pythonschlange's topic in Modder Support
Can you post your tile entity class and the crash report please? -
You are setting the inventory slot with your item, and then getting the item you just set. You want to do this: ItemStack slotStack = inventory.getStackInSlot(slot); ItemStack currentStack = inventory.getStackInSlot(inventory.currentItem); if (slotStack != null){ inventory.setInventorySlotContents(inventory.currentItem, slotStack); } else { //return here? if you want to } if (currentStack != null){ inventory.setInventorySlotContents(slot, currentStack); } else { //same as above } Also, I dont know if you can do these operations on the client side, since you are using Minecraft.getMinecraft().thePlayer (client side player)
-
I'd suggest studying in depth EntityAIOwnerHurtByTarget and EntityAIOwnerHurtTarget
-
Why doesnt this work? 1.7.10
TheRealMcrafter replied to BoonieQuafter-CrAfTeR's topic in Modder Support
Okay, well coolAlias' point still goes, you dont need to make 2 threads about the same thing. -
Why doesnt this work? 1.7.10
TheRealMcrafter replied to BoonieQuafter-CrAfTeR's topic in Modder Support
As coolAlias pointed out, he already told you in your other thread that was "SOLVED 100%" that you are not handling cases where the entity can be null. -
Better way of doing attackEntity?
TheRealMcrafter replied to Gingerbreadman's topic in Modder Support
I believe he wants an auto killing mod, where as long as there is an entity in the crosshairs, attack it (like for a blaze farm, in his case) -
[1.7.10] Item Icons are not working?
TheRealMcrafter replied to BoonieQuafter-CrAfTeR's topic in Modder Support
Really? A bump after 2 hours? -
[1.8] Crash on World#getEntitiesWithinAABB
TheRealMcrafter replied to Ferrettomato's topic in Modder Support
It actually crashes on expand(10, 10, 10) -
[1.8] Crash on World#getEntitiesWithinAABB
TheRealMcrafter replied to Ferrettomato's topic in Modder Support
You do not handle a case where Minecraft cannot find any entities. What is on this line? at com.ferret.myfirstmod.items.ItemIceMask.onArmorTick(ItemIceMask.java:86) EDIT: Woops, i'm blind. I see it. -
Try naming them something like SteamEngineWaterPortChanged, then back to steamEngineWaterPort I had this before, where I had SiliconOre, so I renamed it to siliconOre. Didn't fix the problem. Put it back to SiliconOre, then added something onto it. Then reverted it back to normal.
-
If you meant that, then you should have put that in your original post. How do you expect people to magically guess what you are doing? Like I said above, you originally had if(this.gethealth = 1000<0){ which Java is interpreting as trying to set the left side to the right side, so in this case, this.getHealth to false. You really need to read over what you write before you post it, because you make no sense whatsoever.
-
[1.8] Can't figure out how to change bow pullback time.
TheRealMcrafter replied to Hardc0r3Br0n3's topic in Modder Support
Doesn't seem to work when putting it in my main class file. Was there a specific spot to put this code? You need to make an event handler and register it in your main class file. Then you put that in the event handler. Regarding all of your other errors, delete that code Boonie gave you. He gave you 1.7.10 code when this is for 1.8. -
Seriously? How can your IDE even let you do something stupid like this??? if(this.gethealth = 1000<0) Here is whats happening: Mini Java Guy Inside Your Computer: Okay! I'm gonna do an if statement now! Mini Java Girl Inside Your Computer: Sweet! I haven't done one of those in a while. Ill help you out. Mini Java Guy Inside Your Computer: Gonna get this entity's health.... Mini Java Girl Inside Your Computer: Okay, I'll set it to false... Mini Java Guy Inside Your Computer: Wait... you can't SET a variable by using a GETTER METHOD. Mini Java Guy Inside Your Computer: *Highlights this statement with a red squiggly line* Mini Java Guy Inside Your Computer: if(this.gethealth = 1000<0){ Mini Java Boss Inside Your Computer: You're both fired! Console: java.lang.Error: Unresolved compilation problem: The left-hand side of an assignment must be a variable You are trying to set the health. You need if (this.getHealth() <= 1000){ EDIT: Woops, totally scrolled past SuperJedi224's post.
-
[1.7.10] Why doesnt this work?
TheRealMcrafter replied to BoonieQuafter-CrAfTeR's topic in Modder Support
Everyone who posted here tried to help you. We are giving you suggestions to try, and you aren't even replying saying if the System.err.println() worked or not, and if it is being run clientside. We are normal people with jobs, and school, etc. We take the time to try and help you, and you dismiss it, and then make another post 5 minutes later asking us to spoon feed you code. So before you come here and tell us that no one tried to help you, read what we have said and do it. -
[1.7.10] Why doesnt this work?
TheRealMcrafter replied to BoonieQuafter-CrAfTeR's topic in Modder Support
I believe you want: if (equipped.equals(stack){ } == won't always do what you expect. -
Honestly, thanks for the opinion. I used to be like that with my source too. I'm not concerned about my source being released, I'm concerned about a tester releasing a ridiculously buggy mod to the public. And in reality, I could just send them unique download links and count downloads on them, but well, I tend to overcomplicate things sometimes. Just wanting to screw around with file sending really.
-
Right on the money. I figured I'd look deeper into this, just thought I'd see if there was anything built into forge to help me out.
-
Well then how do crash reporting mods do it? They can upload the crash report to a remote server.
-
Hey, is there any event, or a way to tell me if minecraft is about to crash? I want, when minecraft is about to crash, to run some code.
-
I think you misunderstand. My beta testers cannot commit to my github. They get access to my beta builds, and report problems to my issues page. I dont want them spreading around the download link, so I'd like my mod to communicate with a file in my github repo and tell me if one of my testers is spreading around the link. (Also I need this for future use in my mod)