TechLover3000 Posted May 9, 2021 Share Posted May 9, 2021 I have been trying to make a Minehut server which has a PvP arena, so currently I am trying to make sure no one can grief any of the blocks. Here's a sample Skript code that I am using as the non grief code (I replace the '(item name)' with the name of the item, e.g. spruce planks): on break of (item name): if player's gamemode is survival: send "&c&lHey!&r You can't break that block there!" to player cancel event Recently I ran into a problem with this code with dark oak signs (as seen in the video at the bottom). Basically, it only cancels the event if the sign is at a certain orientation, i.e. it will not cancel the event if the sign is on a wall. I have been using the code below to make it so that people cannot grief the signs and this code works for other items (if you replace 'dark oak signs' with the item name, plural) such as spruce planks, spruce logs and spruce leaves. on break of dark oak signs: if player's gamemode is survival: send "&c&lHey!&r You can't break that block there!" to player cancel event I am pretty sure the problem with some of the signs not cancelling the event is the fact the some of them are on walls, and some are not. Also, is there a piece of Skript code which disables PvP? Thanks! TechLover3000 skript signs not working.mp4 Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now