Posted February 15, 201411 yr Hello, I have a question How can I give my bow an enchantment effect? The basic of my code is: ItemStack example = new Itemstack(ExampleBow, 1); example.addEnchantment(Enchantment.jdfhd, 1); In the main mod class is already a code. (Like a crafting recipe) but there is no enchantment. Maybe it is becuase, there is no texture for the bow.... I have no idea
February 16, 201411 yr Try creating a recipe that it's result is the enchanted item. That's how I got mine to work.
February 16, 201411 yr public boolean hasEffect() { return true; } if (user.hasKnowledgeOfJava) { if (user.question.hasCode) { return interpetHelpfulResponse(user.getQuestion()); } else { return "Could you post your code please?"; } } else { return "Learn some freaking Java!"; }
February 16, 201411 yr Author I think the public boolean hasEffect() { return true; } is only for shine effects, or am I wrong?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.