
Everything posted by Dragonisser
-
My New Door Won't Render good.
Thats because you need an Item ^^ https://bitbucket.org/Dragonisser/cobaltmod/src/178c28c1f444b11466696e40bcbfb0f8978acf76/cobaltmod/items/ItemCobexDoor.java?at=master When you place a normal door, do you have the block or the item in your hands
-
[1.7.2+] Modding question
It is for items but the method should be the same ^^ https://bitbucket.org/Dragonisser/cobaltmod/src/178c28c1f444b11466696e40bcbfb0f8978acf76/cobaltmod/items/ItemScroll.java?at=master @Override public String getUnlocalizedName(ItemStack is) { int i = MathHelper.clamp_int(is.getItemDamage(), 0, 1); return super.getUnlocalizedName() + "_" + itemMetaNames[i]; }
-
So i've tried everything not to come here, but it wouldn't work.
Its not correct. He has a folder structure that wont work. It needs to be resources/assets/[mod]/textures/blocks/block.png but he is using resources/assets.[mod]/textures.blocks/block.png and this is wrong.
-
Armor Is Making The Game Crash (SOLVED)
How about providing the crash log? We don't have diesieben07's magical code reading mind
-
So i've tried everything not to come here, but it wouldn't work.
Your path you want, is this: samplemod:textures/blocks/testBlock.png but you got it ressources/assets.samplemod/textures.block/testBlock.png your file structure needs to be ressources/assets/samplemod/blocks/testBlock.png
-
[1.8] Custom Slabs and Stairs Lighting Problem
Yes http://www.minecraftforge.net/forum/index.php/topic,22782.msg120872.html#msg120872 http://files.minecraftforge.net/fml/1.8 http://files.minecraftforge.net/maven/net/minecraftforge/fml/1.8-7.10.99.1005-1.8/fml-1.8-7.10.99.1005-1.8-changelog.txt
-
Removing block using GUI. Sync issue
You need for this packets: http://www.minecraftforge.net/wiki/Packet_Handling It's a bit hard too understand, so just ask again if you cant get any further with you code.
-
Equal Blocks in multiple Mods - What to do?
Use the Ore Dictionary http://www.minecraftforge.net/wiki/How_to_use_the_ore_dictionary
-
[1.7.10] Getting a block to look right in your inventory.
Try this: https://bitbucket.org/Dragonisser/cobaltmod/src/283795b0c366596dc22362f56cb558f9d8ff04ab/cobaltmod/blocks/BlockCobaltFurnace.java?at=master#cl-90 Its for my custom furnace and i had the same problem ^^
-
[1.8] Custom Slabs and Stairs Lighting Problem
Try using. this.setLightOpacity(0); https://bitbucket.org/Dragonisser/cobaltmod/src/283795b0c366596dc22362f56cb558f9d8ff04ab/cobaltmod/blocks/BlockCobaltBrickSlab.java?at=master#cl-22 Tell me if it works 1.8 too, because this is in 1.7.10 and i can't test it right now ^^
-
[Solved][1.7.10]Pressing key opens backpack stored in inventory slot
Well i did it the other way https://bitbucket.org/Dragonisser/cobaltmod/commits/283795b0c366596dc22362f56cb558f9d8ff04ab And it seems to work 100% =3
-
[Solved][1.7.10]Pressing key opens backpack stored in inventory slot
Gonna take a look at it ^^ I guess i need this: public void onPickupFromSlot(EntityPlayer p_82870_1_, ItemStack p_82870_2_) { this.onSlotChanged(); }
-
[Solved][1.7.10]Pressing key opens backpack stored in inventory slot
But i doesnt put the backpack in any custom slot, that's why i dont understand why i should need this.
-
[Solved][1.7.10]Pressing key opens backpack stored in inventory slot
This piece of code is from my Container class. https://bitbucket.org/Dragonisser/cobaltmod/src/76e33bd900578fe3f52ee4d4d19c3b5bcf646c9a/cobaltmod/gui/ContainerBackpack.java?at=master#cl-180
-
[Solved][1.7.10]Pressing key opens backpack stored in inventory slot
I think i found another way :3 https://bitbucket.org/Dragonisser/cobaltmod/src/76e33bd900578fe3f52ee4d4d19c3b5bcf646c9a/cobaltmod/gui/InventoryBackpack.java#cl-130 https://bitbucket.org/Dragonisser/cobaltmod/src/76e33bd900578fe3f52ee4d4d19c3b5bcf646c9a/cobaltmod/handler/GuiHandler.java#cl-31 It seems to work perfectly except i cant pickup item/blocks and move them, it only works with shiftclick ._. I know where the problem is: @Override public ItemStack slotClick(int slot, int button, int flag, EntityPlayer player) { // this will prevent the player from interacting with the item that opened the inventory: if (slot >= 0 && getSlot(slot) != null && getSlot(slot).getStack() == player.getHeldItem()) { return null; } return super.slotClick(slot, button, flag, player); }
-
[Solved][1.7.10]Pressing key opens backpack stored in inventory slot
It print this in the console: player not holding in armor slot armoritem in slot right item armor slot/Server player not holding in armor slot armoritem in slot right item armor slot/Client
-
[Solved][1.7.10]Pressing key opens backpack stored in inventory slot
Changed it to: ItemStack[] armor = player.inventory.armorInventory; I hope that was it, what you meant but still nothing happends ._.
-
[Solved][1.7.10]Pressing key opens backpack stored in inventory slot
Already doing that: @SubscribeEvent public void onKeyInput(KeyInputEvent event) { if (mc.inGameHasFocus) { if (key.getIsKeyPressed()) { CobaltPacketDispatcher.sendToServer(new CobaltOpenGuiMessage(5)); } } } The problem is i need the itemstack or the gui/container doesnt open. And yes it is copy&paste from a tutorial about packets. https://bitbucket.org/Dragonisser/cobaltmod/src
-
[Solved][1.7.10]Pressing key opens backpack stored in inventory slot
How am i going to send a packet containing the right itemstack in the armorslot?
-
[Solved][1.7.10]Pressing key opens backpack stored in inventory slot
My Keyhandler works but the problem is, how do i access the backpack when it is in a armorslot? I tried it with checking and that stuff. It goes through all the if's and print out: player not holding in armor slot armoritem in slot right item armor slot/Client but in the end it doesnt open ._. If the spoiler doesnt seem to work: http://pastebin.com/bRQw7En6 i also tried it with armor[2] instead of backpack, but it still not work. When i have it in my hands and press rightclick it works perfectly, its simply the key + slot problem Hope someone can help me ^^ I know the problem is the itemstack im using for the "new InventoryBackpack())) : null;", but i cant figure out how i get the one i have in the slot stored.
-
Boss Mobs
https://bitbucket.org/Dragonisser/cobaltmod-source/src/108bc56e65c63b01a6becf329b0271c1c968c235/cobaltmod/entity/EntityCobaltGuardian.java?at=master https://bitbucket.org/Dragonisser/cobaltmod-source/src/108bc56e65c63b01a6becf329b0271c1c968c235/cobaltmod/renderer/RenderCobaltGuardian.java?at=master
-
Updating an item inside of a chest?
Good to know. I think he means like a fridge. After a time of amount the porkchop gets bad
-
Making a Mod, MC, crashing every time i try and load
You dont have you ClientProxy where you declared it: com.phyyrus.ds.proxy.ClientProxy @SidedProxy(clientSide = "cobaltmod.main.ClientProxyCobalt", serverSide = "cobaltmod.main.CommonProxyCobalt") package cobaltmod.main; So your ClientProxy needs to be in package com.phyyrus.ds.proxy;
-
custom rendered block causes crash upon starting the game (unsolved) 1.7.2
I've this: ClientProxy RenderingRegistry.registerBlockHandler(RenderAltar.altarRenderId, new RenderAltar()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAltar.class, new RenderAltar()); And in the block.class (would be good if you show us that too ^^) @SideOnly(Side.CLIENT) public int getRenderType() { return RenderAltar.altarRenderId; }
-
[1.7.2] [SOLVED] ClassNotFoundException
I'm going to say that to him ^^ Thanks diesiebe07 (und Gute Nacht)
IPS spam blocked by CleanTalk.