Jump to content

Recommended Posts

Posted

I made a model with MrCrayFish's modeling program and got it working in-game, the only thing wrong is the textures aren't all loading.
Screenshot:

Spoiler

unknown.png

Model JSON: 

Spoiler

{
    "__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)",
    "textures": {
        "0": "blocks/base",
        "1": "blocks/supports",
        "2": "blocks/mechanics",
        "3": "blocks/table",
        "4": "blocks/powerport",
        "5": "blocks/glass_gray",
        "6": "blocks/arm",
        "7": "blocks/printerhead"
    },
    "elements": [{
        "name": "Top",
        "from": [0.0, 15.0, 0.0],
        "to": [16.0, 16.0, 16.0],
        "faces": {
            "north": {
                "texture": "#0",
                "uv": [0.0, 14.0, 16.0, 15.0]
            },
            "east": {
                "texture": "#0",
                "uv": [0.0, 14.0, 16.0, 16.0]
            },
            "south": {
                "texture": "#0",
                "uv": [0.0, 14.0, 16.0, 15.0]
            },
            "west": {
                "texture": "#0",
                "uv": [0.0, 14.0, 16.0, 15.0]
            },
            "up": {
                "texture": "#0",
                "uv": [0.0, 0.0, 16.0, 16.0]
            },
            "down": {
                "texture": "#0",
                "uv": [0.0, 0.0, 16.0, 16.0]
            }
        }
    }, {
        "name": "North West Support",
        "from": [1.0, 1.0, 1.0],
        "to": [2.0, 15.0, 2.0],
        "faces": {
            "north": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "east": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "south": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "west": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "up": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 1.0]
            },
            "down": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 1.0]
            }
        }
    }, {
        "name": "North East Support",
        "from": [14.0, 1.0, 1.0],
        "to": [15.0, 15.0, 2.0],
        "faces": {
            "north": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "east": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "south": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "west": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "up": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 1.0]
            },
            "down": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 1.0]
            }
        }
    }, {
        "name": "South East Support",
        "from": [14.0, 1.0, 14.0],
        "to": [15.0, 15.0, 15.0],
        "faces": {
            "north": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "east": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "south": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "west": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "up": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 1.0]
            },
            "down": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 1.0]
            }
        }
    }, {
        "name": "South West Support",
        "from": [1.0, 1.0, 14.0],
        "to": [2.0, 15.0, 15.0],
        "faces": {
            "north": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "east": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "south": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "west": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "up": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 1.0]
            },
            "down": {
                "texture": "#1",
                "uv": [0.0, 0.0, 1.0, 1.0]
            }
        }
    }, {
        "name": "Mechanics",
        "from": [3.0, 13.0, 3.0],
        "to": [13.0, 15.0, 13.0],
        "faces": {
            "north": {
                "texture": "#2",
                "uv": [0.0, 0.0, 10.0, 2.0]
            },
            "east": {
                "texture": "#2",
                "uv": [0.0, 0.0, 10.0, 2.0]
            },
            "south": {
                "texture": "#2",
                "uv": [0.0, 0.0, 10.0, 2.0]
            },
            "west": {
                "texture": "#2",
                "uv": [0.0, 0.0, 10.0, 2.0]
            },
            "up": {
                "texture": "#2",
                "uv": [0.0, 0.0, 10.0, 10.0]
            },
            "down": {
                "texture": "#2",
                "uv": [0.0, 0.0, 10.0, 10.0]
            }
        }
    }, {
        "name": "Table",
        "from": [2.5, 3.0, 2.5],
        "to": [13.5, 4.0, 13.5],
        "faces": {
            "north": {
                "texture": "#3",
                "uv": [0.0, 2.0, 11.0, 3.0]
            },
            "east": {
                "texture": "#3",
                "uv": [0.0, 0.0, 11.0, 1.0]
            },
            "south": {
                "texture": "#3",
                "uv": [0.0, 2.0, 11.0, 3.0]
            },
            "west": {
                "texture": "#3",
                "uv": [1.0, 0.0, 12.0, 1.0]
            },
            "up": {
                "texture": "#3",
                "uv": [0.0, 0.0, 11.0, 11.0]
            },
            "down": {
                "texture": "#3",
                "uv": [0.0, 0.0, 11.0, 11.0]
            }
        }
    }, {
        "name": "North West Table Support",
        "from": [3.0, 1.0, 3.0],
        "to": [3.5, 3.0, 3.5],
        "faces": {
            "north": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 2.0]
            },
            "east": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 2.0]
            },
            "south": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 2.0]
            },
            "west": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 2.0]
            },
            "up": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 0.5]
            },
            "down": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 0.5]
            }
        }
    }, {
        "name": "North East Table Support",
        "from": [12.5, 1.0, 3.0],
        "to": [13.0, 3.0, 3.5],
        "faces": {
            "north": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 2.0]
            },
            "east": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 2.0]
            },
            "south": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 2.0]
            },
            "west": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 2.0]
            },
            "up": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 0.5]
            },
            "down": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 0.5]
            }
        }
    }, {
        "name": "South East Table Support",
        "from": [12.5, 1.0, 12.5],
        "to": [13.0, 3.0, 13.0],
        "faces": {
            "north": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 2.0]
            },
            "east": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 2.0]
            },
            "south": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 2.0]
            },
            "west": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 2.0]
            },
            "up": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 0.5]
            },
            "down": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 0.5]
            }
        }
    }, {
        "name": "South West Table Support",
        "from": [3.0, 1.0, 12.5],
        "to": [3.5, 3.0, 13.0],
        "faces": {
            "north": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 2.0]
            },
            "east": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 2.0]
            },
            "south": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 2.0]
            },
            "west": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 2.0]
            },
            "up": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 0.5]
            },
            "down": {
                "texture": "#1",
                "uv": [0.0, 0.0, 0.5, 0.5]
            }
        }
    }, {
        "name": "Power Port",
        "from": [4.0, 1.0, 0.0],
        "to": [12.0, 15.0, 1.0],
        "faces": {
            "north": {
                "texture": "#4",
                "uv": [0.0, 1.0, 8.0, 15.0]
            },
            "east": {
                "texture": "#4",
                "uv": [8.0, 1.0, 9.0, 15.0]
            },
            "south": {
                "texture": "#4",
                "uv": [8.0, 1.0, 16.0, 15.0]
            },
            "west": {
                "texture": "#4",
                "uv": [8.0, 1.0, 9.0, 15.0]
            },
            "up": {
                "texture": "#4",
                "uv": [0.0, 1.0, 8.0, 2.0]
            },
            "down": {
                "texture": "#4",
                "uv": [0.0, 1.0, 8.0, 2.0]
            }
        }
    }, {
        "name": "Glass North 1",
        "from": [0.0, 1.0, 0.0],
        "to": [4.0, 15.0, 1.0],
        "faces": {
            "north": {
                "texture": "#5",
                "uv": [12.0, 1.0, 16.0, 15.0]
            },
            "east": {
                "texture": "#5",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "south": {
                "texture": "#5",
                "uv": [0.0, 1.0, 4.0, 15.0]
            },
            "west": {
                "texture": "#5",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "up": {
                "texture": "#5",
                "uv": [0.0, 0.0, 4.0, 1.0]
            },
            "down": {
                "texture": "#5",
                "uv": [0.0, 0.0, 4.0, 1.0]
            }
        }
    }, {
        "name": "Glass North 2",
        "from": [12.0, 1.0, 0.0],
        "to": [16.0, 15.0, 1.0],
        "faces": {
            "north": {
                "texture": "#5",
                "uv": [1.0, 1.0, 5.0, 15.0]
            },
            "east": {
                "texture": "#5",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "south": {
                "texture": "#5",
                "uv": [11.0, 1.0, 15.0, 15.0]
            },
            "west": {
                "texture": "#5",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "up": {
                "texture": "#5",
                "uv": [0.0, 0.0, 4.0, 1.0]
            },
            "down": {
                "texture": "#5",
                "uv": [0.0, 0.0, 4.0, 1.0]
            }
        }
    }, {
        "name": "Glass East",
        "from": [15.0, 1.0, 1.0],
        "to": [16.0, 15.0, 16.0],
        "faces": {
            "north": {
                "texture": "#5",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "east": {
                "texture": "#5",
                "uv": [0.0, 0.0, 15.0, 14.0]
            },
            "south": {
                "texture": "#5",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "west": {
                "texture": "#5",
                "uv": [0.0, 0.0, 15.0, 14.0]
            },
            "up": {
                "texture": "#5",
                "uv": [0.0, 0.0, 1.0, 15.0]
            },
            "down": {
                "texture": "#5",
                "uv": [0.0, 0.0, 1.0, 15.0]
            }
        }
    }, {
        "name": "Arm",
        "from": [7.0, 7.0, 7.0],
        "to": [9.0, 13.0, 9.0],
        "faces": {
            "north": {
                "texture": "#6",
                "uv": [0.0, 0.0, 8.0, 2.0]
            },
            "east": {
                "texture": "#6",
                "uv": [0.0, 0.0, 2.0, 6.0]
            },
            "south": {
                "texture": "#6",
                "uv": [0.0, 0.0, 2.0, 6.0]
            },
            "west": {
                "texture": "#6",
                "uv": [0.0, 0.0, 2.0, 6.0]
            },
            "up": {
                "texture": "#6",
                "uv": [0.0, 0.0, 2.0, 2.0]
            },
            "down": {
                "texture": "#6",
                "uv": [0.0, 0.0, 2.0, 2.0]
            }
        }
    }, {
        "name": "Printer Head",
        "from": [7.5, 5.0, 7.5],
        "to": [8.5, 7.0, 8.5],
        "faces": {
            "north": {
                "texture": "#7",
                "uv": [0.0, 0.0, 8.0, 2.0]
            },
            "east": {
                "texture": "#7",
                "uv": [0.0, 0.0, 1.0, 2.0]
            },
            "south": {
                "texture": "#7",
                "uv": [0.0, 0.0, 1.0, 2.0]
            },
            "west": {
                "texture": "#7",
                "uv": [0.0, 0.0, 1.0, 2.0]
            },
            "up": {
                "texture": "#7",
                "uv": [0.0, 0.0, 1.0, 1.0]
            },
            "down": {
                "texture": "#7",
                "uv": [0.0, 0.0, 1.0, 1.0]
            }
        }
    }, {
        "name": "Base",
        "from": [0.0, 0.0, 0.0],
        "to": [16.0, 1.0, 16.0],
        "faces": {
            "north": {
                "texture": "#0",
                "uv": [0.0, 14.0, 16.0, 15.0]
            },
            "east": {
                "texture": "#0",
                "uv": [0.0, 14.0, 16.0, 15.0]
            },
            "south": {
                "texture": "#0",
                "uv": [0.0, 14.0, 16.0, 15.0]
            },
            "west": {
                "texture": "#0",
                "uv": [0.0, 14.0, 16.0, 15.0]
            },
            "up": {
                "texture": "#0",
                "uv": [0.0, 0.0, 16.0, 16.0]
            },
            "down": {
                "texture": "#0",
                "uv": [0.0, 0.0, 16.0, 16.0]
            }
        }
    }, {
        "name": "Glass South",
        "from": [1.0, 1.0, 15.0],
        "to": [15.0, 15.0, 16.0],
        "faces": {
            "north": {
                "texture": "#5",
                "uv": [0.0, 0.0, 14.0, 14.0]
            },
            "east": {
                "texture": "#5",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "south": {
                "texture": "#5",
                "uv": [0.0, 0.0, 14.0, 14.0]
            },
            "west": {
                "texture": "#5",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "up": {
                "texture": "#5",
                "uv": [0.0, 0.0, 14.0, 1.0]
            },
            "down": {
                "texture": "#5",
                "uv": [0.0, 0.0, 14.0, 1.0]
            }
        }
    }, {
        "name": "Glass West",
        "from": [0.0, 1.0, 1.0],
        "to": [1.0, 15.0, 16.0],
        "faces": {
            "north": {
                "texture": "#5",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "east": {
                "texture": "#5",
                "uv": [0.0, 0.0, 15.0, 14.0]
            },
            "south": {
                "texture": "#5",
                "uv": [0.0, 0.0, 1.0, 14.0]
            },
            "west": {
                "texture": "#5",
                "uv": [0.0, 0.0, 15.0, 14.0]
            },
            "up": {
                "texture": "#5",
                "uv": [0.0, 0.0, 1.0, 15.0]
            },
            "down": {
                "texture": "#5",
                "uv": [0.0, 0.0, 1.0, 15.0]
            }
        }
    }]
}

Blockstate JSON: 

Spoiler

{
    "variants": {
        "normal": {
            "model": "foxtech:fox_tech_materializer" }
        }
    }

Can someone look at this and spy any mistakes? For some reason the glass is only showing up. I feel it's a mistake in the naming or something. If any other code/json is needed just ask.

width=240 height=240http://i.imgur.com/C2FlJXb.png[/img]

 

 

Hey! o/

Posted (edited)
4 minutes ago, larsgerrits said:

In your Block class.

This what I have now. 

Spoiler

public class BlockFoxTechMaterializer extends Block 
{

    public BlockFoxTechMaterializer()
    {
        
        super(Material.GROUND);
        setCreativeTab(CreativeTabs.MISC);
        setUnlocalizedName(Reference.FoxTech_Blocks.FOX_TECH_MATERIALIZER.getUnlocalizedName());
        setRegistryName(Reference.FoxTech_Blocks.FOX_TECH_MATERIALIZER.getRegistryName());
        Block.getBlockLayer(BlockRenderLayer.TRANSLUCENT);
    }

}

"getBlockLayer" is getting an error

Edited by mattyixiriva

width=240 height=240http://i.imgur.com/C2FlJXb.png[/img]

 

 

Hey! o/

Posted (edited)

No, you have to override the method, not call it.

Edited by larsgerrits

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted
Spoiler

package com.matthewrivas.foxtech.blocks;

import com.matthewrivas.foxtech.Reference;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.util.BlockRenderLayer;

public class BlockFoxTechMaterializer extends Block 
{

    public BlockFoxTechMaterializer()
    {
        
        super(Material.GROUND);
        setCreativeTab(CreativeTabs.MISC);
        setUnlocalizedName(Reference.FoxTech_Blocks.FOX_TECH_MATERIALIZER.getUnlocalizedName());
        setRegistryName(Reference.FoxTech_Blocks.FOX_TECH_MATERIALIZER.getRegistryName());
    }

}
 

This is my original class for my block.

width=240 height=240http://i.imgur.com/C2FlJXb.png[/img]

 

 

Hey! o/

Posted
1 minute ago, mattyixiriva said:
  Reveal hidden contents

package com.matthewrivas.foxtech.blocks;

import com.matthewrivas.foxtech.Reference;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.util.BlockRenderLayer;

public class BlockFoxTechMaterializer extends Block 
{

    public BlockFoxTechMaterializer()
    {
        
        super(Material.GROUND);
        setCreativeTab(CreativeTabs.MISC);
        setUnlocalizedName(Reference.FoxTech_Blocks.FOX_TECH_MATERIALIZER.getUnlocalizedName());
        setRegistryName(Reference.FoxTech_Blocks.FOX_TECH_MATERIALIZER.getRegistryName());
    }

}
 

This is my original class for my block.

 

Ok, now override the getRenderLayer method.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted
3 minutes ago, Kokkie said:

First off, why haven't you activated Windows?

Second, make sure you don't use any transparency in the texture...

1. Windows works fine un-activated. Plan on buying it tho.
2. You know what now that I think of it the backgrounds of the images are transparent. I'll go try it.

width=240 height=240http://i.imgur.com/C2FlJXb.png[/img]

 

 

Hey! o/

Posted

Mixing opaque geometry and transparent geometry will always be funky unless you know what you're doing.

(Tip: you don't).

  • Like 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

No, you like to learn in the "please vomit the answer into my face" method.

Which is really annoying for those of us who don't like regurgitating the same answer 47 times.

 

Or put another way:

You're doing it in a way such that upon encountering a problem you flail your arms and go "HALP" and never actually try to solve the problem yourself.  You had to be told five times how to override a method.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

and I was trying to override the method.... but I was told the wrong method. So that really didn't help, until I found the method on my own.....wasn't  

Quote

getRenderLaye

r it was

Quote

BlockRenderLayer

There's people who like to ask for help a lot and there's nothing wrong with that. I'm always happy to help if I can. You should know that you're on a forum where repeats and people requesting help a lot will show up. You would think if people got annoyed by that stuff, they'd keep quiet and keep to themselves? If you don't wanna help and then just get mad or something then just don't reply to begin with. I've said this before, helping and providing info is a lot better than replying back with useless arguments, or complaints.

width=240 height=240http://i.imgur.com/C2FlJXb.png[/img]

 

 

Hey! o/

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



×
×
  • Create New...

Important Information

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