GunPowder Block Unique Plugin

Status
This thread has been locked.

Kerbyy

Indite Solutions Owner
Banned
Feedback score
7
Posts
86
Reactions
52
Resources
0
Thread.png
 

Attachments

  • Thread.png
    Thread.png
    38.2 KB · Views: 53
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

matthewp

Software Developer
Supreme
Feedback score
14
Posts
542
Reactions
503
Resources
0
I could write this in one class with 4 methods, extremely over-priced, this should be a free resource.
 

Kerbyy

Indite Solutions Owner
Banned
Feedback score
7
Posts
86
Reactions
52
Resources
0
This is insanely overpriced. It took you a week to make this?

Also there should at least be an optional regen feature so admins aren't constantly having to replace them.

I could write this in one class with 4 methods, extremely over-priced, this should be a free resource.
Oh I didn't make the thread someone made it for me and messed it up updated prices soon
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/kerbyy-scam-report.341123/)

Kerbyy

Indite Solutions Owner
Banned
Feedback score
7
Posts
86
Reactions
52
Resources
0
Agreed.

Code:
@EventHandler
public void onBreak(BlockBreakEvent e) {
    Block block = e.getBlock();
    Player player = e.getPlayer();

    if (!block.getType().equals(Material.NOTE_BLOCK)) {
        return;
    }
    ItemStack gunpowder = new ItemStack(Material.SULPHURE);
    ItemStack hand = player.getItemInHand();

    if (hand != null && hand.hasEnchantment(Enchantment.FORTUNE)) {
        int level = hand.getEnchantment(Enchantment.FORTUNE)); //No idea if this is the right method, probably not
        int min = level;
        int max = level + 2;
        int amount = new Random().nextInt(max + 1 - min) + min;

        gunpowder.setAmount(amount);
    }

    e.setDropItems(false);
    block.getWorld().dropItem(block.getLocation(), gunpowder);
}

I basically just remade the plugin in 5 minutes and in that time I had to message someone a bit on Discord. This should be free.
Yes i understand that but i also am going to add bigger features to this plugin that are going to be worth it
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/kerbyy-scam-report.341123/)
Status
This thread has been locked.
Top