Everything posted by KakesRevenge
-
[1.7.10] Shield ?
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"); }
-
[1.7.10] Shield ?
Thanks and how return the texture name ? i mean the icon
-
[1.7.10] Shield ?
Yep, basically when right clicked the sword shield texture will appear in hand
-
[1.7.10] Shield ?
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
-
[1.7.10] Shield ?
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
-
[1.7.10] Shield ?
yes i want the second option ... is there some kind of tutorial ? i have no idea how should i learn that ...
-
[1.7.10] Shield ?
one more thing - how can i do it so that you have sword and when you right click it the shield will show up ?
-
[1.7.10] Shield ?
thank you very much and how to check if im rightclicking the item ? in the event ?
-
[1.7.10] Shield ?
thank you for your detailed explanation it works fine now + i have 1 more question - how to check what/who is hurting me ?
-
[1.7.10] Shield ?
i tried : if(player.getCurrentEquippedItem() == ItemHandler.Shield){ but it wont work so what should i do ?
-
[1.7.10] Shield ?
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
-
Sharing source code of mod
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
-
[1.7.10] Custom bucket gives infinite water sources + Tank problem [Solved]
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
-
[1.7.10] Custom bucket gives infinite water sources + Tank problem [Solved]
You are not setting the block to your fluid ... so it goes water as default + it should be onItemUse method + you need to override
-
[1.7.10] Setting durability of item in config
Ok i can do that
-
[1.7.10] Setting durability of item in config
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(); } }
-
[1.7.10] Setting durability of item in config
its after this : NetherGate = new NetherGate();
-
[1.7.10] Setting durability of item in config
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)
-
[1.7.10] Permission to use command
Wow ok thank you thats all i want to know
-
[1.7.10] Permission to use command
do you think vazkii made new water bottle ? and removed the old one ?
-
[1.7.10] Permission to use command
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
-
[1.7.10] Permission to use command
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?
-
[1.7.10] Permission to use command
Ye thats true nad why getRequiredPermissionLevel doesnt work ?
-
[1.7.10] Permission to use command
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; }
-
[1.7.10] Permission to use command
ok but how to check if cheat mode is enabled
IPS spam blocked by CleanTalk.