Everything posted by Spyeedy
-
Custom Mob's model rendering incorrectly
My rotation point was set incorrectly due to the cuffs being the child of the legs and etc.
-
[1.9/1.8] Custom Crafting Machine Tutorials?
You need a class that extends Container, another class that extends Slot, a CraftingManager class (do not extend CraftingManager), a 4th class which extends GuiContainer, a GuiHandler which extends IGuiHandler and 2 final class which extends IRecipe, one for ShapedRecipe and the other for ShapelessRecipe. You will also need a class to handle your recipes. If you are going for the 3 by 3 like the vanilla's crafting table, you can copy the vanilla's classes, SlotCrafting, GuiCrafting, ContainerWorkbench, CraftingManager, ShapedRecipes and ShapelessRecipes. You can find these classes in the following folders, minecraft/item/crafting, minecraft/inventory and minecraft/client/gui/inventory To call for the Gui when the block is activated, @Override public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumFacing side, float x, float y, float z) { if (!world.isRemote && !player.isSneaking()) { player.openGui(Main.instance, 0, world, pos.getX(), pos.getY(), pos.getZ()); return true; } return false; } Remember to register the GuiHandler in the init method of your main class. To register, NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler()); To you can create an instance of your main class with this @Instance(Reference.MOD_ID) public static Main instance;
-
Custom Mob's model rendering incorrectly
My custom mob's model is rendering incorrectly. Model code of my Github. Rendering in Techne: Rendering in Minecraft: NOTE:My texture image size is 64 by 64
-
[1.8.9][Solved]Custom mob not spawning
I'm calling that method from init ClientProxy Edit #1: Tried calling method from preInit ClientProxy and it worked. Thanks.
-
[1.8.9][Solved]Custom mob not spawning
It appeared that there was something wrong in my rendering code. I attempted to use the RenderingRegistry#registerEntityRenderingHandler's IRenderFactory method instead of the Render extends Entity method. Here's my IRenderFactory "way", RenderingRegistry.registerEntityRenderingHandler(EntityJayGarrick.class, new IRenderFactory<EntityJayGarrick>() { @Override public Render<? super EntityJayGarrick> createRenderFor(RenderManager manager) { return new RenderJayGarrick(manager); } });
-
[1.8.9][Solved]Custom mob not spawning
There is a villager being spawned. As a matter of fact, the different textures of the villagers is shown each time I enter the /summon command and use the spawn egg.
-
[1.8.9][Solved]Custom mob not spawning
Edited post 5, and I'm using the /summon command like this, "/summon hpm.jay_garrick". "hpm" is my mod id while "jay_garrick" is the name I gave when I registered my entity.
-
[1.8.9][Solved]Custom mob not spawning
Update: I changed where my entity is being registered, from preInit to init in my main class and edited my entity mob class. When I entered the /summon command and clicked the spawn egg, it's spawned! But the entity that is being spawned is that of a villager and not my custom mob
-
[1.8.9][Solved]Custom mob not spawning
I'm on forge 1.8.9-11.15.1.1722
-
[1.8.9][Solved]Custom mob not spawning
Forgot to mention that when I did the /summon command, "unable to summon object" is printed in the chat
-
[1.8.9][Solved]Custom mob not spawning
My custom mob is not spawning. I've tried using it's spawn egg but nothing is being spawned. I've also tried using the /summon code, to no avail. Any help is appreciated . Github for my code.
IPS spam blocked by CleanTalk.