Jump to content

HappleAcks

Members
  • Posts

    124
  • Joined

  • Last visited

Everything posted by HappleAcks

  1. Hi, So I just noticed when testing out a new mob of mine, that the health is capped at 1024. When I enter this line: this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(2000F); If I put the number above 1024 it won't go higher (I tested with print-outs of the health) but it works at lesser values. In 1.7 the health like this was not capped, so is there something new in 1.8 I'm supposed to do to get around this because it seems obsurd that the health would be capped at such a low value now. This points to saying the max value is 1024 in the SharedMonsterAttribute class: (new RangedAttribute((IAttribute)null, "generic.maxHealth", 20.0D, 0.0D, 1024.0D) Whereas before it was set to Double.MAX_VALUE which is basically unreachable. I'm aware I can modify damage and whatnot to try to work around the 1024 but this is such a ridiculously low number (especially when damage is 2048) that I'm not sure what to do. Is there a workaround for this?
  2. No longer relevent.
  3. Hi, So I've created a new mob that has visual dimensions of 5x17. I used the this.setSize(5F, 17F); in the main constructor. When I go in game and hit F3+B it shows the correct bounding box for the mob. However, when I actually try and hit the mob, it only has a bounding box of 5x5x6ish (so just only 6 blocks tall). I can also place blocks inside of the higher parts that appear in the bounding box shown at F3+B but not at the lower parts. What exactly is going on here?
  4. I've noticed that both Vanilla and custom generation have become a lot slower once I updated to the recommended 1.7.10 build. Even in the overworld, chunks load much slower than usual. Is this an expected change? This only seems to happen in dev.
  5. I've noticed that both Vanilla and custom generation have become a lot slower once I updated to the recommended 1.7.10 build. Even in the overworld, chunks load much slower than usual. Is this an expected change?
  6. So it's currently stored in NBT. My question is how would one go about implementing the packets so that it would work on servers. What I'm trying to do is make it check the energy on client side rather than client and server. Basically: If client has this value, server does this.
  7. Alright so I have a successful custom resource system called energy. A player can use items that consume it and everything works fine (it regens per tick and shows a GUI bar on the left) however it doesn't work on servers since it doesn't use packets. Currently to drain from the bar I just call the class file and a drain function like this: energystats.drain(25) which would drain 25 energy. The problem is on a server it isn't bound to a user I guess so I'm not sure how to implement the packets to fix this.
  8. How would I go about using the different dyes in recipes?
  9. I'm not able to access the modid for some reason, this is how I have it set in my main file: @Mod(modid = "darkmod" ....)
  10. So I have a custom portal block, everything but the texture is working. It keeps looking for the texture here: Using missing texture, unable to load minecraft:textures/blocks/darklandPortal.png In my blocks file: "public static final BlockDarklandPortal darklandPortal = (BlockDarklandPortal)new BlockDarklandPortal();" Inside my Portal Block Code:
  11. So whenever I start up the mod I get this line below. I don't have any packages outside of my main ones which are all in src/main/java/net/darkMod/___ The line: [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!
  12. I haven't touched any of those player properties, I also went through all mobs [mine and Vanilla], none of them are an issue. I'll go back through my logs as soon as I get home in a couple hours and post the full thing. edit: I think I might know what is causing it. It seems one of my mobs was spawned in all the different occurrences, so I'm going to look into that. The mob itself works fine, but it seems it might have Overriden the Horse ID [in spawn code, even though it's a registered mod entity].
  13. Alright, so I'm currently changing the sky color of a dimension I have. The sky will appear as a different color [neither the correct one] depending on which way you look. I've tried fiddling with both extensively, but I either just get bright blue or this duo-color. My sky color code in biome class: @Override @SideOnly(Side.CLIENT) public int getSkyColorByTemp(float par1) { return Color.YELLOW.getRGB(); } In world provider class, the celestial angle: @Override public float calculateCelestialAngle(long var1, float var3) { return 0.25F; }
  14. I see, I'm not sure what is causing it though considering it happens on world creation. I also don't have any mobs that should be spawning.
  15. So I got the error pasted below quite a bit lately [random when generating a world] and I don't know what causes it or how to fix it. The error:
  16. This is actually what I ended up doing yesterday. Thanks for the tip.
  17. So I got it generating but it is far too common.
  18. So I have a structure that I am generating, but it is too common. Changing the "chunkX * 16, chunkZ * 16" to "chunkX * 128, chunkZ * 128" makes it rarer but also generates super super slowly. @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch (world.provider.dimensionId) { case -1: generateNether(world, random, chunkX * 16, chunkZ * 16); case 0: generateSurface(world, random, chunkX * 16, chunkZ * 16); case 1: generateEnd(world, random, chunkX * 16, chunkZ * 16); } } private void generateEnd(World world, Random random, int x, int z) { } private void generateSurface(World world, Random random, int x, int z) { } private void generateNether(World world, Random random, int x, int z) { //Nethengeic Pit Coords// int Xcoord = x + random.nextInt(16); int Ycoord = 25 + random.nextInt(35); int Zcoord = z + random.nextInt(16); (new NetherTower()).generate(world, random, Xcoord, Ycoord, Zcoord);
  19. The reason you don't do that is because that variable will be the same for every single instance of the Item, making it incompatible in multiplayer for sure, and possibly in single player as well if you have two or more of the item in question. @OP Your code is close, but when you right click, you forgot to set the time at which it was fired, meaning that every click will allow it to fire as world time > 0 is always true Add this to your right-click method after determining that you should fire a shot: stack.getTagCompound().setLong("lastShotTime", world.getWorldTime() + delay); // where 'delay' is an integer equal to the number of ticks you want to delay between shots That should now prevent you from spamming right click to fire quickly, while still allowing you to hold right-click and fire continuously while the item is in use. I hate to necro this, but I recently discovered an issue where if you hold down the fire button, it'll keep on firing until you switch weapons even if you let go of holding down fire.
  20. So when I pass the mob name into the spawner, I pass in "modid.mobname"?
  21. So, I've created a spawner block that uses the TileEntitySpawner, however it only works when I pass the name of Vanilla mobs in, and not my custom (and registered ones) using the registerModEntity. Edit: Okay, so using: EntityList.addMapping(MyMob.class, "MyMob", 75); fixes the issue. However, I don't really want to use Vanilla IDs (like the 75, even though it;s a mod-registered mob) so is there any way around that?
  22. I've noticed I get this problem a lot, where my projectiles are left inside the chunk just floating there infinitely, giving off particles. How can one go about fixing this? Could it be that I don't save my dev world safely and just hit the "X" to close the window every time?
  23. Yeah, it was a bummer when I realized the same thing -- I just wanted to pass one boolean to my model. However, since then I've been playing with more complicated animations where I pass other states, counters, and such, and you'll probably want to expand into such things too so probably worth setting it up. However, for quick fix you might be able to use dataWatcher. It is another method for doing simply syncs of entities. It has some drawbacks, but only if you're concerned about other people adding mods that interact with your entities and such. My main point is that you need to get the information to the client entity. There are multiple ways you can try to do that. The only problem is, to use a data watcher (and call it) I need to bind the entity, however the render file doesn't have an entity parameter outside the resource location.
×
×
  • Create New...

Important Information

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