1/31/2024 0 Comments Enchanted golden apple java![]() ![]() EASIEST WAY 1.18+ To get UNLIMITED GOLD APPLES in Minecraft (Bedrock + Java). Some people believe that Golden Apples are real, while others believe that they. You'll want to listen to the event that is on the other side of that link (PlayerItemConsumeEvent), then get the ItemStack from the event (the method to do this can be found at that link also), check if the ItemStack is a Golden Apple, check if it has a data/durability of 1 (for the enchanted golden apple), and then check the ItemStack's ItemMeta for a name and lore to determine if it is your "Special Golden Apple", and if it is, you'd apply your effects.įor the 2nd part, which is canceling the event and manually taking the ItemStack away, you'd cancel the event (you can find out that at the first link for the Event API), then you'd get the item in hand (since this is what they are consuming), you'd check if its amount is > 1, and if it is, set its amount to its current amount - 1, and if it isn't greater then 1, you'd simply remove the ItemStack from their inventory. Watch the video explanation about 6 Places To Get ENCHANTED GOLDEN APPLES. Are Golden Apples real Opinions will vary. CreeperFan12346 If you don't already know how to listen to an event, read through that. Gold cord, gray silk braid, and gray silk cord border the star the braid is worked over in point.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |