Jump to content

wyn_price

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by wyn_price

  1. For anyone looking, the following code will rotate a VoxelShape around an axis: public static VoxelShape rotateShape(Direction from, Direction to, VoxelShape shape) { VoxelShape[] buffer = new VoxelShape[]{ shape, VoxelShapes.empty() }; int times = (to.getHorizontalIndex() - from.getHorizontalIndex() + 4) % 4; for (int i = 0; i < times; i++) { buffer[0].forEachBox((minX, minY, minZ, maxX, maxY, maxZ) -> buffer[1] = VoxelShapes.or(buffer[1], VoxelShapes.create(1-maxZ, minY, minX, 1-minZ, maxY, maxX))); buffer[0] = buffer[1]; buffer[1] = VoxelShapes.empty(); } return buffer[0]; }
  2. and like that it fixed itesself. OK then
  3. This is a bit of a strange issue that Im having. The code diffrent on the developers enviroment is diffrent to when its loaded not in eclipse. For example TextComponantBase#getUnformattedText is in eclipse and will load in eclipse, but will throw: java.lang.NoSuchMethodError: net.minecraft.util.text.TextComponentTranslation.getUnformattedText()Ljava/lang/String; when try to load from the actual minecraft launcher. Ive reinstalled almost everything, deleted the folder with my mod and used git and a new fresh version of the mdk to install, and yet still this happens. Ive also updated my MCP snapshot to todays (20171018) and still it crashes. Im not exacty sure whats going on because the MCP snapshot that was reccomended to be 20171018. I dont think im doing anythin wrong because Ive been modding for over a year and never come across this problem. I have no idea what could have caused this, as there are no snapshots (that I could find) where TextComponantBase#getUnformattedText isnt a thing. Also CreativeTabs#setBackgroundImageName also caused this error.
  4. Nvm I see the problem. In your EnumHandler your not setting the name of the Enums to the value of name. Your not setting the size either, just the I'd.
  5. Could you post your common and client proxy? Also the fml-client-latest.log would be usful
  6. If you create a new instance of the particle, you can set the rbg color of it and change what color it is
  7. MinecraftForge.EVENT_BUS.register(CustomEventHandler.class); do MinecraftForge.EVENT_BUS.register(new CustomEventHandler());
  8. Ive set up and API for one of my mods, and am having some trouble with setting up the maven. I plan to upload it to the central repository. With little to no tutorials on how to do it online, ive given up and am going to ask people for help. So far Ive managed to set up the project with maven, submit a JIRA ticket and do (most) of the pom. Ive also managed to use Kleopatra (a GUI version of GPG) to verify the integrity of my .jar and my pom.xml. For reference, heres my pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <groupId>harshencastle</groupId> <artifactId>HarshenCastle</artifactId> <version>1.0</version> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties> </project> Im not sure if theres somthing im doing very wrong or whats going on. I havent used Maven before and i think itll probally show. One day ill look back on this and cringe at how naive and stupid I was. But untill then...
×
×
  • Create New...

Important Information

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