How to fire a BlockBreakEvent with skript?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

SWOEN

Member
Apr 26, 2022
12
0
1
Somewhere
I have a mines plugin (CataMines) and I want a pickaxe that mines a 3x3 area, but the plugin only resets mines when the blocks are broken by players, for example, if i set it to air with worldedit it takes about 3 minutes to reset, while it should reset instantly.

I contacted plugin maker and he said I need to fire a BlockBreakEvent for every block broken.

Does anyone know how or if its possible?


Thanks in advance!
 
Do you mean like..

on break:
if event-block is stone:
add 1 to {minereset}
if 400 is more than or equal to {minereset}:
delete {minereset}
make console execute command ""
#idk what the command is to reset the mine just put it in between the ""
 
That is not really what I meant, I could try to reset the mine myself with skript tho.

What I mean is this:

Code for pickaxe:

Code:
on mine:
  name of player's tool contains "3x3":
     loop blocks in radius 1 of event-block
       break loop-block naturally using player's tool

The plugin doesn't auto reset the mine when its broken like this, but ill try your idea
 
Status
Not open for further replies.