Jump to content
  • 0

How to make it so only people can break some blocks?


RoustyTousty

Question

Hello, im making a server where people hawe to mine ores and the ores regenerate. I all ready hawe the script for the ores to regenerate, but when i put world guard region over it no one ca break them and if i do not place the region then every one can break even the blocks i dont want the to break so if eny one has eny ideas to make it so only some blocks can be broken pls let me know. it can be as script too but so op players can still break it.

Thanks 😄

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hello!

For future questions about skript please use the Skript discussion section of the forums.

In this case you're going to want to use the "on break" event, and compare the block type to ensure its a block you want to allow being broken. If it is not, you can cancel the event to prevent the block from being broken.

 

If you want this behavior restricted to an area, you can use WorldGuard region compatibility with skript, or SkBee bounds to localize the event.

 

Hope this helps! 😄

 - Discord: Brim#0768

 

image.png.f1adf348277e390065b8e913c0f185d4.png

 

 

 

Link to comment
Share on other sites

  • 0

@Brim here being helpful! 😄 Anyways, if you got any other questions related to Minehut feel free to join the discord or please make a post in the help category thanks!

  • Thanks 1

Default - 5/10/2017 - 8/1/2018
[VIP] - 8/1/2018 - 11/25/2020
[HELPER] - 11/25/2020 - 3/8/2021
[MOD] - 3/8/2021 - 5/17/2021
[<3] 5/17/2021 - Now

Former Minehut Moderator.

Link to comment
Share on other sites

  • 0
2 hours ago, MrIncredible455 said:

I have a similar problem where i used world guard to make spawn regions unbreakable and even I wasn't able to break it. so I did it it again and now everyone who joins can break it. I don't know how to make it so that ops can break anything but new players can't. 

 

View previous posts, may be useful.

Default - 5/10/2017 - 8/1/2018
[VIP] - 8/1/2018 - 11/25/2020
[HELPER] - 11/25/2020 - 3/8/2021
[MOD] - 3/8/2021 - 5/17/2021
[<3] 5/17/2021 - Now

Former Minehut Moderator.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...