Aller au contenu
  • 0

Système de cultures custom avec des tête custom


Question

Posté(e) (modifié)

Version de minecraft:  PaperSpigotk, (MC: 1.8.8)
Version de skript: 2.2-dev27

Addons utilisés: MundoSK, SkExtras, SkQuery, SkRayFall, SkStuff, TuSKe, Umbaska,

Type du skript: Système de cultures custom

Description du script :

Bonjours, J'aimerais que quand je pose ma tête custom qui et une culture custom (une tomate) quelle puisse passer par 3 stade différente,
Mais que si cette tête n'est pas la que sa annule l'action car pour ma par après quelque trentaine de test je reviens au même résultat (quand je re-pose ma tete a l'endroit ou elle était),
Sa la duplique et ce n'est pas ce que je veux, Je voudrais que quand on casse la culture (la tête custom) sa stop le processus et qu'il n'y et aucune duplication, Désolé pour mon français ^^'.



Voici mon code pour le moment merci d'avance a tout ce qui essayerons de m'aider 

command /tomate:
	trigger:
		give player head:3 with custom nbt "{display:{Name:""Immature Tomato""},SkullOwner:{Id:""bbf8fc94-4c01-4d24-8af3-16b78eb84d9a"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNTllN2MyMTY3MzI4M2NlNjMwMDExY2M1MzgyNDYxMDg4MmNkZTNkOWE4YjYzMGMwZTIzMDU4ZTMxNDRkYiJ9fX0=""}]}}}"



on place:
	if tag "SkullType" of nbt of block = 3:
		if "%nbt of event-block%" contain "bbf8fc94-4c01-4d24-8af3-16b78eb84d9a":
			set {crops.%event-block%} to "true"
			set {_x} to x-coord of event-block
			set {_y} to y-coord of event-block
			set {_z} to z-coord of event-block
			wait 5 seconds
			if {crops.%event-block%} is "true":
				set {_immature} to "{Owner:{Id:""a11b2733-6d11-4c92-bda4-50418f410b40"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjc3YWQ3YjBlYmZiM2MyZWVhM2Y5Y2Q0NTI5ZTExNTMxOWFiYTNlNzEyZTMzMzU1MGM5OWQ1Y2YyNGIwODkifX19""}]}},Rot:8b,x:%{_x}%,y:%{_y}%,z:%{_z}%,id:""Skull"",SkullType:3b}"
				set block at location of event-block to floor mob head block:1
				add {_immature} to nbt of block at event-block
				wait 5 seconds
				if {crops.%event-block%} is "true":
					set {_immature0} to "{Owner:{Id:""05635a92-c9f7-4a61-8a41-bdabcccd0d87"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDE4Njg2M2ZkZjNmM2UyOTc5ZWM2ZDk3OGEwODhkOGE0Zjg2NjRjNTBiNWI2ZDI5YWQ0YTdhYzI2NGEwMTcifX19""}]}},Rot:8b,x:%{_x}%,y:%{_y}%,z:%{_z}%,id:""Skull"",SkullType:3b}"
					set block at location of event-block to floor mob head block:1
					add {_immature0} to nbt of block at event-block
				else:
					stop
			else:
				stop
				
	if tag "SkullType" of nbt of block = 3:
		if "%nbt of event-block%" contain "a11b2733-6d11-4c92-bda4-50418f410b40":
			set {crops.%event-block%} to "true"
			set {_x} to x-coord of event-block
			set {_y} to y-coord of event-block
			set {_z} to z-coord of event-block
			wait 5 seconds
			if {crops.%event-block%} is "true":
				set {_immature1} to "{Owner:{Id:""05635a92-c9f7-4a61-8a41-bdabcccd0d87"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDE4Njg2M2ZkZjNmM2UyOTc5ZWM2ZDk3OGEwODhkOGE0Zjg2NjRjNTBiNWI2ZDI5YWQ0YTdhYzI2NGEwMTcifX19""}]}},Rot:8b,x:%{_x}%,y:%{_y}%,z:%{_z}%,id:""Skull"",SkullType:3b}"
				set block at location of event-block to floor mob head block:1
				add {_immature1} to nbt of block at event-block
			else:
				stop



on break:
	if tag "SkullType" of nbt of block = 3:
		if "%nbt of event-block%" contain "bbf8fc94-4c01-4d24-8af3-16b78eb84d9a":
			set {crops.%event-block%} to "false"
			
		if "%nbt of event-block%" contain "a11b2733-6d11-4c92-bda4-50418f410b40":
			set {crops.%event-block%} to "false"

 

Modifié par Crozider

11 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Il y a 2 heures, BySplash a dit :

Je ne m'y connais pas encore beaucoup mais il faut peut être remettre à "false"

Si tu regarde bien le code c'est ce qu'il ce passe quand je casse l'une des tête mais merci quand même

  • 0
Posté(e)
Il y a 23 heures, Kilterra a dit :

Ce que tu peux faire c'est lorsque tu places le bloc Tu met la variable à l'heure exacte avec now, tu définis également une variable temporaire à la même heure et après 5 secondes tu regardes Si c'est toujours la même heure.

Si tu n'a pas compris j'essayerai de le faire.

 

Sa ma tout l'aire d'^tre une bonne idée même si je n'est pas tout compris 🙂

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.