Everything posted by MultiMote
-
[1.6.4]How can I remove chest and spawners from generation?
Removing TileEntity has no effect. You should remove the block. ...or find the way to prevent generation.
-
[1.7.10] Play .ogg on gui button click
Extend GuiButton and override function public void func_146113_a(SoundHandler p_146113_1_) { p_146113_1_.playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation("gui.button.press"), 1.0F)); }
-
[Solved] [1.6.4] Creating a scope for a weapon?
For zoom you can use FOVUpdateEvent or set the value of private variable EntityRenderer.cameraZoom using reflection.
-
[1.7.2] LivingHurtEvent
Or k = ((EntityLivingBase) event.entity).getRNG().nextInt(4);
-
[1.7.10]Containers and Guis[Solved]
Add default constructor to your TileEntity.
-
[1.7.10]Containers and Guis[Solved]
You can use InventoryBasic
-
[1.7.10] How to change Main Menu?
Use events. @SideOnly(Side.CLIENT) @SubscribeEvent public void openGui(GuiOpenEvent event) { if (event.gui instanceof GuiMainMenu) { event.gui = new AwesomeMainMenu(); } }
-
RenderGameOverlayEvent help?
Use ScaledResolution ScaledResolution scaledresolution = new ScaledResolution(this.mc, this.mc.displayWidth, this.mc.displayHeight); int width = scaledresolution.getScaledWidth(); int height = scaledresolution.getScaledHeight();
-
RenderGameOverlayEvent help?
use RenderGameOverlayEvent.Post
-
[1.7.10] Checking if player is Opped (Solved)
player.canCommandSenderUseCommand(2, "")
-
[1.7.2] Techne Model Huge?
Render with 0.0625F scale
-
[1.7.10] A Block that recreates after destoryed
You can use BlockEvent.BreakEvent
-
[1.7.10]Making Rendered Items not Rotate
Don't use RenderHelper for ENTITY render type.
-
[1.6.4] Why world.isRemote is always true?
Верно.
-
Gui Text Colour Question
Use any html color generator. This, for example.
-
[1.7.10] [Resolved] How to make an .obj model in blender and texture it.
http://up42.ru/u/p/___________________2014-08-15_17_36_32.png[/img] http://up42.ru/u/p/___________________2014-08-15_17_36_40.png[/img] http://up42.ru/u/p/___________________2014-08-15_17_37_081.png[/img] http://up42.ru/u/p/___________________2014-08-15_17_37_39.png[/img] http://up42.ru/u/p/___________________2014-08-15_17_40_28.png[/img] http://up42.ru/u/p/___________________2014-08-15_17_40_47.png[/img] http://up42.ru/u/p/___________________2014-08-15_17_41_06.png[/img]
-
1.7.10 Check whether player is Operator on a Server
player.canCommandSenderUseCommand(2, "")
-
Forge NBTTagCompound won't load.
Or DataWatchers.
-
Forge NBTTagCompound won't load.
You don't need to cancel EntityConstructing event.
-
Forge NBTTagCompound won't load.
Why receiveCanceled is true?
-
[SOLVED][1.7.10]How to create a text box in GUI
Maybe something like this? protected void keyTyped(char par1, int par2) { this.text.textboxKeyTyped(par1, par2); if(!( par2== Keyboard.KEY_E && this.text.isFocused())) super.keyTyped(par1, par2); }
-
[SOLVED][1.7.10]How to create a text box in GUI
I mean closing gui. For number-only textfield... um... you can look at my spinner code https://gist.github.com/MultiMote/479db07ec89ce675c5a6
-
[SOLVED][1.7.10]How to create a text box in GUI
set text.setFocused(false) before exit
-
[SOLVED][1.7.10]How to create a text box in GUI
private GuiTextField text; public void initGui() { this.text = new GuiTextField(this.fontRendererObj, this.width / 2 - 68, this.height/2-46, 137, 20); text.setMaxStringLength(23); text.setText("sample text"); this.text.setFocused(true); } protected void keyTyped(char par1, int par2) { super.keyTyped(par1, par2); this.text.textboxKeyTyped(par1, par2); } public void updateScreen() { super.updateScreen(); this.text.updateCursorCounter(); } public void drawScreen(int par1, int par2, float par3) { this.drawDefaultBackground(); this.text.drawTextBox(); super.drawScreen(par1, par2, par3); } protected void mouseClicked(int x, int y, int btn) { super.mouseClicked(x, y, btn); this.text.mouseClicked(x, y, btn); }
-
[1.7.10] pre mob spawn event
EntityEvent.EntityConstructing or EntityJoinWorldEvent
IPS spam blocked by CleanTalk.