Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Dragonisser

Forge Modder
  • Joined

  • Last visited

Everything posted by Dragonisser

  1. 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
  2. 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]; }
  3. 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.
  4. How about providing the crash log? We don't have diesieben07's magical code reading mind
  5. 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
  6. 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
  7. 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.
  8. Use the Ore Dictionary http://www.minecraftforge.net/wiki/How_to_use_the_ore_dictionary
  9. 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 ^^
  10. 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 ^^
  11. Well i did it the other way https://bitbucket.org/Dragonisser/cobaltmod/commits/283795b0c366596dc22362f56cb558f9d8ff04ab And it seems to work 100% =3
  12. Gonna take a look at it ^^ I guess i need this: public void onPickupFromSlot(EntityPlayer p_82870_1_, ItemStack p_82870_2_) { this.onSlotChanged(); }
  13. But i doesnt put the backpack in any custom slot, that's why i dont understand why i should need this.
  14. This piece of code is from my Container class. https://bitbucket.org/Dragonisser/cobaltmod/src/76e33bd900578fe3f52ee4d4d19c3b5bcf646c9a/cobaltmod/gui/ContainerBackpack.java?at=master#cl-180
  15. 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); }
  16. 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
  17. Changed it to: ItemStack[] armor = player.inventory.armorInventory; I hope that was it, what you meant but still nothing happends ._.
  18. 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
  19. How am i going to send a packet containing the right itemstack in the armorslot?
  20. 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.
  21. 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
  22. Good to know. I think he means like a fridge. After a time of amount the porkchop gets bad
  23. 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;
  24. 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; }
  25. I'm going to say that to him ^^ Thanks diesiebe07 (und Gute Nacht)

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.