Jump to content

how do i make it so you can only break certain blocks


codeispoggg

Recommended Posts

on break:
	if {Blocks::*} does not contain event-block:
		cancel event

on load:
	clear {Blocks::*}
	add stone, oak planks, iron ore, gold ore, diamond ore and emerald ore to {Blocks::*}

Change the last line as you see fit

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

44 minutes ago, AgentGamerPro said:

on break:
	if {Blocks::*} does not contain event-block:
		cancel event

on load:
	clear {Blocks::*}
	add stone, oak planks, iron ore, gold ore, diamond ore and emerald ore to {Blocks::*}

Change the last line as you see fit

There's a big problem there. If spawn was made out of any of the blocks in the list it would be breakable. So @codeispoggg I recommend you to learn how to use worldguard. Specifically learn how to use setpriority and region flags. 

MillionDollar, TrillionDollar

BillionDollar please notice me.

 

Screenshot_303.png.cf935223698ddad0326155e211785a33.png

Link to comment
Share on other sites

  • 2 years later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...