PPMF #2- Customisable Shockwave Tools w/out Dependancies

Status
This thread has been locked.

BladianMC

Premium
Feedback score
5
Posts
123
Reactions
72
Resources
0
WHAT IS PPMF

PPMF stands for Paid Plugins Made Free

It's something I'll do in my free time, where I'll make plugins which are so simple that they honestly don't deserve to be paid for

I usually make them better, and more configurable and release the source code for anyone to code / use

If you have any suggestions for something that shouldn't be premium feel free to PM me, or to just say something in the thread

If you're going to suggest something from an existing link, try not to post it in a thread, but rather PM me, they don't deserve shit talk​


SHOCKWAVE TOOLS

Shockwave Tools is a plugin which usually does a set mining radius of 3, 5 or 7.

It allows for faster mining, and is a great tool for factions

MY DIFFERENCES (What I've changed)
- Customisable X,Y,Z radius
- Works with different block faces
- Can change the lore and display name of the item
- Can create whatever kind of tool you want with whatever item
- Doesn't require any dependancies due to the method being done differently
- Can apply your own enchantments and applies to all broken blocks
- Configurable Items: Check Config

Commands:

- /giveTool <player> <ID>

Config:



Source Code:

https://github.com/BladianYT/ShockwaveTools

Ignore my comments about asking for permission, do what you want with the code!

Download:

Spigot: https://www.spigotmc.org/resources/ppmf-2-customisable-shockwave-tools-w-out-dependancies.48708/
 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

100iphones

Feedback score
2
Posts
102
Reactions
25
Resources
0
Not trying to trash your thread, but im pretty sure its “dependencies”. Otherwise, looks good.
 

Kof1e

Deactivated
Feedback score
1
Posts
126
Reactions
26
Resources
0
Your code does not actually use a radius (this is a term for spheres/circles and yours creates a cube). Furthermore, I'm sure what most people assume when they see "radius" is that the block they break will be the centre. Yet your code makes it such that the centre is not the broken block, but rather the block they broke + ("radius"/2).

Having the block broken in fact facilitates everything else because you don't have to have different functions for block faces.

Also, some of the code is a bit random, like this:
VItFajCgTKeQEpVpU1q5NQ.png

Could be replaced with List<String> lore = Arrays.asList(split[3].split(":"));

Still, this is a very altruistic thing you're doing and is good :)
 

BladianMC

Premium
Feedback score
5
Posts
123
Reactions
72
Resources
0
Your code does not actually use a radius (this is a term for spheres/circles and yours creates a cube). Furthermore, I'm sure what most people assume when they see "radius" is that the block they break will be the centre. Yet your code makes it such that the centre is not the broken block, but rather the block they broke + ("radius"/2).

Having the block broken in fact facilitates everything else because you don't have to have different functions for block faces.

Also, some of the code is a bit random, like this:
VItFajCgTKeQEpVpU1q5NQ.png

Could be replaced with List<String> lore = Arrays.asList(split[3].split(":"));

Still, this is a very altruistic thing you're doing and is good :)

Agreed with the list part, honestly just didn't think about it.

The radius part is me being shit at names, probably should just replace it by distance.

Now for the first argument I have one main problem, as you had stated I don't need to do the function with blockfaces but I believe this is incorrect.

(Unless I mis-read then in that case I'm completely incorrect)

The tool doesn't do a cube section, it does half a cube (well atleast close to half). The blockfaces are required so that the tool works relative to where the player is looking, and at the same does that half a cube the correct way, meaning not only going east, but going south.

I don't think there's a way of doing this without checking the block face of the broken block, otherwise what happens is that the half a cube won't go the correct direction at all times.
 

BladianMC

Premium
Feedback score
5
Posts
123
Reactions
72
Resources
0
Added a download link to the post which redirects to Spigot, since MC-Market won't let me add it as a resource.
 

Conflicted

drip or drown
Premium
Feedback score
12
Posts
273
Reactions
142
Resources
0
This is a really generous thing to do for this community, imo they don't deserve it. Keep up the good work :)
 

Rza1337

Accountant & Programmer
Supreme
Feedback score
3
Posts
49
Reactions
15
Resources
0
BladianMC said:
commandSender.sendMessage("§c/giveTool <player> <ID>");

That's bad form for using chat colours. You should make use of the bult in ChatColor class in Bukkit/Spigot.
 
Status
This thread has been locked.
Top