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


Forge Modder
  • Content Count

  • Joined

  • Last visited

Everything posted by AnZaNaMa

  1. This is pretty old, but I figure it's worth noting that you can't make it final if you're doing it @Draco18s's way, as you have to initialize a final variable in the line that you declare it. You'd just do: import org.apache.logging.log4j.Logger; ... public static Logger logger; @Mod.EventHandler public void preInit(FMLPreInitializationEvent event) { logger = event.getModLog(); } Probably also worth noting that you want the org.apache.logging.log4j.Logger and not the java.util.Logger which your IDE may or may not default to. Side note, is there no way to insert inline co
  2. Thanks for your help. The whole corner block thing helps out. Also, I want the inside to be hollow anyway, so that makes it a bit simpler (it's a tank).
  3. Hello, I'm attempting to make a multiblock structure so that the player can form it into whatever size of rectangular prism they want. I'm having difficulties in figuring out how I can check whether or not the multiblock is complete without it being a huge monster of a method that takes forever to run, since I would need to check it pretty often. Does anyone know how I may be able to do this? The real issue here is that I don't already know what the shape is going to be or where the controller for the multiblock will be placed.
  4. Thank you for your help, I got it working. One thing I miss about the old forums is the little button you could press to thank someone for their answer.
  5. `BlockPos#getOffset()` ? One more question... I have a PropertyFacing on my block: public static final PropertyDirection FACING = PropertyDirection.create("facing"); public BlockRotable(Material material, String name, boolean addToCreativeTab) { super(material, name, addToCreativeTab); } @Override public BlockStateContainer createBlockState(){ return new BlockStateContainer(this, FACING); } @Override public int getMetaFromState(IBlockState state){ return state.getValue(FACING).getIndex(); } @Override public IBlockStat
  6. Hello, just a quick simple question. Is there a specific way to get a neighbor of a block based on the way it's facing (PropertyFacing)? Like if a block is facing north, is there a way to use that EnumFacing direction to get the block next to it in that direction, or do I just need to implement it myself?
  7. So.... I've been working on this for a while and the longer I spend working on it, the more complicated it seems to get. I'm attempting to make a gear. I made a model in blender and put it in the proper location and everything and set it up to load the OBJ for the block. It works fine and the model is loading great when I place it into the world. Now, I want to be able to add the functionality of the gear (make it face different directions based on how it's placed, make it rotate based on it's TE's rotation property, draw a shaft connected to the gear if it should have one, etc..) and I'm thin
  8. So, I've decided to take on the task of attempting to make the player have wings made of smoke particles. I am planning on hard-coding all the points of the particles I want to show with their (x, y) positions relative to the center of the back, but then I'm going to need to rotate them about the z-axis (I think...) which I'm not quite sure how to do. I've been reading https://en.m.wikipedia.org/wiki/Rotation_matrix which is on Rotation Matrices and I think it may have something to do with this, but I'm not quite sure. I've only completed through Calc I and haven't taken Linear Algebra yet whi
  9. Not sure what changed, but it worked eventually. Thanks for the help!
  10. sorry, no the resources are there and everything. They are in src/main/resources but they're not getting loaded when I run the client is what I'm trying to say
  11. Oh, also here are the errors I'm receiving when I start up the game.
  12. The title mostly explains it. For some reason, all my textures, localization, etc, are not loading in when I try to run the client in IDEA. I'm guessing it means that it's not correctly grabbing the resources folder when I try to run it. Where does IDEA get it's information on the directories of source and resources and such? I tried just re-cloning the repo and setting up a fresh workspace. I am running graldew setupDecompWorkspace and have tried it with --refresh-dependencies . After that I ran gradlew idea and gradlew genIntellijRuns .
  13. So, in my mod I have an object Lifeforce that has values "strength" and "purity". I want each chunk to have a Lifeforce. I figured I could accomplish this through NBT data, but a chunk doesn't seem to have an NBTTagCompound until it is saved. My question is how do I get and set data to a chunk. For example I'm subscribing ChunkGeneratorEvent.ReplaceBiomeBlocks and I want to assign the lifeforce when a chunk is created. How can I accomplish this, as a chunk doesn't have NBT?
  14. Not sure how it ended up like that but deleting those fixed it. Thanks!
  15. sorry, I did that initially, but didn't think to post it here. http://pastebin.com/jTeVxEeq Don't know why it would throw a NoClassDefFoundError on a fresh install of forge.. strange
  16. Hi all, I've been working on my mod on my PC at home which has windows. I'm currently on vacation and trying to work on it from my laptop which runs Linux Mint. I cloned my repo into a folder and attempted to run ./gradlew setupDecompWorkspace . This resulted in a permission denied error, so I used sudo chmod +x gradlew . This allows me to run ./gradlew, but it fails after about 3 seconds every time, giving me this: FAILURE: Build failed with an exception. * Where: Build file '/home/andrew/Mods/1.10.2/technika/build.gradle' line: 15 * What went wrong: A problem occurred evaluating
  17. Well, it can also be used to deal damage to an entity, but I'm already raycasting, so I can do that easily. Basically, I just don't know how I would add in the visual effect. Particles don't seem right , because I'd like to be able to render the lightning bolt spanning variable distances based on how far the target is
  18. Okay, so I've got an item that will be used to shock the block the player is looking at, but I have no clue how I can make something that even remotely looks like lightning come from the wand to the block. Any ideas?
  19. Yeah, there are plenty of mods that are written entirely in scala, which is upsetting when I try to look at their source code. But for real, modded minecraft is probably the most complex java program I have ever seen, so I'd have to agree with Ugdhar.
  20. Hey, just wanted to let you know... you misspelled needsInitialization Won't really affect your code, but I'm a grammar nazi.
  21. Wow that was a simple fix... and thanks for the IDEA (pun intended) cause I never thought to install a plugin for JSON editing. I had just been using notepad... *facepalm*
  22. I've been trying to troubleshoot this for forever but I can't figure out what's wrong. I've got a block with a PropertyEnum<EnumColor> and when I load up the game, I'm getting this: [22:48:30] [Client thread/ERROR]: Exception loading model for variant everythinginbetween:bubbled_stone#color=lightorange for blockstate "everythinginbetween:bubbled_stone[color=lightorange]" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model everythinginbetween:bubbled_stone#color=lightorange with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.c
  23. Wow I should have just tried that Thanks for the help though. Much appreciated!
  24. I will look into that thanks but what i really need is not to sync the data. It's already synced fine. I just want to know how to make it redraw the gui every frame as long as it's open.
  • Create New...

Important Information

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