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.

KakesRevenge

Members
  • Joined

  • Last visited

Everything posted by KakesRevenge

  1. i tried this and i know you will be face palming really hard but i have no idea how to set icons to this @Override @SideOnly(Side.CLIENT) public IIcon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining) { if(player.isUsingItem() == true) { return (IIcon) this.setTextureName(ProjektWow.MODID + ":" + "testshield"); } return (IIcon) this.setTextureName(ProjektWow.MODID + ":" + "testsword"); }
  2. Thanks and how return the texture name ? i mean the icon
  3. Yep, basically when right clicked the sword shield texture will appear in hand
  4. I have a sword and when its in my hand and im holding the right mouse button, i cant attack and im blockin the damage and in my hand the sword is rendering as a shield. EDIT : all in one hand
  5. thank you for your explanation but what shield slot ? what gui ? all i need is sword which will be rendered in hand as shield when "using it" holding right click
  6. yes i want the second option ... is there some kind of tutorial ? i have no idea how should i learn that ...
  7. one more thing - how can i do it so that you have sword and when you right click it the shield will show up ?
  8. thank you very much and how to check if im rightclicking the item ? in the event ?
  9. thank you for your detailed explanation it works fine now + i have 1 more question - how to check what/who is hurting me ?
  10. i tried : if(player.getCurrentEquippedItem() == ItemHandler.Shield){ but it wont work so what should i do ?
  11. Hello everyone, im trying to make a shield. Ive tried to subscribe living hurt event but this is not working : @SubscribeEvent public void LivingHurt(LivingHurtEvent event) { if(event.entityLiving instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer)event.entityLiving; if(player.getCurrentEquippedItem() == new ItemStack(ItemHandler.Shield)) { event.ammount = 0F; } } } any ideas ? thx in advance
  12. Hello, so my goal is to share 1 src code that can edit 2 people me and my friend. Basically 2 guys working on 1 source. Do you know some way to do that ? Thx in advance
  13. maybe its because you dont have correct parameters ? you should look to item.class to see theses are the correct parameters ItemStack p_77648_1_, EntityPlayer p_77648_2_, World p_77648_3_, int p_77648_4_, int p_77648_5_, int p_77648_6_, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_ + its public boolean onItemUse
  14. You are not setting the block to your fluid ... so it goes water as default + it should be onItemUse method + you need to override
  15. AwesomeSpider - Thank you so much it works shadowfacts - becuase of this @SubscribeEvent public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event) { if(event.modID.equals(Reference.MODID)) { ConfigHandler.loadConfigs(); } }
  16. its after this : NetherGate = new NetherGate();
  17. So im having trouble with setting durability of item in config Item class : confighnadler : Other stuff with config works fine Durability in game is infinite (for unknown reason)
  18. Wow ok thank you thats all i want to know
  19. do you think vazkii made new water bottle ? and removed the old one ?
  20. and 1 more : vazkii somehow did that when you will right-click empty glass bottle in the end you will get ender air in the bottle ... how to do that ? is here somewhere event for it or something ? i was looking in botania src code for like 2 hours now and cant find it
  21. Thank you guys and one more question because i dont want to create another thread for it ... how to check in which dimension is player?
  22. Ye thats true nad why getRequiredPermissionLevel doesnt work ?
  23. thank you very much i did solve it like so : @Override public boolean canCommandSenderUseCommand(ICommandSender sender) { boolean op = MinecraftServer.getServer().getConfigurationManager().func_152596_g(player.getGameProfile()); return !op || op; }
  24. ok but how to check if cheat mode is enabled

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.