Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • (SOLVED) Game keep crashing(1.16.4)
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
Shte_Ken

(SOLVED) Game keep crashing(1.16.4)

By Shte_Ken, November 25, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Shte_Ken    0

Shte_Ken

Shte_Ken    0

  • Tree Puncher
  • Shte_Ken
  • Members
  • 0
  • 12 posts
Posted November 25, 2020 (edited)

Can anybody lead me on why does my game keep crashing ?

 

Thank you

crash-2020-11-24_20.15.54-client.txt

Edited November 28, 2020 by Shte_Ken
  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7597

diesieben07

diesieben07    7597

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7597
  • 55116 posts
Posted November 25, 2020

Show your code.

  • Quote

Share this post


Link to post
Share on other sites

Shte_Ken    0

Shte_Ken

Shte_Ken    0

  • Tree Puncher
  • Shte_Ken
  • Members
  • 0
  • 12 posts
Posted November 25, 2020 (edited)

https://github.com/ShteKentoker/EndRem1.16.4

 

Here's my GitHub

 

Btw, the game crashs when I try to create a new world and I tried removing every file linked to the structure and the game stopped crashing.

Edited November 25, 2020 by Shte_Ken
  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7597

diesieben07

diesieben07    7597

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7597
  • 55116 posts
Posted November 26, 2020
  1. You cannot create registry entries in static initializers (here).
  2. You need to override Structure#getDecorationStage.
  • Quote

Share this post


Link to post
Share on other sites

Shte_Ken    0

Shte_Ken

Shte_Ken    0

  • Tree Puncher
  • Shte_Ken
  • Members
  • 0
  • 12 posts
Posted November 28, 2020 (edited)

Gotcha for the override I took care of that. For the registry on the other hand, I'm not sure where I should register the structure. Should it be in my RegistryHandler with my blocks and items ? Since I use DeferredRegister there shouldn't be any problem.

Edited November 28, 2020 by Shte_Ken
  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7597

diesieben07

diesieben07    7597

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7597
  • 55116 posts
Posted November 28, 2020

You create register it like any other registry entry: during the registry event.

Or you can use DeferredRegister.

  • Quote

Share this post


Link to post
Share on other sites

Shte_Ken    0

Shte_Ken

Shte_Ken    0

  • Tree Puncher
  • Shte_Ken
  • Members
  • 0
  • 12 posts
Posted November 28, 2020

I registered the castle using DeferredRegister and it doesn't crash anymore, however the structure isn't spawning and the /locate commande doesn't work too.
 

I tried overriding getStructureName() but the /locate commande says that the structure couldn't be found.

 

You can look by yourself here https://github.com/ShteKentoker/EndRem1.16.4

 

  • Quote

Share this post


Link to post
Share on other sites

Shte_Ken    0

Shte_Ken

Shte_Ken    0

  • Tree Puncher
  • Shte_Ken
  • Members
  • 0
  • 12 posts
Posted November 28, 2020

Never mind, I fixed it. I just forgot to .get() my END_CASTLE in the main class.

 

Thank you for your great help. You gave me advice without telling me exactly what to do, so I had to read and learn, and I appreciate that.

  • Quote

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Luis_ST
      [1.16.1] [SOLVED] Block drops not respecting harvest level and tooltype

      By Luis_ST · Posted just now

      Add it to your block properties: public YourBlock() { super(Block.Properties.create(Material.ROCK) .hardnessAndResistance(3.5f) .sound(SoundType.STONE) .harvestTool(ToolType.PICKAXE) .setRequiresTool()); }  
    • diesieben07
      Server doesnt start

      By diesieben07 · Posted 36 minutes ago

      1.8 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • BinAufGoogle
      Server doesnt start

      By BinAufGoogle · Posted 52 minutes ago

      1.8.9 Java 8
    • monkeysHK
      Register a Custom Command

      By monkeysHK · Posted 58 minutes ago

      Oh that's what I need. Now it worked & thanks again!
    • Ben Newman
      [1.16.1] [SOLVED] Block drops not respecting harvest level and tooltype

      By Ben Newman · Posted 1 hour ago

      Where do I add the setRequiresTools i really need to know as I cannot find where to code it. Many thanks. 
  • Topics

    • BinAufGoogle
      5
      Server doesnt start

      By BinAufGoogle
      Started 19 hours ago

    • monkeysHK
      4
      Register a Custom Command

      By monkeysHK
      Started 20 hours ago

    • StefanDeSterke
      6
      [1.16.1] [SOLVED] Block drops not respecting harvest level and tooltype

      By StefanDeSterke
      Started July 20, 2020

    • Gubipe
      5
      What is the method to left click?

      By Gubipe
      Started 15 hours ago

    • Luis_ST
      0
      [1.16.5] GameOverlay

      By Luis_ST
      Started 1 hour ago

  • Who's Online (See full list)

    • RavenclawNatsfan
    • diesieben07
    • Luis_ST
    • loordgek
    • yumeji
    • vemerion
    • ozi
    • SAV0Pr0_YT
    • phuoc
    • zOnlyKroks
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • (SOLVED) Game keep crashing(1.16.4)
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community