Jump to content

Choonster

Moderators
  • Posts

    5160
  • Joined

  • Last visited

  • Days Won

    76

Everything posted by Choonster

  1. You can probably use an EnumFacing property limited to Plane.HORIZONTAL for the y-axis rotation and a custom enum property with UP , DOWN and SIDEWAYS values for the x-axis rotation. You can integrate the custom enum with EnumFacing and its subclasses if needed.
  2. Forge recently added a model animation system. I have no idea what the video is using and annoyingly he doesn't seem to explain it or provide a map/resource pack download.
  3. I don't think Cricket is maintaining Chisel 2 any more, update to Chisel by Chisel Team (tterag1008, Drullkus, Minecreatr).
  4. You've got a block (pair of braces) surrounding the if statement, which isn't required. You don't need to consume an arrow in the body of the if statement, the InventoryPlayer#consumeInventoryItem call in the conditional already does that. There's no point in setting the maximum use duration ( Item#getMaxItemUseDuration ) and use action ( Item#getItemUseAction ) if you never set the item in use ( EntityPlayer#setItemInUse ). You should rename the variables in onItemRightClick with meaningful names that describe their purpose, e.g. charge instead if i (because that holds the bow's charge). You never declare the variable i . What is it that want to know?
  5. You need to store the last use time ( World#getTotalWorldTime ) in the NBT and compare it against the current time in Item#onItemRightClick . If it's been at least COOLDOWN ticks, update the last use time and fire the arrow. I have an example of a similar weapon here that fires snowballs at a fixed rate while right click is held.
  6. Ah, I got a bit confused. That is indeed the method I meant.
  7. Set the maximum use duration to 0, the use action to NONE and fire the arrows from Item#onItemRightClick instead of Item#onItemUseFinish .
  8. Use JDK 8 for the ForgeGradle-based 1.7.10 and 1.8.x builds. Use JDK 7 for the ForgeGradle-based 1.6.4 builds (960-965) or JDK 8 for the most recent MCP-based 1.6.4 build (1345). This tutorial explains how to get started and set up a ForgeGradle workspace.
  9. The damage dealt by arrows is calculated in EntityArrow#onUpdate , which uses values set in ItemBow#onPlayerStoppedUsing . You can override these methods in your own classes to do whatever you want.
  10. I suggest you post the log anyway, it will probably give LexManos more of an idea of what's happening internally.
  11. Don't bump your threads, especially not after five minutes. It will only serve to annoy the people that can help you, it won't make them post any faster.
  12. You need to set the fire encouragement (a.k.a spread speed) and flammability of the Block yourself. Either call BlockFire#setFireInfo after registering your Block or override Block#getFireSpreadSpeed and Block#getFlammability to return the appropriate values.
  13. What's the full name (including extension) of the file you downloaded? It should be viewable in your browser's download list. I suspect you've somehow set WordPad as the default application of whatever file type you downloaded. All downloads except the changelog are some sort of binary file, so they'd look like a bunch of random characters if opened in a text editor/word processor like WordPad.
  14. ModelLoader.setCustomModelResourceLocation is Forge's replacement for ItemModelMesher#register(Item, int, ModelResourceLocation) , yes.
  15. Ah, that would indeed screw things up. I'm still surprised that there wasn't error in the log telling you that it couldn't find the model with that name.
  16. I can't see any obvious errors in your code. Could you upload the FML log to Gist and link it here? Are your files at tetracraft:blockstates/brox_stone.json, tetracraft:models/block/brox_stone.json, and tetracraft:models/item/brox_stone.json?
  17. Yes. Every Forge mod is a resource pack, so you can override vanilla assets with your own. Keep in mind that user-added resource packs will take priority over mod resource packs.
  18. If you call ShapedRecipes#func_92100_c on a shaped recipe, it will copy the NBT tag to the output from the last ingredient that has one. If you want more control over the output NBT, create your own implementation of IRecipe (optionally extending an existing one like ShapedRecipe / ShapedOreRecipe ), override IRecipe#getCraftingResult to set the NBT of the output ItemStack and add an instance of it using GameRegistry.addRecipe(IRecipe) . Side note: The whole point of vararg methods like GameRegistry.addShapedRecipe is that you just pass in the arguments as normal and Java creates the array for you.
  19. There should be an error in the log telling you what went wrong.
  20. The log just ends without any error, so I'm not too sure what's going on. Does it just get stuck while loading the world?
  21. I've never seen that happen, it's probably a bug in one of your mods. If you want to narrow it down, try removing mods that modify character models in some way until you find which one causes it.
  22. All mods will work in any form of single or multiplayer unless the author screwed things up. Most mods need to be installed on both the server and client, but some are client-only (e.g. minimaps, HUDs) or server-only (e.g. backup utilities). In single player and local multiplayer the host client is running an integrated server in the background, so you can run server-only mods. The guest clients won't need to have these installed. Installing client-only mods on the dedicated server will usually crash it, though a mod can specifically mark itself as client-only to avoid being loaded at all on the dedicated server.
  23. All mods are cross-platform, unless they go out of their way to break that. I'm not aware of any mods that do this. You can copy over your mods and config directories via a local network (if you have that set up) or upload them to something like DropBox/OneDrive from your computer and download them on her computer.
  24. You're calling World#setBlockToAir before you check what the player's holding, so it always removes the block. Do you actually understand what your code is doing?
  25. For a model's parent model you need to specify the model path relative to the models directory, so use block/pane_nsew as the parent instead of just pane_nsew . You're registering your azrons_wrath and fantasysw items twice, don't do this.
×
×
  • Create New...

Important Information

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