simulate block break

  • 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!

gloatymadn

Member
Feb 9, 2024
13
0
1
22
Hello, how i can stimulate the destruction of the block for the player's tool?

The player's tool has a custom durability in lore, and if I change the durability of the tool itself, then the custom durability does not change.

therefore, I need a way that will stimulate the player's action - breaking the block.
 
Are you trying to make the lore change when the item's durability changes? If so, I'm pretty sure it's not that complex but you're gonna have to wait until when I get home (and feel like it).
 
Are you trying to make the lore change when the item's durability changes? If so, I'm pretty sure it's not that complex but you're gonna have to wait until when I get home (and feel like it).
No, I need to simulate a block breaking event. This causes a change in the Lore and NBT tag of custom strength.

that is, when activated, the script should make simulate block break with a player's tool
 
I don't think you can do that with regular Skript, but I know there is an addon that allows you to do that called skript-reflect. Let me give you an example:

Rich (BB code):
event-block.breakNaturally()

Only issue is, I don't understand the 'change in the lore and nbt' part.
 
Also, sorry for talking so long to respond. I took a break from coding for a while.