Jump to content

skyress3000

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by skyress3000

  1. I'd like to know how to change the view of the camera. I've done some digging around in the MC code, and I found orientCamera in EntityRenderer, which deals with 1st/3rd person view etc. However, I'm not sure exactly how all the camera stuff works, and I don't know how to implement it into a mod. There was a thread on something similar in the past, but the final solution was very unclear and I couldn't figure out how to implement it. Another good resource might me iChun's Sync mod, with the animation when you switch shells, but I can't find where he actually changes the view of the player then. The link is https://github.com/iChun/Sync if you're interested. Also, if anyone knows of any 1.6 tutorials on this, those might not be totally obsolete and a good starting point, as usual. Thanks for any help!
  2. Just to jump in here, would this be the right place to stop the bucket being given back in my crafting recipe? If so, how?
  3. This worked for me: world.setBlock(origX, origY, origZ, Blocks.air, 0, 3)
  4. nope, tried that and world.setBlockAt(x,y,z,Blocks.air) both of them make the dispenser drop items. I'll see if I can look into the /setblock command with the replace option...
  5. Is there a way to set a block to air (or another block) without that block "noticing"? To clarify, I want to set a dispenser to air, but I don't want its inventory to drop.
  6. I was wanting to make an entity summon a falling block in the world, which I think I understand how one would do, but I can't figure out how to add a custom tile entity to said falling block. Would the only way be to use readFromNBT and writeToNBT?
  7. Ok, so I'll assume that the right way to have multiple mods is to use 2 different packages. If that's the case, is there a way to disable/enable mods when I run the client so I can test 1 mod at a time?
  8. See tutorial linked above. Maybe it doesn't work… I'll go back to trying to get the Pahimar setup to work. ._.
  9. It still isn't working. Here's a picture of my file tree with relevant stuff opened. An example of a reference to one of said resources: new BlockLickable().setBlockName("blockLickable").setCreativeTab(CreativeTabs.tabBlock).setBlockTextureName(MODID + ":lickable"); MODID is darkfangsmod
  10. I've been trying to switch to Wuppy's advanced modding setup (http://www.wuppy29.com/minecraft/modding-tutorials/wuppys-minecraft-forge-modding-tutorials-for-1-7-set-up-part-2b-advanced-forge-setup/ and http://www.wuppy29.com/minecraft/modding-tutorials/wuppys-minecraft-forge-modding-tutorials-for-1-7-creating-your-own-mod-advanced-setup/), but I can't figure out where to put my resources folder in a place where it will be recognized. Does anyone know the right way to do it with this setup?
  11. Ok, can someone point me to instructions to set up run configurations? Also, when you run the cilent/server, how does Eclipse know what mod to run? Is that just defined by the run configuration?
  12. This didn't work for me; for some reason the client and server run configurations aren't showing up.
  13. Here's the fix: use a LivingDropsEvent, LivingDeathEvent is called both by the client and the server. The client item is a ghost and cannot be picked up. the end
  14. 1 & 2. More details on setUnlocalizedName not being available? (give code that calls it, give error message) Make sure you're calling it on something that extends block or is a block... 3. the constructor no longer uses an i.d., do it like this: public sampleConstructor(Material m) { super(Material m); }
  15. So I have this here event handler method… @SubscribeEvent public void onLivingDeathEvent(LivingDeathEvent event) { Entity e = event.entity; double rand = Math.random(); if(e instanceof EntitySkeleton) { System.out.println("a skele iz ded!!!"); if(rand < 1D) { e.dropItem(Items.skull, 1); } } } Skeletons do drop skulls, however sometimes the skulls seem to be "ghosts" -- you cannot pick them up. also, hoppers cannot pick them up. Am I doing something wrong???
  16. Did you specify your mod package, modid, and version in build.gradle?
  17. I just ran gradle with this build.gradle: and it worked fine. However, I want it to also export the assets, which are in the package assets.darkfangsmod.textures and assets.darkfangsmod.language, like they have to be. How can I get these to export into the right place for use outside of the development environment?
  18. here's some insight: func_145891_a is called. Somewhere in there, func_145897 is called. If there is an EntityItem returned, func_145898 is called, which adds the item to the hopper's inventory and destroys the item. Can someone explain to me what the rest of func_145891 is for, and when it would be called? Here's the source of func_145891: public static boolean func_145891_a(IHopper p_145891_0_) { IInventory iinventory = func_145884_b(p_145891_0_); if (iinventory != null) { byte b0 = 0; if (iinventory instanceof ISidedInventory && b0 > -1) { ISidedInventory isidedinventory = (ISidedInventory)iinventory; int[] aint = isidedinventory.getAccessibleSlotsFromSide(b0); for (int k = 0; k < aint.length; ++k) { if (func_145892_a(p_145891_0_, iinventory, aint[k], b0)) { return true; } } } else { int i = iinventory.getSizeInventory(); for (int j = 0; j < i; ++j) { if (func_145892_a(p_145891_0_, iinventory, j, b0)) { return true; } } } } else { EntityItem entityitem = func_145897_a(p_145891_0_.getWorldObj(), p_145891_0_.getXPos(), p_145891_0_.getYPos() + 1.0D, p_145891_0_.getZPos()); if (entityitem != null) { return func_145898_a(p_145891_0_, entityitem); } } return false; } nvm, the rest is for if there's a chest or other thing with an inventory above it. also, I just discovered how to modify posts
  19. hmmm… could this be relevant? I'll look to where this is called... public static EntityItem func_145897_a(World p_145897_0_, double p_145897_1_, double p_145897_3_, double p_145897_5_) { List list = p_145897_0_.selectEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getAABBPool().getAABB(p_145897_1_, p_145897_3_, p_145897_5_, p_145897_1_ + 1.0D, p_145897_3_ + 1.0D, p_145897_5_ + 1.0D), IEntitySelector.selectAnything); return list.size() > 0 ? (EntityItem)list.get(0) : null; }
  20. I was wondering how to make a block/tileentity behave like a hopper in the sense that it can test for entities directly above it and then modify said entities. I looked through the TileEntityHopper class but didn't find anything understandable, most of the stuff in there is completely unlabeled.
  21. I set up my workspace by using gradlew setupDecompWorkspace and then gradlew eclipse. However, when I open the workspace in eclipse, there are no source files in the src folder. Anyone know how to fix it?
  22. where would this be stored on a mac? I've done extensive searching, and can't find it.
×
×
  • Create New...

Important Information

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