Aller au contenu
  • 0

Faire appel au plugin faction dans un skript


Question

Posté(e)

Bonjour / Bonsoir, je rencontre un petit problème sur mon Script de Hammeur

 

Version de Minecraft : 1.8.8
Version de Skript : 2.2-dev36

Addons utilisés: Skellett, SkQuery, skript, skungee, TuSkE

Type du skript : skript de Hammeur

Description du script :

J'ai fait un plugin de Hammeur (pioche de 3*3)  qui marche a 100% mais le problème c'est qu'il mine dans les claims du plugin (faction) et les zones du plugin worldguards 

Es possible de corriger sa avec un addons ou autre chose mercis   

 

J'ai utilisé ce code :

options:
   GHamMSG: "&aTu as reçu %arg 2% hammeur(s) !"
   NNerr: "&cNombres négatifs non-autorisés !"


command /hammeur [<text>] [<number>] [<player>]:
	permission: hammeur.give
	trigger:
		if arg 1 is "give":
			if arg-2 > 0:
				give arg-2 of iron pickaxe of efficiency 5 and unbreaking 3 named "&c[&6Hammeur&c]" to arg-3
				send {@GHamMSG}
			else:
				send {@NNerr}
on break of Stone:
	if name of player's tool is "&c[&6Hammeur&c]":
		set {_1.%player%} to location of event-block
		set {_2.%player%} to location of event-block
		if player's pitch is between -50 and 50:
			add 1 to y-coord of {_1.%player%}
			subtract 1 from y-coord of {_2.%player%}
			if player's horizontal facing is west or east:
				add 1 to z-coord of {_1.%player%}
				subtract 1 from z-coord of {_2.%player%}
				loop blocks within {_1.%player%} to {_2.%player%}:
					id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 87 or 0
					break loop-block with player's tool
					if player's tool is enchanted with fortune 1:
						chance of 3%:
							drop 1 diamond at loop-block
					else if player's tool is enchanted with fortune 2:
						chance of 3%:
							drop 2 diamond at loop-block          
					else if player's tool is enchanted with fortune 3:
						chance of 3%:
							drop 3 diamond at loop-block              
					else if player's tool is enchanted with fortune 4:
						chance of 3%:
							drop 4 diamond at loop-block      
					else if player's tool is enchanted with fortune 5:
						chance of 3%:
							drop 5 diamond at loop-block
			else if player's horizontal facing is north or south:
				add 1 to x-coord of {_1.%player%}
				subtract 1 from x-coord of {_2.%player%}
				loop blocks within {_1.%player%} to {_2.%player%}:
					id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 0
					break loop-block with player's tool
					if player's tool is enchanted with fortune 1:					
						chance of 3%:
							drop 1 diamond at loop-block
					else if player's tool is enchanted with fortune 2:
						chance of 3%:
							drop 2 diamond at loop-block          
					else if player's tool is enchanted with fortune 3:
						chance of 3%:
							drop 3 diamond at loop-block              
					else if player's tool is enchanted with fortune 4:
						chance of 3%:
							drop 4 diamond at loop-block      
					else if player's tool is enchanted with fortune 5:
						chance of 3%:
							drop 5 diamond at loop-block		
					
		else:
			add 1 to x-coord of {_1.%player%}
			add 1 to z-coord of {_1.%player%}
			subtract 1 from x-coord of {_2.%player%}
			subtract 1 from z-coord of {_2.%player%}
			loop blocks within {_1.%player%} to {_2.%player%}:
				id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 0
				break loop-block with player's tool
				if player's tool is enchanted with fortune 1:
					chance of 3%:
						drop 1 diamond at loop-block
				else if player's tool is enchanted with fortune 2:
					chance of 3%:
						drop 2 diamond at loop-block          
				else if player's tool is enchanted with fortune 3:
					chance of 3%:
						drop 3 diamond at loop-block              
				else if player's tool is enchanted with fortune 4:
					chance of 3%:
						drop 4 diamond at loop-block      
				else if player's tool is enchanted with fortune 5:
					chance of 3%:
						drop 5 diamond at loop-block	
					
					
					

Merci à ceux qui voudront bien m'aider 🙂
Je vous répondrai au plus vite !

Bonne journée

5 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Mercie je chercher pour un block c'est pour sa javais pas pris sa 

mais j'ai trouver 

if claim at loop-block is Wilderness:

le code modifier sa des gens veule 

on break of Stone:
	if name of player's tool is "&c[&6Hammeur&c]":
		set {_1.%player%} to location of event-block
		set {_2.%player%} to location of event-block
		if player's pitch is between -50 and 50:
			add 1 to y-coord of {_1.%player%}
			subtract 1 from y-coord of {_2.%player%}
			if player's horizontal facing is west or east:
				add 1 to z-coord of {_1.%player%}
				subtract 1 from z-coord of {_2.%player%}
				loop blocks within {_1.%player%} to {_2.%player%}:
					id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 87 or 0
					if claim at loop-block is Wilderness:
						break loop-block with player's tool
						if player's tool is enchanted with fortune 1:
							chance of 3%:
								drop 1 diamond at loop-block
						else if player's tool is enchanted with fortune 2:
							chance of 3%:
								drop 2 diamond at loop-block          
						else if player's tool is enchanted with fortune 3:
							chance of 3%:
								drop 3 diamond at loop-block              
						else if player's tool is enchanted with fortune 4:
							chance of 3%:
								drop 4 diamond at loop-block      
						else if player's tool is enchanted with fortune 5:
							chance of 3%:
								drop 5 diamond at loop-block
			else if player's horizontal facing is north or south:
				add 1 to x-coord of {_1.%player%}
				subtract 1 from x-coord of {_2.%player%}
				loop blocks within {_1.%player%} to {_2.%player%}:
					id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 0
					if claim at loop-block is Wilderness:
						break loop-block with player's tool
						if player's tool is enchanted with fortune 1:					
							chance of 3%:
								drop 1 diamond at loop-block
						else if player's tool is enchanted with fortune 2:
							chance of 3%:
								drop 2 diamond at loop-block          
						else if player's tool is enchanted with fortune 3:
							chance of 3%:
								drop 3 diamond at loop-block              
						else if player's tool is enchanted with fortune 4:
							chance of 3%:
								drop 4 diamond at loop-block      
						else if player's tool is enchanted with fortune 5:
							chance of 3%:
								drop 5 diamond at loop-block		
					
		else:
			add 1 to x-coord of {_1.%player%}
			add 1 to z-coord of {_1.%player%}
			subtract 1 from x-coord of {_2.%player%}
			subtract 1 from z-coord of {_2.%player%}
			loop blocks within {_1.%player%} to {_2.%player%}:
				id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 0
				if claim at loop-block is Wilderness:
					break loop-block with player's tool
					if player's tool is enchanted with fortune 1:
						chance of 3%:
							drop 1 diamond at loop-block
					else if player's tool is enchanted with fortune 2:
						chance of 3%:
							drop 2 diamond at loop-block          
					else if player's tool is enchanted with fortune 3:
						chance of 3%:
							drop 3 diamond at loop-block              
					else if player's tool is enchanted with fortune 4:
						chance of 3%:
							drop 4 diamond at loop-block      
					else if player's tool is enchanted with fortune 5:
						chance of 3%:
							drop 5 diamond at loop-block	
					
					
					

mercie beaucoup bonne soirée

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.