PromptBase
Close icon
General
Home
Marketplace
Hire
Create
Login
Sell
Explore
🤖 GPT

Easy Minecraft Plugin Generator

Easy Minecraft Plugin Generator gpt prompt mini thumbnail
1.0Star icon
1 review
2Heart icon
Favorites
818Eye icon
Views
GPT-3.5-TURBO
TestedTick icon
TipsTick icon
Generates professional Minecraft Java plugins. Requires knowledge of how to set up an IDE for Minecraft plugin development. The generator does the rest. Included in your purchase: - An easy guide on how to use the prompt - Fast post-purchase support
...more
$5.99
Get prompt
After purchasing, you will gain access to the prompt file which you can use with GPT or the app builder. You'll receive 20 free generation credits with this purchase. By purchasing this prompt, you agree to our terms of service.
Over 1 month ago

Prompt Details

Model
Chat - GPT-3.5 (gpt-3.5-turbo)
Token size
185 ($0.00040 / call)
Example input
The generator will create a plugin that will: - Summon 10 pigs every time I write /piggies
Example output
import org.bukkit.Bukkit; import org.bukkit.Material; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.inventory.InventoryClickEvent; import org.bukkit.inventory.Inventory; import org.bukkit.inventory.InventoryHolder; import org.bukkit.inventory.ItemStack; import org.bukkit.plugin.java.JavaPlugin; public class PigGUI implements InventoryHolder { private final Inventory inventory; public PigGUI() { inventory = Bukkit.createInventory(this, 27, "Pig Menu"); initializeItems(); } @Override public Inventory getInventory() { return inventory; } // You can customize the GUI layout and items here private void initializeItems() { inventory.setItem(11, createGuiItem(Material.PORKCHOP, "Spawn Pigs")); inventory.setItem(15, createGuiItem(Material.BARRIER, "Close")); } protected void onClick(Player player, int slot) { if (slot == 11) { player.performCommand("summon pig"); } else if (slot == 15) { player.closeInventory(); } } private ItemStack createGuiItem(final Material material, final String name) { final ItemStack item = new ItemStack(material, 1); final var meta = item.getItemMeta(); meta.setDisplayName(name); item.setItemMeta(meta); return item; } @EventHandler public void onInventoryClick(final InventoryClickEvent event) { if (event.getInventory().getHolder() != this) { return; } event.setCancelled(true); final var clicked = event.getCurrentItem(); if (clicked == null || clicked.getType() == Material.AIR) { return; } onClick((Player) event.getWhoClicked(), event.getRawSlot()); } } import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; public class PiggiesCommand implements CommandExecutor { private final JavaPlugin plugin; public PiggiesCommand(JavaPlugin plugin) { this.plugin = plugin; } @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (!(sender instanceof Player)) { return false; } final var player = (Player) sender; final var pigGUI = new PigGUI(); player.openInventory(pigGUI.getInventory()); return true; } } YML: name: PigPlugin version: 1.0 main: com.example.PigPlugin commands: piggies: description: Summon pigs usage: /piggies
  • Reviews for this prompt (1)
- Aug 23, 2023
1.0
Filled star iconOutlined star iconOutlined star iconOutlined star iconOutlined star icon
- Verified PurchaseTick icon
"I want a refund this was terrible and not what I was expecting at all"
Browse Marketplace