Jump to content

minh2908

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by minh2908

  1. This code seems to trigger the error, but I still don't know what is wrong. And the init stuff doesn't seem to effect the code that much, but it's good to know.
  2. Client Proxy: Common Proxy: Main class:
  3. Sorry for the late reply. No, I never use Minecraft.getMinecraft().theplayer in my code. I also don't really know what to post exactly, because the error never said anything about my code.
  4. Well, I suck at debugging , so mind explaining what you mean? Also, This gets printed out in the console before the crash report, repetitively:
  5. This is a recurring crash that happens randomly. It doesn't seems to have anything to do with my mod, so it is just plain annoying whenever I need to test something. Anybody knows why?
  6. Yeah, I thought that was the case when I saw the code in the console. Any idea on how to solve it? Edit: I've solved this by adding and removing tags. Thanks for telling me the problem! Edit2: When they move, it looks very glitchy . Why is that? (i'm not experience with rendering stuff)
  7. Tried the isRemote check, doesn't seems to fix it The entire console after i terminate the game was this: I did see something like: Exception caught during firing event net.minecraftforge.client.event.RenderLivingEvent$Pre@1400b97 (number changes everytime, I got this through a screenshot). It has something to do with the dorender part, because it works if i just use event.setCanceled(true)
  8. I'll try to use packets to update that. When the game knows if the cow have a potion effect (due to me logging in and out), the console is printing out this repetitive message: The 212 line of minh2908.potions.init.events.EventSubscriber is the r.doRender part of the code that i posted.
  9. What i'm trying to do is have a potion effect that render cows as cave spider. Event handler: RenderCowToSpider:
  10. something like this maybe? and change all the getposition() with the respective spawnpoint (I don't have computer here, only copy and paste) also, learn to use spoilers
  11. I'm no pro, but I think that the method is called when you collided with the block, that means it will not take the new positions, as the player has already teleported. Why don't you just set it at the spawn point along with the teleportation?
  12. I've found the solution! Turns out the ingredient check was defective . Thanks for your help, though, especially on reminding me of the ingredient check.
  13. I assume you mean the potiontypes: In the Mod file:
  14. That doesn't seems to solve the problem. I'm pretty sure that the check that you edit didn't change anything.The isInput was my fault ,though . The problem with the system is that even though iron ingot brew the resistance one and fermented spider eye brews the resistance potion to the weakening one, the iron ingot still brew the resistance potion to itself.
  15. It doesn't differentiate between different potions
  16. My system works fine but i can brew a resistance potion with a resistance potion. Any help? Here is the class that extends IBrewingRecipe: How I register the recipes:
  17. here is the containermodcrafting: I've read somewhere that I need a crafting manager and something else in oreder to make custom recipe, but I haven't figure out how to do that yet EDIT: I've found a solution. Thanks for your help earlier(that was for a half-crafting table)
  18. Well, i'm trying to create a 5x5 crafting table with custom recipe. I've done the gui but i haven't got it to work properly yet. Can you help me with that?
  19. I'm trying to make a 5x5 crafting table and i want it to drop the items on close. Here's what I've tried: public void onContainerClosed(EntityPlayer playerIn) {super.onContainerClosed(playerIn); for(int i=0;i<25;i++){if(te.getStackInSlot(i)!=null){ ItemStack slot=new ItemStack(te.getStackInSlot(i).getItem(),1,te.getStackInSlot(i).getMetadata()); te.removeStackFromSlot(i); worldIn.spawnEntityInWorld(new EntityItem(worldIn, playerIn.posX,playerIn.posY,playerIn.posZ,slot));} } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.