Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

Versepelles's Achievements

Tree Puncher

Tree Puncher (2/8)



  1. Thanks- this is what I originally had, but the IDE said that the method getStateFromMeta was depreciated, so was wondering if there was a different "proper" method of achieving this.
  2. I'm making a psuedo config file, and there may be a better way. However, the goal of the file is to keep the data reasonable to edit by the modder. So, the text entry currently looks like this, where the last five entries are just some custom data to be associated with the entry block. <name> <block> <meta> <earthy> <delicate> <bulbous> <vibrant> <unusual> dandelion yellow_flower 0 1 1 1 1 1 poppy red_flower 0 1 0 0 2 0 blue_orchid red_flower 1 0 2 0 0 3 allium red_flower 2 0 0 -1 0 0 azure_bluet red_flower 3 5 0 0 0 0 I'd like to keep something similar to this format- I think that the block name and meta should be all that's required to create some kind of data structure (not sure if IBlockState is the right choice) to compare to an actual IBlockState later. I'd be fine just storing the name and metadata (for azure_bluet it would be ("red_flower", 3)) if someone can show how to compare that with an IBlockState.
  3. I'm trying to create an IBlockState or similar from strings in order to compare with an IBlockState in the world. For example, I'd like to test for an azure bluet at BlockPos pos = (0, 0, 0). The IBlockState state is gotten from world.getBlockState(pos). However, I'm trying to load the azure bluet from a text file, and so have String blockName = "red_flower" and int meta = 3 which correspond to the item data. Given this information, what would be a good way to check if state is an azure bluet? The save format is up for change too, if that would be good.
  4. Thanks for the suggestion. Where is the method harvestBlock located? I can't seem to find it in Item or ItemTool. (Is it an event? I'm not familiar.) EDIT: I think you are referencing the Block.harvestBlock method. This approach wont work, I think, as I'm trying to get a custom drop from vanilla blocks when using a custom tool. Other approaches would still be appreciated!
  5. What method could be called to after the block has been broken? Or what other workarounds might be good?
  6. I have a custom tool which overrides the onBlockDestroyed(...) method from the minecraft ItemTool class. In this, a new item stack is spawned at the location of the destroyed block with no motion. However, the item stack flies a fair distance, as if it were spawned inside the block and gained motion from trying to escape- this seems to imply that it is created (and ticked?) before the block is fully destroyed. I would like the custom drop to not have any motion; any advice would be appreciated. If possible, I'd like to keep this contained to the custom tool's class. It seems that past versions of forge may have had a method called onBlockHarvested, which was called after the block was destroyed. If that is true, something like that is what I'm looking for. public boolean onBlockDestroyed(ItemStack stack, World worldIn, IBlockState state, BlockPos pos, EntityLivingBase entityLiving) { ... EntityItem entityitem = new EntityItem(worldIn, pos.getX(), pos.getY() + 0.5f, pos.getZ(), customDrop); entityitem.motionX = 0f; entityitem.motionY = 0f; entityitem.motionZ = 0f; entityitem.setDefaultPickupDelay(); worldIn.spawnEntityInWorld(entityitem); }
  7. This is literally the one time in ten years that "updating graphics drivers" advice worked for me! Thanks for all your help, the game booted!
  8. Thanks for the pointer- I ran setupDecompWorkspace twice (the first time it had errors, the second time it completed successfully) and then was able to refresh gradle, run genIntellijRuns, and finally run the "Minecraft Client" process. Unfortunately, this now crashes with a nullpointerexception. Attached is the log file (same crash happens when run again). crash-2017-03-26_03.34.58-client.txt
  9. I'm having difficulty setting up the dev workspace for Forge using IntelliJ, and would appreciate some help. While following CPW's tutorial (youtube.com/watch?v=G2aPT36kf60) on setting up the workspace, I've encountered a couple of errors. First, there is an unindexed Maven repository at files.minecraftforge.net/maven. Others have experienced this issue, however the solutions to those do not seem to be working for me. After running setupDecompWorkspace and the genIntellijRuns, then refreshing the gradle build by clicking the pair of blue arrows (which takes a very long time to finish), trying to run the "Minecraft Client" results in the attached screen. Any help would be great.
  10. I'm running into the same issue as well. I am new to IntelliJ, Gradle, and Forge- which logs would be helpful?
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.