Jump to content

thebest108

Members
  • Posts

    503
  • Joined

  • Last visited

Everything posted by thebest108

  1. Anyone?
  2. Is it your y spazzing out? I think it's solved by doing yOffset = yOffset/3 I haven't tried it since 1.4 but it might still work
  3. I've recently been working on a mod similar to zepplen, but there are some serious roadblocks. For 1 even though the entity is solid, I frequently fall through it. 2nd the entities spaz out on the y axis, if I move a zepplen forward, the blocks y position will be going up and down at random. Does anyone have a solution for these problems? (they seem like synchronization issues but I'm not sure)
  4. Where is a blocks position stored?
  5. Zepplen did it, so it's not impossible. I looked through the code but it didn't make much sense. All I managed to make out was something called vector3. Anyone got any ideas?
  6. Forge Events is how I'd do it
  7. Does anyone know how to make a bounding box that is at an angle. Ex: zepplen, the block entities had rotated bounding boxes
  8. I would make a blank entity and that it would spawn whenever the block was initialized. Then, when the block is right clicked it would call the entity's interact function (note: you should change so it does player.mountEntity(this) ) this putting the place on the chair
  9. you could add a boolean to the entity so it would be like boolean hasBeenClicked = false; String[] derp = [{"hi","hello","eat my shorts"}]; Random rand = new Random(); public boolean interact(EntityPlayer player) { if(!player.worldObj.isRemote&&!hasBeenClicked) { player.sendChatToPlayer(derp[rand.nextInt(derp.size()-1)]); hasBeenClicked = true; } return true; }
  10. you could have something like String[] derp = [{"hi","hello","eat my shorts"}]; Random rand = new Random(); public boolean interact(EntityPlayer player) { if(!player.worldObj.isRemote) { player.sendChatToPlayer(derp[rand.nextInt(derp.size()-1)]); } return true; }
  11. you could set its yaw to be the players yaw-180 ?
  12. Add if(!player.worldObj.isRemote){Send chat}
  13. Is there a packet that can send an entity reference or something?
  14. piston
  15. piston
  16. How would I get a world based on dimension Id to send an entity position packet?
  17. How would I get a world based on dimension Id to send an entity position packet?
  18. Buildcraft caused it, your probably using the wrong version of forge
  19. I hate to have to tell you this but that crash log is worth dirt. Post it on pastebin so the bottom doesn't get cut off
  20. I have an entity that when it moves, it moves the player on top with it. The only problem is that while player.move is in effect the player can't jump. Anyone know how to fix this?
  21. 1 more question. My entity is randomly moving up and down and I found out that the position is messed up client side but not server side. How would I tell the client the right position?
  22. For multiblocks do an onRandomUpdate to check if all the blocks are around it, and if yes change all the blocks textures and change their tilentities
  23. Step 1: Make a new class Step 2: Extend the event class that has the method your looking for (all of them are in minecraftforge.events) Step 3: Override the method your looking for Step 4: in your main class, in init put minecraftforge.registerEventBus Also I think you may want to do an entity update , then check if it's on the ground, then check the rest
  24. I suggest you look at extra biomes as it adds a lot of new plants. If you need help recompiling then pm me
  25. What i suggest is using an entity spawn event, then use entity instanceof entityItem, then if entityItem.itemStack.id-256 = rottenflesh.id, then convert the items position to an int, check if the block at that position-1 is grass, then replacing it.
×
×
  • Create New...

Important Information

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