Jump to content

prison pickaxe


ninjea

Recommended Posts

11 hours ago, ninjea said:

how could i go upon making a prison pickaxe with abelites such as explosion

A quick google can find something along these lines

command explosivepickaxe:
	aliases: epickaxe, ep, epick
	permission: epickaxe.use
	permission message: &7&l<< &4&lError&7&l >> &r&cYou do not have the required permission to perform this command
	trigger:
		give a diamond pickaxe with lore "&5Explosive" to the player

on block break:
	if player have permission "epickaxe.use":
		if player is holding a diamond pickaxe with lore "&5Explosive":
			loop blocks in radius 2 of event-block:
				if loop-block is stone or cobblestone or obsidian or any ore:
					add loop-block to {_explosive.%player%::*}
					loop {_explosive.%player%::*}:
						drop loop-value
						set loop-block to air

There is also a custom enchant plugin on Minehut or a well known custom enchant skript online that both offer a range of different enchants with custom abilities.


--- AbusingNub ---


-- Owner of the DevilsNetwork --

◉ DevilsPvP.minehut.gg

◉ BridgesWar.minehut.gg


Here to lend a helping hand.


 

Link to comment
Share on other sites

12 hours ago, AbusingNub said:

A quick google can find something along these lines

command explosivepickaxe:
	aliases: epickaxe, ep, epick
	permission: epickaxe.use
	permission message: &7&l<< &4&lError&7&l >> &r&cYou do not have the required permission to perform this command
	trigger:
		give a diamond pickaxe with lore "&5Explosive" to the player

on block break:
	if player have permission "epickaxe.use":
		if player is holding a diamond pickaxe with lore "&5Explosive":
			loop blocks in radius 2 of event-block:
				if loop-block is stone or cobblestone or obsidian or any ore:
					add loop-block to {_explosive.%player%::*}
					loop {_explosive.%player%::*}:
						drop loop-value
						set loop-block to air

There is also a custom enchant plugin on Minehut or a well known custom enchant skript online that both offer a range of different enchants with custom abilities.

Be careful when using skripts like this that use no regions. Don't get me wrong, this is a decent skript (however, using functions for custom enchants is a little more efficient if you have many) but this can mess up a lot on your server since the enchant can procc everywhere. You should add statements that check if the player or the event block is inside a specific region (such as mine-A or something) and maybe even check if the exploded blocks are within the specific reason since you don't want players to break/explode blocks outside of the specified region (I assumed you would need this for a prison server). 

Link to comment
Share on other sites

5 hours ago, FlapKakker said:

Be careful when using skripts like this that use no regions. Don't get me wrong, this is a decent skript (however, using functions for custom enchants is a little more efficient if you have many) but this can mess up a lot on your server since the enchant can procc everywhere. You should add statements that check if the player or the event block is inside a specific region (such as mine-A or something) and maybe even check if the exploded blocks are within the specific reason since you don't want players to break/explode blocks outside of the specified region (I assumed you would need this for a prison server). 

Yeah this is a simple skript with no boundaries. I would suggest just using the other options I suggested.

  • Like 1

--- AbusingNub ---


-- Owner of the DevilsNetwork --

◉ DevilsPvP.minehut.gg

◉ BridgesWar.minehut.gg


Here to lend a helping hand.


 

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...