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.

Featured Replies

Posted

I'd like to get an idea of what people do in order to render models for my api. Unfortunately the sources out there aren't always the most accurate. Additionally, Techne Online doesn't seem to be working for me (on a mac, so can't use local version), so I can't get any models (pre-made or otherwise). As such, I'd like to get some examples of code for this subject. Both the code that Techne generates, and the way the code is implemented. I would also like to see the json version of the Techne file (it should be available in the export tab online now I think), so that I can see how I would implement a custom system to render that. So please post some examples here, or a link to some good examples I can use for test samples in my code.

Currently working on a mod to provide support for the Clojure programming language in Minecraft, check it out here.

Techne, a tool used for modeling items, blocks, and entities in 1.7.10 (only entities in 1.8), uses .tcn files. The part that we use is exported to Java code in a .txt file, and should be used as a reference to get all the boxes / rotations / translations / scale right upon construction of your model class (initializing your ModelRenderer instances). Take a look at any of the mobs in Minecraft's source code, those are perfect examples of the similar code that Techne exports. You may also want to reference the render classes for the models / entities.

Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]

A small point, but worth mentioning: the output of Techne is not special - it's just standard model code/.JSON, i.e. a format that can be understood by Minecraft's rendering classes.

 

Besides, many modders (such as myself) will take whatever Techne outputs and completely change it (to clean it up and/or add parent:child relationships, for example), add animations, or any number of other things that one might also find in vanilla Minecraft models.

 

So... you literally have dozens of models at your fingertips already in the Minecraft code. What better test subjects than that?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.