Jump to content

Failender

Forge Modder
  • Posts

    1091
  • Joined

  • Last visited

Everything posted by Failender

  1. I bet its an NPE on bp..
  2. I am not sure, I havent messed around with entites that much.. Try creating your entity, then setting its Position and After that Spawn it in world
  3. Might be a Java Problem. Update your Java please, newest Version is 8_45
  4. If you want to cut Down a whole tree you will need an algorithm thatll check which logs are part of the tree, which might be challenging. I have already worked on that and dont found a really satisfiing way to solve that
  5. 1. Show Crash 2. You should really really really learn some more Java, then Come back to minecraft modding...
  6. If you want to copy the creeper, why dont you take a look at its Code?
  7. I am not sure why it isnt working, I assume it is because even if you prevent the death of the entity, its hp is still 0.. sth like that. BUT there is another way you can use, actually this is how I prevent my entities from diing. Use the event that is called when an entity is taking damage (LivingHurt ? I am not sure..) In that event check if the damage is killing the target, damage>hp and if it does check if the player has the immortality effect..
  8. i see two ways.. 1. save hardness of block in a tileentity and access that in breakspeed 2. in breakspeed get the hardness of the block below and use that
  9. well. use ur random to generate a bigger numbers and then if u get a one drop it. So what I mean. this.rand.nextInt(100) case 0: dropSth default: do nothing is just a chance of 1% to drop sth rare
  10. why would u wanna do that? 1. more work 2. decreases playability
  11. also one thread is enough. http://www.minecraftforge.net/forum/index.php/topic,30634.0.html
  12. 1. version? 2. for gods sake PLEASE use code tags
  13. How good are you with Java?
  14. I am not sure what you want but I feel like NBT could be your solution. Give more informations pls. What are you triing to do?
  15. You should better watch for a tutorial of How to create items in 1.8 since you seem really confused sir
  16. Since it seems that you dont seem to care about the y value of your target you could just take the x/z values and throw them Into math.atan2 (javadoc) Returns: the theta component of the point (r, theta) in polar coordinates that corresponds to the point (x, y) in Cartesian coordinates.
  17. http://www.minecraftforge.net/forum/index.php/topic,30515.0.html
  18. 1. use code tags 2. so. you are triing to spawn a lightning at the position 0,0,0 .. what are you expecting
  19. Check out BlockPos.north BlockPos.east BlockPos.up etc :b
  20. I have no code access right now so i can just give ideas because I dont know the functions. You want something to happen every three seconds. Three seconds Are 60 ticks. I See two ways. Acess the buffs of the Player and Check if the Regen buff is already applied at least three seconds. (acutalDuration<maxDuration-60) Check every three seconds if the Player is Holding ur item. That means saving the last tick where u checked, get the actual tick and Check if its 60 ticks later
  21. Well you could use livingupdate event. Use a counter so every 60 ticks you would Check if the entity is a Player and then Check if hes holding the item.
  22. I'd guess you are using your mod on a server and thats the crash log of the server. Are you using proxies? I guess you are not. Make sure that render things are ONLY called on the client, because the server dont got the classes for render things (and its waste of processing time) Show some code please. May be start with with CustomRenderBlocks.class All I said are just ideas, since this part of minecraft modding is not my specialty
×
×
  • Create New...

Important Information

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