Everything posted by hotrods20
-
[1.7.10]Not sure how to use dependencies
Alright, I moved it to libs instead of lib and it worked. A tutorial I read said put all dependencies in lib. Guess it's old.
-
[1.7.10]Not sure how to use dependencies
I've been messing around with CoFHLib and a few others lately but I can't recompile. I tried adding them to the "dependencies" section in build.gradle but it won't except dependencies I already have. How can I add them without it crashing? Tried: compile 'lib/dependency.jar' compile group: 'group.name', name: 'libname', version: 'version' Any help would be appreciated.
-
[1.7.10] Optifine with mod doesn't allow custom music disks to work
What version of Optifine are you using? 1.7.10 A4 was really buggy for me and caused a lot of mods to stop working. The newest version which I think came out today has some bug fixes. Version 1.7.10 B1. Refer to http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1272953-optifine-hd-b2-fps-boost-hd-textures-aa-af-and
-
How to load a single chunk from another dimension?
Couldn't you also use DimensionManager.getWorld(targetDimension) or would that not load the dimension up?
-
Particle Spawn when Holding item?
The problem with doing 1.0D instead of a random double or Gaussian is that the particles will all spawn in one spot and fly into the players head instead spawning around the player and going into random spots. In basic though, that is fine code to get started.
-
Particle Spawn when Holding item?
private Random rand = new Random(); @Override public void onUpdate(ItemStack is, World world, Entity ent, int i, boolean bool) { if(ent != null && ent instanceof EntityPlayer && bool) { EntityPlayer p = (EntityPlayer)ent; world.spawnParticle("portal", p.posX, p.posY, p.posZ, rand.nextGaussian(), rand.nextGaussian(), rand.nextGaussian()); } } This sends all particles to your head. private Random rand = new Random(); @Override public void onUpdate(ItemStack is, World world, Entity ent, int i, boolean bool) { if(ent != null && ent instanceof EntityPlayer && bool) { EntityPlayer p = (EntityPlayer)ent; world.spawnParticle("portal", p.posX, p.posY-rand.nextInt(2), p.posZ, rand.nextGaussian(), rand.nextGaussian(), rand.nextGaussian()); } } This sends particles to random points on your body(height wise).
-
[1.7.10]Need help with IDs/Names
Alright, I'll use the Block.getBlockFromName. That seems like the best choice since I know users will have problems finding block IDs without it being handed to them. Thanks!
-
[1.7.10]Need help with IDs/Names
The problem is that users will be able to add logs/blocks to this list if they add more mods and want my tools to work with them and I don't think users will know the blocks file/reference.
-
[1.7.10]Need help with IDs/Names
I know IDs have been removed and you can access them with Block.getIdFromBlock but is there a better system I can use without using the blocks unlocalized name? I currently have an array of BlockIDs that can be cut by a special axe but with the "removal" of IDs, it there an easier way to reference every type of log with just a string or two?
-
Server only mod?
Alright, thanks. I'll find it eventually.
-
Server only mod?
Quick question, is there a version of this for Minecraft 1.6.4?
-
Server only mod?
Is it possible to make a mod server side only? That way users won't need to install it with their already existing mods?
-
(solved)[1.7.10]New way to destroy or delete a block from world?
Thank you so much. Didn't know that. Also didn't see in Javadoc. Very helpful. I don't really like gradle....
-
(solved)[1.7.10]New way to destroy or delete a block from world?
In the code I'm importing to 1.7.10 from 1.6.4, I used World.destroyBlock(...) quite a bit but it doesn't work now and I can't see an obvious replacement for it. Is there a new way to do it or do I have to find a workaround?
-
Changing Water to Ice
Well, with the y, I recommend just doing y = ((int)player.posY)-1
-
Changing Water to Ice
I recommend checking out onArmorTickUpdate in the Item.class. You can use it on your boots so that when they are equipped, you can check where the player is and see what block they might be standing on.
-
[1.6.4] Need help with a "Reverse" crafting table.
Have you looked to see if Twilight Forest is open sauce? I know it has an uncrafting table that might be of use to you. Well, last time I played it did.
-
[1.6.4] How to make mining code account for Silk Touch
I have a custom pickaxe that mines the ore and all ores around it and I'm not sure how to account for Silk Touch. Here is the code: public boolean onBlockDestroyed(ItemStack par1ItemStack, World par2World, int par3, int x, int y, int z, EntityLivingBase par7EntityLivingBase) { super.onBlockDestroyed(par1ItemStack, par2World, par3, x, y, z, par7EntityLivingBase); if(!par7EntityLivingBase.isSneaking()) { String st1 = Integer.toString(par2World.getBlockId(x, y, z)); String st2 = st1 + ":" + Integer.toString(par2World.getBlockMetadata(x, y, z)); if(Arrays.asList(this.ores).contains(st1) || Arrays.asList(this.ores).contains(st2)) { //par2World.destroyBlock(x, y, z, true); this.repeatMine(par2World, x, y, z); } } return true; } public void repeatMine(World world, int x, int y, int z) { for(int i = -1; i <= 1; i++) { for(int j = -1; j <= 1; j++) { for(int k = -1; k <= 1; k++) { String st1 = Integer.toString(world.getBlockId(x + i, y + j, z + k)); String st2 = st1 + ":" + Integer.toString(world.getBlockMetadata(x + i, y + j, z + k)); if(Arrays.asList(this.ores).contains(st1) || Arrays.asList(this.ores).contains(st2)) { world.destroyBlock(x + i, y + j, z + k, true); this.repeatMine(world, x + i, y + j, z + k); } } } } }
-
[1.6.4] Load a chunk or World that the player is not in
So, just an entity that requires that chunk to be updated and that will just stay there keeping it loaded?
-
[1.6.4] Load a chunk or World that the player is not in
I need to load a dimension/world that the player isn't in to access a Tile Entity in that world, how would I go about loading the dimension/world to access the Tile Entity? Is there a mod or some source code I could check out?
-
[1.6.4] Get World object using the dimension ID
Thank you, exactly what I was looking for.
-
[1.6.4] Get World object using the dimension ID
I've been stuck on this. Is there a way to get the world object with just the dimension ID?
-
[Forge 9.11.1.965 - 1.6.4] Rendering something on Player
I don't think you need to use a coremod, there are several ways of going about this, all being rendering code. You can look at some other mods if they're open source. One I would look into is the hat mod.
-
Toggle rain in the world?
Another thing you could check is when you're testing, make sure you're not in a desert biome.
-
Toggle rain in the world?
Can I see your onBlockActivated?
IPS spam blocked by CleanTalk.