Modern Industrialization

Modern Industrialization

4M Downloads

Custom KubeJS casings not working properly since 1.8.2

Despacito696969 opened this issue ยท 0 comments

commented

Use following startup script:

MIMaterialEvents.addMaterials(e => {
   e.createMaterial("Netherrack", "netherrack", 0x961f0c, builder => {
      builder.machineCasing(8.0)
   })
})

MIMachineEvents.registerCasings(e => {
   e.register('netherrack')
})

let NETHER_FORGE
let nether_forge_str = "nether_forge"

MIMachineEvents.registerRecipeTypes(e => {
   NETHER_FORGE = e.register(nether_forge_str)
      .withItemInputs()
      .withItemOutputs()
})

MIMachineEvents.registerMachines(e => {
   const hatches = e.hatchOf(
      "item_input",
      "item_output",
      "energy_input"
   )

   const nether_forge_shape = e.layeredShape("netherrack", [
        ["nnn"],
        ["n#n"],
   ]).key('n', e.memberOfBlock('modern_industrialization:netherrack_machine_casing'), hatches).build()

   e.simpleElectricCraftingMultiBlock(
      "Nether Forge", nether_forge_str, NETHER_FORGE, nether_forge_shape,
      e.progressBar(77, 33, "arrow"),
      itemInputs => itemInputs.addSlot(56, 35), itemOutputs => itemOutputs.addSlots(102, 35, 4, 2),
      fluidInputs => {}, fluidOutputs => {},
      "netherrack", "chemical_reactor", true, false, false,
   )
})

On 1.8.1 this works fine, but on 1.8.2 machine controller and hatches have purple black texture.

One thing I noticed: on 1.8.2 datagen doesn't generate textures in textures/block/casing folder, I'm not sure if it's intentional.