Jump to content

[1.12.2] Creating a Custom 3D .OBJ Model for Minecraft


PulseBeat_02

Recommended Posts

Hi, I wanted to create a block from a .obj file and put it into Minecraft. I tried searching up on the internet about this, and I found some results, but they were for 1.8, 1.8.9, etc, and not for 1.12.2. If I use the code for 1.8, 1.8.9, etc, eclipse would give off a bunch of weird errors. I would like to have a detailed step - to - step explanation on how to do this.

Thanks!

Link to comment
Share on other sites

  • 2 weeks later...
Quote

I made sure my class names, imports, were all correct

They are not correct, otherwise there will not be the red wiggly lines under it.

These are syntax errors. These are irrelevant to your model.

Use your IDE to find out what are wrong and how to fix them (hover your cursor over the errors).

 

Moreover, you should be using GlStateManager instead of GL11.

Edited by DavidM

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Link to comment
Share on other sites

Not true, then why is the return TileEntityKingMammoth giving off an error and this part

"        super(Material.SNOW);
        setBlockTextureName(Reference.MOD_ID + ":" + name);
        setBlockBounds(0.25F, 0, 0.25F, 0.75F, 0.5F, 0.75F);
        setBlockName(name);
        GameRegistry.registerBlock(this, name);"

giving off an error. (Everything else i get)

Additionally, some of the methods are giving off errors even though they are correct. For example, I had to remove a couple @Override annotations to get rid of some erorrs.

Edited by PulseBeat_02
Link to comment
Share on other sites

Here is the new code after editing some:

 

                                                                                                            

 

Gold_Mammoth Class:

 

1.PNG.3b62c4b4290287987345f6bcf22c1b65.PNG

 

 

RenderTileEntityKingMammoth Class:

 

2.PNG.eac6d0e8167943c6693a406bfb6123d6.PNG

 

 

TileEntityKingMammoth Class:

 

3.PNG.2efe2240fe2b721eca10e1381bcf7271.PNG

 

 

Client Proxy Class:

 

4.PNG.0845eeed724030389f0a3348a21a8e48.PNG

Edited by PulseBeat_02
Link to comment
Share on other sites

1. Please, check your syntax. I spotted at least 3 syntax errors from a quick glance.

2. When your IDE gives you an error, you should read the error and fix the error properly instead of simply removing @Override. The Override annotation is giving an error because the method being overridden does not exists. Removing the @Override will fix the compile-time error, but meanwhile will make the method useless.

3. Things change. The method and field names in 1.8 do not necessarily exist in 1.12.2. An example would be TileEntity#worldObj (1.8), which is changed to TileEntity#world in 1.12.2. Again, use your IDE.

4. Stop registering your items inside the constructor. Initialize and register them in the appropriate event.

 

My suggestion would be:

1. Review Java. You need to get the basic syntaxes right.

2. Names change between versions. You should use your IDE to figure out the names for methods and fields in 1.12.2.

3. 

On 2/21/2019 at 8:37 AM, DavidM said:

(hover your cursor over the errors)

Sentences like "Line xxx is giving an error" is not specific. You need to read the error, which is trying to tell you what is wrong.

Edited by DavidM
typo
  • Thanks 1

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Link to comment
Share on other sites

On 2/9/2019 at 11:10 AM, PulseBeat_02 said:

I would like to have a detailed step - to - step explanation

1. Review Java.

2. Check out online documentations to familiarize yourself with the new naming (optional).

3. Fix your errors by reading the errors. They should tell you exactly what you should do, like "XXX is not a method in the parent class" means the method XXX does not exists anymore, and thus you should not be trying to override it.

 

Or even better... Check out other people's example code! Yay!

Linked below is an excellent tutorial on modding in 1.12.2: https://github.com/TheGreyGhost/MinecraftByExample/tree/master/

  • Thanks 1

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Link to comment
Share on other sites

Yes. Delete them and find the 1.12.2 equivalents by using the IDE or online documentations.

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Im trying to create a modpack for me and my friends using forge. I never liked forge so i used fabric at first. But there were some mods I really wanted from forge, so i tried to switch to that. I added the mods (yes the mod versions that are forge supported and version supported) into the mod folder. I kept getting crashes. I then removed the mods one by one till there was nothing left. I tried it one last time and crash again. So I tried to download actual forge and not the forge on OverWolf. I installed it without mods and it still crashed. Deleted and reinstalled Java 17 and nothing. I think this is the link for the crash report https://pastebin.com/hQUhArhN  
    • SLOT GOPAY ⇒ SITUS SLOT GOPAY LINK SLOT GOPAY RESMI HARI INI GAMPANG MENANG 2024   👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡ 𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱 👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡ 𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱 👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡ 𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱         slot gopayadalah situs slot deposit gopay yang telah rekomendasikan di indonesia, berjuta permainan yang di sediakan bola2289 hari ini dengan deposit slot gopay 5k tanpa potongan dan gampang menang di tahun 2024
    • ▁ ▂ ▄ ▅ ▆ ▇ █ 𝐋𝐈𝐍𝐊 𝐃𝐀𝐅𝐓𝐀𝐑 █ ▇ ▆ ▅ ▄ ▂ ▁    👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱    👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱    👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱    👉𝐋𝐈𝐍𝐊 𝐋𝐎𝐆𝐈𝐍 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱     Bocoran Pola Slot Pragmatic dan Trik Slot Gacor pertama yang bisa kamu kerjakan untuk memenangkan permainan slot pragmatic play ini yaitu dengan manfaatkan pengaturan spin. Spin slot gacor sendiri terdiri seperti Spin Manual, Spin Cepat dan Turbo spin ini kelak bisa membantu kamu agar memenangkan maxwin dalam sekejap. Karena setiap permainan slot online pragmatic play tentunya punya pengaturan turbo spin dan spin cepat. Umumnya kamu bisa memperoleh permainan slot gacor pragmatic play yang berbentuk tombol dengan tulisan “Turbo Spin” dan “Spin Cepat”. Kalaulah kamu ingin menjadi juara di gates of olympus, bermainlah dengan Bocoran Pola Slot Gacor karena itu perlu untuk kamu mengatur turbo spin dan spin pesatnya ini untuk kamu gunakan dalam mempercepat permainan judi slot online itu. Informasi Bocoran Pola dan Trik Slot Gacor Paling dipercaya Bisa Maxwin Pola slot gacor hari ini yang pertama kamu direferensikan buat menggunakan turbo spin, karena itu berbeda dengan taktik untuk mencetak kemenangan judi online slot pragmatic dengan lakukan betting. Betting ini yakni panggilan dari taruhan dalam permainan slot online, karena itu kalaulah kamu mau bermain, karena itu betting lebih bernilai untuk kamu kenali dan kerjakan dengan baik dengan pola slot hari ini. Dalam kerjakan pola dan Trik pola slot olympus, beberapa pemain memang tidak ada keterpaksaan untuk tetapkan nominal sampai kamu bisa bebas saat lakukan betting dengan nominal yang rendah atau tinggi. Dengan trik slot olympus maxwin ini kamu dapat segera mempermainkan gamenya karena itu kamu bisa buat merasakan langsung bagaimana triknya memainkan permainan pragmatic play ini. Pola gacor olympus terbaru, pola gacor olympus bet 200, pola maxwin olympus, trik pola slot olympus, pola gacor olympus malam ini, pola gacor olympus hari ini modal receh, pola gacor olympus siang hari ini, rumus permainan slot pragmatic, kode slot pragmatic, rahasia pola slot, pola slot gacor, pola slot pragmatic hari ini, jam hoki main slot pragmatic. Bocoran Pola Slot Gacor Gates Of Olympus dan Trik agar bisa memenangkan slot gacor pragmatic play ini adalah dengan cara pakai semua chip yang ada. Dalam permainan pragmatic play kamu bisa melakukan taruhan pakai chip, tidak hanya pakai bet saja. Dan rerata chip ini bisa kamu dapatkan dari beberapa permainan judi pragmatic berwujud kepingan kecil di mana kamu bisa dapatkan beberapa bentuk kepingan. Kamu juga bebas buat manfaatkan semua chip yang kamu punya dalam permainan itu atau hanya menggunakan beberapa chip saja sesuai kemauan kamu. Tetapi kalaulah kamu ingin menjadi juara permainannya, sehingga kamu disarankan buat pakai semua chip. Karena oleh menggunakan semua chip dalam permainan, karena itu kamu segera dapat mendapat bonus dalam jumlah yang besar. Tersebut beberapa Pola dan Trik menang permainan slot gacor pragmatic play. Strategi pas terakhir yaitu dengan pakai saldo akun sebanyak-banyaknya. Dengan manfaatkan saldo permainan sebanyaknya, karenanya kecil kemungkinan kamu akan mengulang permainan. Oleh karena itu langkah ini bisa demikian efektif untuk kamu gunakan waktu mempermainkan permainan judi online slot gacor pragmatic play. Langkah Pilih Bocoran Pola dan Trik Slot Gacor Paling dipercaya Gampang Maxwin Ada beragam Bocoran Pola dan Trik Slot Gacor agar bisa menang yang lumayan gampang memberi hasil atau keuntungan maxwin yang besar buat anda. Pertama kali Trik ini dapat kita aplikasikan dan mempelajari ke semua website judi slot online. Apa Trik gampang meraih kemenangan di games slot pragmatic play online? Berikut opsinya : Permainkan Games Slot 3 Gulungan Pola slot gacor pragmatic harus bettor pahami jika tipe permainan yang mempunyai 3 gulungan lebih gampang untuk dimenangi. Permainan slot 3 gulungan pragmatic di atas kertas bisa dimenangi secara benar-benar gampang. Bahkan juga betaruh pemula juga dapat melakukan dengan trik slot olympus maxwin x500. Trik pola slot olympus ke dua paling mudah untuk meraih kemenangan di judi slot pragmatic play online ialah mendapati permainan yang gampang lebih dulu. Permainan yang gampang tentu saja semakin lebih cepat dalam memberi kemenangan. Karena itu, pilih permainan yang cepat dan mudah untuk ditaklukkan dengan pola slot gacor malam ini gates of olympus. Pakai bocoran slot gacor pragmatic hari ini, untuk menang secara mudah, sebaiknya memutar spin lebih dulu. Kita sebagai bettors kerap memperoleh kesadaran dan memahami pola slot pragmatic. Jadi ketika menggunakan pola slot olympus ini dapat dijadikan modal khusus permainan. Tentukan Games yang Gampang Dahulu Trik Pola Gacor Olympus Menang Besar di Permainan Judi Slot, selainnya menang gampang, ada pula langkah meraih kemenangan dengan nominal besar. Beberapa trik ini bisa dipakai untuk capai keuntungan yang optimal. Berikut penuturannya. Putar Sekitar Kemungkinan Untuk menang besar gunakan pola slot olympus x500, jumlah perputaran atau bermain mesin slot pragmatic akan punya pengaruh besar. Yakinkan perputaran yang kita kerjakan banyak. Minimal kerjakan spin sampai 20 kali supaya kesempatan kemenangannya besar dengan trik beli spin olympus dari kami. Tentukan Jekpot Besar bila ingin menang besar dalam slot bermain pragmatic? Mencari saja tipe permainan yang mempunyai jekpot besar. Jekpot besar penting dalam penyeleksian permainan. Dengan jekpot yang besar karena itu keuntungan yang didapatkan besar mudah-mudahan pola slot gacor hari ini olympus membawa anda menang banyak. Trik Pola Gacor Olympus Hari Ini Tidak boleh Stop Sampai Anda Memperoleh Jekpot Khusus. Ini langkah baik untuk menang super besar. Kita harus terus memutar atau mainkan mesin judi slot online di pragmatic online sampai jekpot sukses didapat dan tidak ada uang yang di sia-siakan ketika mengikuti pola slot olympus dari kami. Tersebut langkah bermain situs slot online pragmatic play supaya menang besar dan gampang yang dapat kita coba. Beberapa cara itu bisa dibuktikan efisien jika dipakai . Maka, kita tak perlu sangsi atau cemas dengan beberapa cara itu. Karena, semua langkah di atas sudah tentu baik dan tepat untuk menang. Untuk Pola Slot Gacor Online Sah Menang Berturut-turut Jam gacor slot pragmatic ini hari telah, bocoran slot gacor ini hari terhitung telah, saat ini waktunya admin Slot Gacor memberikan tambahan teknik slot gacor atau pola slot gacor terbaik supaya meraih kemenangan berturut-turut setiap kali bermain. Dengan kombinasi sepenuhnya akan memudahkan anda sanggup maxwin di dalam beberapa saat saja. Lantas bagaimana pola strategi yang hendak diberi? Ingin pahami ya? Ingin tahu pasti bosku? Langsung info pola slot gacor pragmatic slot admin Slot Gacor yaitu : Pola Slot Gacor Olympus Spin Auto 50x ( 0.20) Spin Auto 20x ( 0.40) Spin Spasi 20x ( 0.40) Contreng Ganda Chance Buy freespin ( 0.20 - 0.80) Pola Slot Gacor Slot Bonanza Spin Auto 40x Quick Spin ( 0.20) Spin Auto 20x Turbo Spin ( 0.40) Spin Spasi 15x ( 0.40) Contreng Ganda Chance Buy freespin ( 0.20 - 0.80) Pola Slot Gacor Starlight Princess Spin Auto 80x Quick Spin ( 0.20) Spin Auto 40x Turbo Spin ( 0.40) Contreng Ganda Chance Buy freespin ( 0.20 - 0.80) Pola Slot Gacor Wild West Gold Spin Auto 100x Quick Spin ( 0.20) Spin Auto 80x Turbo Spin ( 0.40) Spin Auto 50x ( 0.80) Spin Spasi 25x ( 1.00) Keuntungan Daftar Di Situs Bocoran Pola Trik Slot Gacor Maxwin Dengan bermain Slot Online di website Pola Slot Gacor ini hari 2023 yang adalah website judi Slot Gacor ini hari di indonesia yang terbaik hingga kepuasan memainkan permainan slot online ini hari tentu tercipta terlebih bila anda gabung bersama sama yang menjadi satu diantara agen slot online gacor ini hari paling dipercaya tahun 2023. Kenyataannya anda tentu untung dan di mana tentu bersama dengan bermacam- jenis service yang ada. Untuk anggota slot online ini hari, kalian tentu mendapatkan semua perjudian online ini hari dari kami adalah 9Gaming, bersama dengan performa yang baru dan terdapat feature menarik, dan bonus jekpot slot online ini hari Benar-benar Besar. Dengan bermacam- jenis Keuntungan lainnya dari situs Slot Online Benar-benar Baru dan Paling dipercaya, adalah: Proses daftar yang terlalu Gampang dilaksanakan. Withdraw dan Deposit instant dan simpel. Bisa usaha demonstrasi akun slot pragmatic khususnya dulu. Bayar setiap kemenangan pemain. Siapkan website judi slot promosi ini hari 2023. Ada banyak sekali bonus dan promo yang dapat anda punyai saat tergabung dengan web judi slot online gampang menang, antara lainnya seperti: Bonus New Member 100 Slot Game. Bonus Cashback. Bonus Komisi Tiap-Tiap hari slot online. Bonus Judi Bola/ Sportbook Cashback. Bonus Komisi setiap hari Live Kasino. Bonus Komisi Judi tembak ikan online. Bonus Komisi Judi Togel Online. Bonus Turn Over. Promosi Slot Deposit DANA dan Pulsa Tanpa Potongan.
    • BANDAR4D : SITUS SLOT ONLINE TERGOKIL HARI INI GAMPANG MENANG BANJIR SCATTER HITAM 2024   👉𝐋𝐈𝐍𝐊 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡ 𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱 👉𝐋𝐈𝐍𝐊 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡ 𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱 👉𝐋𝐈𝐍𝐊 : 𝐊𝐋𝐈𝐊 𝐃𝐈𝐒𝐈𝐍𝐈 ⚡ 𝟖𝟔𝟖 𝐆𝐑𝐔𝐎𝐏 🔱       Selamat bergabung di SLOT GACOR HARI INI merupakan daftar situs judi SLOT GACOR HARI INI dan SLOT GACOR HARI INI terpercaya di Indonesia. Pada saat ini di era teknologi yang semakin berkembang maju saat ini, banyak orang berlomba-lomba untuk membuat sebuah arena taruhan layaknya game judi slot online deposit pulsa atau dengan menggunakan uang asli. Judi SLOT GACOR HARI INI saat ini sedang mencapai puncak tertinggi dimana banyak orang-orang ingin bermain dengan meraih keuntungan yang berlipat. Alasan orang bermain judi dikarenakan pandemi yang membuat masyarakat kesulitan untuk mendapatkan uang lebih atau tambahan untuk mencukupi kebutuhan hidupnya.
    • DAFTAR SLOT GACOR DISINI DAFTAR SLOT GACOR DISINI DAFTAR SLOT GACOR DISINI Slot deposit dana minimal 5000 sangat terjangkau dan anda sudah dapat menikmati permainan slot online terbaik dengan RTP Winrate tertinggi 98% gampang menang. Slot deposit dana juga sudah lolos uji dan terbukti aman untuk bermain dan daftar di situs judi slot deposit dana 5000 tanpa potongan resmi. TAG : Slot Dana Slot Dana Slot Dana Slot Dana Slot Dana 5000 Slot Dana 5000 Slot Dana 5000
  • Topics

×
×
  • Create New...

Important Information

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