-
Recently Browsing
No registered users viewing this page.
-
Posts
-
No, you have said that i should make that modelUnicorn extends ModelEntity and not ModelHorse, but i need the AbstractHorseEntity, else the gui, animations and etc. wont work and i should rewrite the code.
-
By Simon_kungen · Posted
Other mods I can find add their TEISR directly in the item constructor (which crashes the server). But doing the same I at least expect it to do something while in Single Player. -
By salvestrom · Posted
ModelUnicorn should extend ModelHorse. Everything else you want will come from your UnicornEntity class extending EntityHorse. -
By mindstorm3223 · Posted
Sorry, I looked around and couldn't figure out how to do that, do you know of any good place where it can tell me how to? -
I'm trying to make a gui to edit values and settings using a command, but the gui just does nothing apart from showing me the "init gui" message I put i the initGui() method. package xyz.jaffaaaa.zealotmanager; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; import net.minecraft.util.ChatComponentText; public class GuiHandler extends GuiScreen { private GuiButton reset; private ZealotManager zm; public GuiHandler(ZealotManager zm) { this.zm=zm; } @Override public void initGui() { super.initGui(); this.buttonList.clear(); Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("init gui")); this.buttonList.add(reset = new GuiButton(0, this.width / 2 - 100, this.height / 2, "Reset Counters")); } @Override protected void actionPerformed(GuiButton button) { if (button == reset) { zm.counter.zealotsSinceLastEye = 0; zm.counter.totalEyes = 0; zm.counter.totalZealots = 0; } } @Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { super.drawScreen(mouseX, mouseY, partialTicks); drawDefaultBackground(); } }
-
-
Topics
-
Who's Online (See full list)