Marketplace/Gameplay/פלאגין של נוץ' אפל ואייטם פריים בלתי נראה
פלאגין של נוץ' אפל ואייטם פריים בלתי נראה
minecraftFreev1.0.0
Description
"Write a complete Java code for a Minecraft Spigot plugin (API version 1.20+) that implements two custom features: 1. Custom Crafting Recipe: Result: 1 Enchanted Golden Apple (Notch Apple). Ingredients: 2 regular Golden Apples. Type: Shapeless recipe (the player can place them anywhere in the 3x3 crafting grid). 2. Custom Anvil Recipe (Invisible Item Frame): Slot 1 (Left): 1 Item Frame. Slot 2 (Right): 1 Potion of Invisibility (any duration). Result: 1 Item Frame that has the NBT tag {EntityTag:{Invisible:1b}} and a custom display name "Invisible Item Frame". Cost: Set the experience level cost to 5. Logic: Use the PrepareAnvilEvent to handle this logic since custom anvil recipes are not native to the standard recipe API. Plugin Requirements: Include the main class extending JavaPlugin. Register the recipes in the onEnable method. Include a separate Listener class for the PrepareAnvilEvent to ensure clean code. Provide the content for the plugin.yml file as well."