Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Custom recipe stuff is pretty advanced, as you have to do matching of multiple items (in a specific placement!) to a single output. I suggest starting off (especially considering you haven't been modding for both a long time, or with Forge at all) with simple blocks and items. They aren't exactly trivial to create properly right now.
  2. ItemStacks don't deal with blockstates, they deal with metadata. You probably want: new ItemStack(ModBlocks.compressedBlock, 1, ModBlocks.compressedBlock.damageDropped(ModBlocks.compressedBlock.getDefaultState().withProperty(BlockCompressed.VARIANT, Type.GRAVEL));
  3. A final method parameter is just one that you agree not to modify. It's perfectly safe to make cxt final. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/networking/ServerOreCartHandler.java#L30
  4. Exception loading model for variant avaritia:resource_block#type=infinity for blockstate "avaritia:resource_block[type=infinity]" and for item "avaritia:resource_block", blockstate location exception: Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException Exception loading model for variant avaritia:resource_block#type=infinity for blockstate "avaritia:resource_block[type=infinity]" and for item "avaritia:resource_block", normal location exception: Caused by: java.io.FileNotFoundException: avaritia:models/item/resource_block.json
  5. translate(-0.5,-0.5,-0.5) rotate(x,y,z,w) translate(0.5,0.5,0.5)
  6. Mind that will only work for things like pumpkins. If you wanted to replace--say--cobblestone in villages, you'd have a much harder time.
  7. Minecraft is a client side only class, you CANNOT use it on the server, not even in a packet handler. The code in the example is a server side packet handler, which is what you want. The comment is for going the other way.
  8. "Use Minecraft.getMinecraft() on the client." "Minecraft is a Client-Side-Only class." Hmmmmmmmm
  9. How does a text display name in a GUI affect getCapability()?
  10. Don't set the registry name. The registry name gets set by addSubstitutionAlias
  11. ... compile 'libs/ru.ivansteklow.isdev:1.0.0:dev' where 'libs/' is the folder path you're using?
  12. Uh? public IEnergyStorage getEnergyStorage(EnumFacing facing){ return null; } You never override this.
  13. Then--surprise surprise--you need to tell gradle the subfolder.
  14. Does the file "ru.ivansteklow.isdev:1.0.0:dev" exist adjacent to the gradle.build file, or is it in a subfolder?
  15. Its easy. https://mcforge.readthedocs.io/en/latest/networking/simpleimpl/
  16. This is because you've edited the client-side object, and as soon as you open the player's inventory again, the server's version overwrites your changes. You need to send a packet to the server and make the change there.
  17. Hmm... dependencies { // you may put jars on which you depend on in ./libs // or you may define them like so.. //compile "some.group:artifact:version:classifier" //compile "some.group:artifact:version" // real examples //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime. //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided, // except that these dependencies get remapped to your current MCP mappings //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev' //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // for more info... // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/dependency_management.html }
  18. SpawnMobs line 164: Caused by: java.lang.NoSuchMethodError: net.minecraft.entity.monster.EntityGuardian.setElder()V at com.mramericanmike.irishluck.outputs.SpawnMobs.init(SpawnMobs.java:164) ~[spawnMobs.class:?]
  19. The Json format only handles quads. It can't handle triangles, so not all obj models can be converted.
  20. Or an inventory one https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/entities/TileEntityMillstone.java#L174
  21. Look for all existing usages of SPacketTitle and take a looksee where it's used.
  22. No. Absolutely not. "Flags" is documented quite well.
  23. Aww for fuck's sake, haven't you see anything on these forums about Capabilities?

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.