DrMango14 / Create-The_Factory_Must_Grow

Other
16 stars 16 forks source link

Polarizer crashing the server #114

Open megasouyutubers opened 1 month ago

megasouyutubers commented 1 month ago

I have a private minecraft server where i play with friend and when we try to make magnetic steel the server crashes and another mod prints in the console "block ticking...". Im not home so i cant provide the log but please help me find a fix for it.

OctavioCore commented 1 month ago

I've got the same problem - Polarizer quickly becomes a ticking entity after getting power, and attempts to crash the server. Happens on 1.20.1 MC with Forge 47.3.0.

@megasouyutubers I can't help you with a fix, but I can give you a workaround - use Neruina to make sure the server won't fatally crash, and CraftTweaker + CreateTweaker to add a different recipe for magnetic ingots. Unfortunately I can't find any documentation, so I don't know whether you can manipulate TFMG Polarizer recipes with CT, but at least you'll have a way to get those ingots without crashing your server.

megasouyutubers commented 1 month ago

Hello, i tried what you said and it works! Thanks for help!

OctavioCore commented 1 month ago

Hello, i tried what you said and it works! Thanks for help!

No problem. I've actually found a way to remove the polarizer recipe & added my separate one; I'm already using Create: New Age in the pack, so i've switched the recipe for magnetic ingot to "Mix 1 steel ingot & one magnetite block in heated mixer"

If you want to do the same, here's how I got it scripted (You need CreateTweaker and CraftTweaker for this to work):

import mods.createtweaker.MixingRecipe;
<recipetype:tfmg:polarizing>.removeByName("tfmg:polarizing/magnetic_ingot");

<recipetype:create:mixing>.addRecipe("magnetization", <constant:create:heat_condition:heated>, [<item:tfmg:magnetic_ingot>], [(<item:create_new_age:magnetite_block> * 1), (<item:tfmg:steel_ingot> * 1)], [], 200);
IcyDev569 commented 3 weeks ago

Thank you so much! I hope the devs fix it soon.

tabr commented 1 week ago
<recipetype:create_new_age:energising>.addJsonRecipe("magnetization", {
  "type": "create_new_age:energising",
  "ingredients": [
    {
      "tag" : "forge:ingots/steel",
      "amount" : 1
    }
  ],
  "results" : [
    {
      "item" : "tfmg:magnetic_ingot",
      "amount" : 1
    }
  ],
  "energy_needed" : 150
});