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.

Wehavecookies56

Members
  • Joined

  • Last visited

Everything posted by Wehavecookies56

  1. I wonder why it is looking in models/block/ for the model have you tried placing the model in the block folder?
  2. In your .json file what did you specify as the path for the .b3d model as I just have "model": "kk:kingdomkey.b3d" and the model is placed in models/item/.
  3. Nope I assumed the normal item rendering way wouldn't work with this.
  4. Yes this one: https://github.com/RainWarrior/B3DExport
  5. Yeah the b3d exporter doesn't create a .mtl file so I assumed it wasn't needed. And I have done exactly that, the UV is setup and the texture is defined in the .json file. Which is why I am stumped on this. As I said the console shows no errors what so ever. The .json file definitely needs to be in the blockstates folder for the model to work though.
  6. I have the texture located in src\main\resources\assets\kk\textures\items\keyblades\ And the file is name kingdomkey.png I don't see anything wrong here adding .png to the json I don't think is necessary but doesn't work either way. The kingdomkey.json file is located in src\main\resources\assets\kk\blockstates\ If I copy it to src\main\resources\assets\kk\models\item\ it says "BlockModel requires either elements or parent, found neither".
  7. Edit: A new problem has appeared where I have a model that is using the wrong texture map. If I remove the textures, it errors suggesting that the textures are being loaded but not loaded. Edit2: I'm stupid the UV map was misplaced. I have an item using a b3d model which is working correctly other than the fact that it does not display a texture. I am not sure what is wrong here as the console does not show any errors. I am wondering if it has something to do with my model setup in Blender or something else. I am using this code in my ClientProxy which is run during the pre initialization (Reference.MODID's value is kk and Strings.KingdomKey's value is kingdomkey) B3DLoader.instance.addDomain(Reference.MODID); ModelLoader.setCustomModelResourceLocation(ModItems.KingdomKey, 0, new ModelResourceLocation(Reference.MODID + ":" + Strings.KingdomKey, "inventory")); Here's my blockstate json for my item (kingdomkey.json) { "forge_marker": 1, "defaults": { "textures": { "texture": "kk:items/keyblades/kingdomkey" }, "model": "kk:kingdomkey.b3d" }, "variants": { "inventory": [ { "transform": { "thirdperson": { "scale": 0.02 }, "gui": { "scale": 0.02 }, "firstperson": { "scale": 0.02 } } } ] } } Here's my texture (kingdomkey.png) And my UV map in Blender As you can see in this screenshot the model renders fine but it is missing the texture. The orientation's not right but that's not a problem. If anyone knows what the problem is I'd be grateful to know. I have spent many hours trying to get this to work. Also this is my first post on here so I hope I'm doing things right.

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.