Jump to content

Catfish55

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by Catfish55

  1. How would I go about making a projectile ignore the moment when a mob turns red and goes invulnerable after being hit? This way my projectiles could hit them at a more rapid speed and still deal damage. edit: If there is a way to remove the period on my mobs, that would work too.
  2. How would I go about doing the following: If X on client, do Z on server. So basically, check something on the client, and do it on the server if it is right. Afaik I can't use the world.isremote idea because as soon as I check client it won't be able to check server again within the if statement.
  3. How do you adjust the priorities on the task list? Also, it worked, thanks!
  4. Modified what you suggested a little bit and it work now, except when they go in water. I removed the this.landMovementFactor because it wasn't a variable that was recognized. Also, the problem with new AI is it seems to cause my mobs to randomly lose aggro on the player, and when I adjust the movement speed they don't face the way they are running.
  5. So, the line: this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(value); doesn't seem to change anything unless the new AI is enabled. However, with new AI enabled, it really messes with some of the things I've added. Is there a good way to make it move faster otherwise I've tried doing all sorts of adjustments of movement speed in the onLivingUpdate tick.
  6. The thing is, there is no custom render. Some of them work fine, some just don't.
  7. So when I look at the block in my inventory, it doesn't appear as a cube from a 45 degree angle like Vanilla blocks, I just see the straight up texture. My block class:
  8. Is this for 1.7 (I'm asking about 1.7)? Cause I get errors galore (of unimportable things, such as IconRegister -- Did you mean IIConRegister?). edit: So I found a way to have more than 16 versions (infinite really) of the block in one file, as I just make it a new type of block.
  9. Okay, thank you, but how do I change the texture of the block depending on the meta data, as well as use metadeta in a recipe? (I assume registering the block is the same as normal too)
  10. I've tried looking around Vanilla code for how to do this, but all the func_x everywhere started to get annoying. How does one add metadata to a block? Edit: So I found a way to have more than 16 versions (infinite really) of the block in one file, as I just make it a new type of block.
  11. Will try to fix this when I get home then. Would you happen to know why the buttons and whatnot don't show up? I just copied the Vanilla container.
  12. Where exactly do I use this world.getEntityById?
  13. Hi, I made my own GUI for a custom villager NPC I have. When I use the default GUI (same as Villager) the trader works perfectly. Whenever I put my own GUI in it's place, interacting crashes with this crash. In my Entity class, if I move the drawing of the GUI outside of the !isRemote (which is no longer like Villager code) and into an isRemote, then I get to see the GUI except when I close it I get this crash (I don't see any of the GUI besides the main background part, there are no buttons, things he is selling, etc): Normal crash w/out moving out of !isRemote I have the code for my trader and gui here: Trader Entity Interact: Container: GUI-Handler: Specific GUI:
×
×
  • Create New...

Important Information

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