Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script options:
- $ db url jdbc:mysql://localhost:3306/skriptGTA2
- $ db username root
- $ db password craft
- options:
- table_prefix: ARME
- On script load:
- update "CREATE TABLE IF NOT EXISTS {@table_prefix}_Player (Arme varchar(255),Nom varchar(255),Degats varchar(255),Munition varchar(255),NomMunition varchar(255),MunMax TINYINT,Cadence TINYINT,Tchargement TINYINT,Balle varchar(255),VitesseB TINYINT,NombreB TINYINT,Durabilite SMALLINT,SonCh varchar(255),SonTir varchar(255))"
- delete {{@table_prefix}.arme::*}
- add objects in column "Arme" from result of query "SELECT Arme FROM {@table_prefix}_Player WHERE 1" to {{@table_prefix}.arme::*}
- loop {{@table_prefix}.arme::*}:
- set {{@table_prefix}.%loop-value%.Arme} to loop-value parsed as an item type
- set {{@table_prefix}.%loop-value%.Nom} to the first element out of objects in column "Nom" from result of query "SELECT Nom FROM {@table_prefix}_Player WHERE Arme = '%loop-value%'"
- set {{@table_prefix}.%loop-value%.Nom} to {{@table_prefix}.%loop-value%.Nom} parsed as an text
- set {{@table_prefix}.%loop-value%.NomMunition} to the first element out of objects in column "NomMunition" from result of query "SELECT NomMunition FROM {@table_prefix}_Player WHERE Arme = '%loop-value%'"
- set {{@table_prefix}.%loop-value%.NomMunition} to {{@table_prefix}.%loop-value%.NomMunition} parsed as an text
- set {{@table_prefix}.%loop-value%.Munition} to the first element out of objects in column "Munition" from result of query "SELECT Munition FROM {@table_prefix}_Player WHERE Arme = '%loop-value%'"
- set {{@table_prefix}.%loop-value%.Munition} to {{@table_prefix}.%loop-value%.Munition} parsed as item type
- set {{@table_prefix}.%loop-value%.Degats} to the first element out of objects in column "Degats" from result of query "SELECT Degats FROM {@table_prefix}_Player WHERE Arme = '%loop-value%'"
- set {{@table_prefix}.%loop-value%.Degats} to {{@table_prefix}.%loop-value%.Munition} parsed as an integer
- set {{@table_prefix}.%loop-value%.MunMax} to the first element out of objects in column "MunMax" from result of query "SELECT MunMax FROM {@table_prefix}_Player WHERE Arme = '%loop-value%'"
- set {{@table_prefix}.%loop-value%.MunMax} to {{@table_prefix}.%loop-value%.MunMax} parsed as an integer
- set {{@table_prefix}.%loop-value%.Cadence} to the first element out of objects in column "Cadence" from result of query "SELECT Cadence FROM {@table_prefix}_Player WHERE Arme = '%loop-value%'"
- set {{@table_prefix}.%loop-value%.Cadence} to "%{{@table_prefix}.%loop-value%.Cadence}% tick" parsed as an timespan
- set {{@table_prefix}.%loop-value%.Tchargement} to the first element out of objects in column "Tchargement" from result of query "SELECT Tchargement FROM {@table_prefix}_Player WHERE Arme = '%loop-value%'"
- set {{@table_prefix}.%loop-value%.Tchargement} to "%{{@table_prefix}.%loop-value%.Tchargement}% tick" parsed as an timespan
- set {{@table_prefix}.%loop-value%.Balle} to the first element out of objects in column "Balle" from result of query "SELECT Balle FROM {@table_prefix}_Player WHERE Arme = '%loop-value%'"
- set {{@table_prefix}.%loop-value%.Balle} to "%{{@table_prefix}.%loop-value%.Balle}% tick" parsed as entity type
- set {{@table_prefix}.%loop-value%.VitesseB} to the first element out of objects in column "VitesseB" from result of query "SELECT VitesseB FROM {@table_prefix}_Player WHERE Arme = '%loop-value%'"
- set {{@table_prefix}.%loop-value%.VitesseB} to {{@table_prefix}.%loop-value%.VitesseB} parsed as an integer
- set {{@table_prefix}.%loop-value%.NombreB} to the first element out of objects in column "NombreB" from result of query "SELECT NombreB FROM {@table_prefix}_Player WHERE Arme = '%loop-value%'"
- set {{@table_prefix}.%loop-value%.NombreB} to {{@table_prefix}.%loop-value%.NombreB} parsed as an integer
- set {{@table_prefix}.%loop-value%.Durabilite} to the first element out of objects in column "Durabilite" from result of query "SELECT Durabilite FROM {@table_prefix}_Player WHERE Arme = '%loop-value%'"
- set {{@table_prefix}.%loop-value%.Durabilite} to {{@table_prefix}.%loop-value%.Durabilite} parsed as an integer
- set {{@table_prefix}.%loop-value%.SonCh} to the first element out of objects in column "SonCh" from result of query "SELECT SonCh FROM {@table_prefix}_Player WHERE Arme = '%loop-value%'"
- set {{@table_prefix}.%loop-value%.SonCh} to {{@table_prefix}.%loop-value%.SonCh} parsed as an text
- set {{@table_prefix}.%loop-value%.SonTir} to the first element out of objects in column "SonTir" from result of query "SELECT SonTir FROM {@table_prefix}_Player WHERE Arme = '%loop-value%'"
- set {{@table_prefix}.%loop-value%.SonTir} to {{@table_prefix}.%loop-value%.SonTir} parsed as an text
- command /as:
- trigger:
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('flint and steel','&6&lM2A1 ','6','gunpowder','&6&lMunition lance flamme','5','3','80','bottle of enchanting','1','5','10','portal.travel','fire.fire')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('golden pickaxe','&6&lM72-LAW ','20','cactus green','&6&lMunition Roquette','1','3','60','fireball','2','1','10','portal.travel','note.harp')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('wooden hoe','&6&lGatling-PR ','4','gold nugget','&6&lMunition Mitrailleuse','20','5','40','snowball','5','5','20','note.pling','note.snare')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('iron hoe','&6&lArbalète ','6','arrow','&7&lCarreau d arbalète','1','15','10','arrow','100','1','30','none','random.bow')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('iron shovel','&6&lSarbacane ','2','prismarine shard','&7&lFléchette','1','10','5','arrow','4','1','15','none','random.bow')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('diamond hoe','&5&lFR-F1 ','8','nether quartz item','&5&lMunition Sniper','1','20','20','snowball','50','1','15','note.pling','note.snare')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('golden hoe','&5&lDragounov ','10','nether quartz item','&5&lMunition Sniper','1','20','20','snowball','50','1','15','note.pling','note.snare')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('stone hoe','&5&lBarette-M90 ','6','nether quartz item','&5&lMunition Sniper','2','20','20','snowball','50','1','25','note.pling','note.snare')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('wooden pickaxe','&3&lTEC-9 ','2','pumpkin seeds','&3&lMunition Uzi','10','9','20','snowball','5','1','60','note.pling','note.hat')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('wooden axe','&3&lR12-MU ','2','pumpkin seeds','&3&lMunition Uzi','12','9','20','snowball','5','1','60','note.pling','note.hat')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('stone shovel','&3&lScorpion-VZ61 ','2','pumpkin seeds','&3&lMunition Uzi','16','9','20','snowball','5','1','50','note.pling','note.hat')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('stone pickaxe','&e&lMaverick ','3','melon seeds','&e&lMunition fusil a pompe','4','10','40','snowball','3','4','30','note.pling','note.bass')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('stone axe','&e&lTRX-Tactical ','4','melon seeds','&e&lMunition fusil a pompe','1','10','10','snowball','3','4','25','note.pling','note.bass')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('diamond axe','&b&lAK-47 ','3','nether wart item','&b&lMunition fusil d assaut','30','3','20','snowball','5','1','150','note.pling','note.bass')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('golden shovel','&b&lG36K ','3','nether wart item','&b&lMunition fusil d assaut','22','3','20','snowball','5','1','90','note.pling','note.bass')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('golden axe','&b&lM-16 ','2','nether wart','&b&lMunition fusil d assaut','26','3','20','snowball','5','1','90','note.pling','note.bass')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('iron pickaxe','&a&lDouble WALTER P99 ','3','wheat seeds','&a&lMunition arme de poing','12','4','20','snowball','5','1','50','note.pling','note.bass')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('iron axe','&a&lColt Python ','3','wheat seeds','&a&lMunition arme de poing','6','6','30','snowball','5','1','25','note.pling','note.bass')"
- #update "INSERT INTO {@table_prefix}_Player (Arme, Nom, Degats, Munition, NomMunition, MunMax, Cadence, Tchargement, Balle, VitesseB, NombreB, Durabilite, SonCh, SonTir) VALUES ('shears','&a&lMR-88 ','2','wheat seeds','&a&lMunition arme de poing','10','8','20','snowball','5','1','30','note.pling','note.bass')"
- on rightclick holding weapon:
- if line 2 of lore of player's tool contains "Catégorie":
- if line 2 of lore of slot 40 of player contains "Catégorie":
- stop
- cancel event
- set {_name} to "%player's tool%"
- if {db1.arme.%player%.rechargement} is true:
- stop
- name of player's tool contains "Rech.":
- set the name of player's tool to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l0&2&l >>"
- set {_wait} to difference between {db1.arme.%player%.lastused} and now
- if {_wait} is less than {{@table_prefix}.%{_name}%.Cadence}:
- stop
- set {_string} to name of player's tool
- replace "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l" in {_string} with ""
- replace "&2&l >>" in {_string} with ""
- set {_chargeur} to {_string} parsed as integer
- set {db1.arme.%player%.lastused} to now
- if {_chargeur} is 0:
- set {_munition} to the amount of {{@table_prefix}.%{_name}%.Munition} in the player's inventory
- message "%{_munition}%"
- if {_munition} is 0:
- stop
- if {_munition} is greater than {{@table_prefix}.%{_name}%.MunMax}-1:
- message "%{{@table_prefix}.%{_name}%.MunMax}-1%"
- set {db1.arme.%player%.rechargement} to true
- set action bar of player to "&4&l[&c&lRechargement&4&l]"
- set the name of player's tool to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l0 Rech.&2&l >>"
- loop all players in radius 20 around the player:
- play raw sound "%{{@table_prefix}.%{_name}%.SonCh}%" to loop-player at location of player
- wait {{@table_prefix}.%{_name}%.Tchargement}
- remove {{@table_prefix}.%{_name}%.MunMax} of {{@table_prefix}.%{_name}%.Munition} named "%{{@table_prefix}.%{_name}%.NomMunition}%" from player
- loop all items in the player's inventory:
- if name of loop-item contains "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l0 Rech.&2&l >>":
- set the name of loop-item to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l%{{@table_prefix}.%{_name}%.MunMax}%&2&l >>"
- set {db1.arme.%player%.rechargement} to false
- set action bar of player to ""
- stop
- if {_munition} is less than {{@table_prefix}.%{_name}%.MunMax}:
- set {db1.arme.%player%.rechargement} to true
- set action bar of player to "&4&l[&c&lRechargement&4&l]"
- set the name of player's tool to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l0 Rech.&2&l >>"
- wait {{@table_prefix}.%{_name}%.Tchargement}
- loop all players in radius 20 around the player:
- play raw sound "%{{@table_prefix}.%{_name}%.SonCh}%" to loop-player at location of player
- set {_chargeur} to {_munition}
- remove all {{@table_prefix}.%{_name}%.Munition} named "%{{@table_prefix}.%{_name}%.NomMunition}%" from the player
- loop all items in the player's inventory:
- if name of loop-item contains "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l0 Rech.&2&l >>":
- set the name of loop-item to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l%{_chargeur}%&2&l >>"
- set {db1.arme.%player%.rechargement} to false
- set action bar of player to ""
- stop
- if {_chargeur} is greater than 0:
- remove 1 from {_chargeur}
- set {_dura} to line 7 of lore of player's tool
- if "%{_dura}%" is "<none>":
- set {_dura} to {{@table_prefix}.%{_name}%.Durabilite}
- replace "&fDurability: " and "/%{{@table_prefix}.%{_name}%.Durabilite}%" in {_dura} with ""
- set {_dura} to {_dura} parsed as an integer
- set metadata value "Damage" of player to {{@table_prefix}.%{_name}%.Degats}
- set {_speed} to {{@table_prefix}.%{_name}%.VitesseB}
- remove 1 from {_dura}
- set line 7 of lore of player's tool to "&fDurability: %{_dura}%/%{{@table_prefix}.%{_name}%.Durabilite}%"
- if line 2 of lore of player's tool don't contain "Mitrailleuse":
- loop all players in radius 20 around the player:
- play raw sound "%{{@table_prefix}.%{_name}%.SonTir}%" to loop-player at location of player
- set the name of player's tool to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l%{_chargeur}%&2&l >>"
- if line 2 of lore of player's tool contains "Uzi" or "Mitrailleuse" or "Lance flamme":
- loop {{@table_prefix}.%{_name}%.NombreB} times:
- if "%{{@table_prefix}.%{_name}%.Balle}%" is "snowball":
- shoot snowball at speed {_speed}
- if "%{{@table_prefix}.%{_name}%.Balle}%" is "arrow":
- shoot arrow at speed {_speed}
- if "%{{@table_prefix}.%{_name}%.Balle}%" is "bottle of enchanting":
- shoot bottle of enchanting at speed {_speed}
- if "%{{@table_prefix}.%{_name}%.Balle}%" is "fireball":
- shoot fireball at speed {_speed}
- message "%{{@table_prefix}.%{_name}%.Balle}%"
- wait 1 tick
- if line 2 of lore of player's tool contains "Mitrailleuse":
- loop all players:
- play raw sound "%{{@table_prefix}.%{_name}%.SonTir}%" to loop-player at location of player
- else:
- loop {{@table_prefix}.%{_name}%.NombreB} times:
- if "%{{@table_prefix}.%{_name}%.Balle}%" is "snowball":
- shoot snowball at speed {_speed}
- if "%{{@table_prefix}.%{_name}%.Balle}%" is "arrow":
- shoot arrow at speed {_speed}
- if "%{{@table_prefix}.%{_name}%.Balle}%" is "bottle of enchanting":
- shoot bottle of enchanting at speed {_speed}
- if "%{{@table_prefix}.%{_name}%.Balle}%" is "fireball":
- make the player shoot an fireball at speed {_speed}
- add 2 to {_speed}
- if {_dura} isn't greater than 0:
- delete player's tool
- stop
- stop
- on rightclick:
- if line 2 of lore of slot 40 of player contains "Catégorie":
- if clicked block is chest or trapped chest or ender chest:
- stop
- cancel event
- set {_name} to "%slot 40 of player%"
- if {db1.arme.%player%.rechargement} is true:
- stop
- name of slot 40 of player contains "Rech.":
- set the name of slot 40 of player to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l0&2&l >>"
- set {_wait} to difference between {db1.arme.%player%.lastused} and now
- if {_wait} is less than {{@table_prefix}.%{_name}%.Cadence}:
- stop
- set {_string} to name of slot 40 of player
- replace "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l" in {_string} with ""
- replace "&2&l >>" in {_string} with ""
- set {_chargeur} to {_string} parsed as integer
- set {db1.arme.%player%.lastused} to now
- if {_chargeur} is 0:
- set {_munition} to the amount of {{@table_prefix}.%{_name}%.Munition} in the player's inventory
- message "%{_munition}%"
- if {_munition} is 0:
- stop
- if {_munition} is greater than {{@table_prefix}.%{_name}%.MunMax}-1:
- message "%{{@table_prefix}.%{_name}%.MunMax}-1%"
- set {db1.arme.%player%.rechargement} to true
- set action bar of player to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l0 Rech.&2&l >>"
- set the name of slot 40 of player to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l0 Rech.&2&l >>"
- loop all players in radius 20 around the player:
- play raw sound "%{{@table_prefix}.%{_name}%.SonCh}%" to loop-player at location of player
- wait {{@table_prefix}.%{_name}%.Tchargement}
- remove {{@table_prefix}.%{_name}%.MunMax} of {{@table_prefix}.%{_name}%.Munition} named "%{{@table_prefix}.%{_name}%.NomMunition}%" from player
- loop all items in the player's inventory:
- if name of loop-item contains "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l0 Rech.&2&l >>":
- set the name of loop-item to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l%{{@table_prefix}.%{_name}%.MunMax}%&2&l >>"
- set {db1.arme.%player%.rechargement} to false
- set action bar of player to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l%{{@table_prefix}.%{_name}%.MunMax}%&2&l >>"
- stop
- if {_munition} is less than {{@table_prefix}.%{_name}%.MunMax}:
- set {db1.arme.%player%.rechargement} to true
- set action bar of player to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l0 Rech.&2&l >>"
- set the name of slot 40 of player to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l0 Rech.&2&l >>"
- wait {{@table_prefix}.%{_name}%.Tchargement}
- loop all players in radius 20 around the player:
- play raw sound "%{{@table_prefix}.%{_name}%.SonCh}%" to loop-player at location of player
- set {_chargeur} to {_munition}
- remove all {{@table_prefix}.%{_name}%.Munition} named "%{{@table_prefix}.%{_name}%.NomMunition}%" from the player
- loop all items in the player's inventory:
- if name of loop-item contains "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l0 Rech.&2&l >>":
- set the name of loop-item to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l%{_chargeur}%&2&l >>"
- set {db1.arme.%player%.rechargement} to false
- set action bar of player to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l%{{@table_prefix}.%{_name}%.MunMax}%&2&l >>"
- stop
- if {_chargeur} is greater than 0:
- remove 1 from {_chargeur}
- set {_dura} to line 7 of lore of slot 40 of player
- if "%{_dura}%" is "<none>":
- set {_dura} to {{@table_prefix}.%{_name}%.Durabilite}
- replace "&fDurability: " and "/%{{@table_prefix}.%{_name}%.Durabilite}%" in {_dura} with ""
- set {_dura} to {_dura} parsed as an integer
- set metadata value "Damage" of player to {{@table_prefix}.%{_name}%.Degats}
- set {_speed} to {{@table_prefix}.%{_name}%.VitesseB}
- remove 1 from {_dura}
- set line 7 of lore of slot 40 of player to "&fDurability: %{_dura}%/%{{@table_prefix}.%{_name}%.Durabilite}%"
- if line 2 of lore of slot 40 of player don't contain "Mitrailleuse":
- loop all players in radius 20 around the player:
- play raw sound "%{{@table_prefix}.%{_name}%.SonTir}%" to loop-player at location of player
- set the name of slot 40 of player to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l%{_chargeur}%&2&l >>"
- set action bar of player to "%{{@table_prefix}.%{_name}%.Nom}%&2&l<< &c&l%{_chargeur}%&2&l >>"
- if line 2 of lore of slot 40 of player contains "Uzi" or "Mitrailleuse" or "Lance flamme":
- loop {{@table_prefix}.%{_name}%.NombreB} times:
- if "%{{@table_prefix}.%{_name}%.Balle}%" is "snowball":
- shoot snowball at speed {_speed}
- if "%{{@table_prefix}.%{_name}%.Balle}%" is "arrow":
- shoot arrow at speed {_speed}
- if "%{{@table_prefix}.%{_name}%.Balle}%" is "bottle of enchanting":
- shoot bottle of enchanting at speed {_speed}
- if "%{{@table_prefix}.%{_name}%.Balle}%" is "fireball":
- shoot fireball at speed {_speed}
- message "%{{@table_prefix}.%{_name}%.Balle}%"
- wait 1 tick
- if line 2 of lore of slot 40 of player contains "Mitrailleuse":
- loop all players:
- play raw sound "%{{@table_prefix}.%{_name}%.SonTir}%" to loop-player at location of player
- else:
- loop {{@table_prefix}.%{_name}%.NombreB} times:
- if "%{{@table_prefix}.%{_name}%.Balle}%" is "snowball":
- shoot snowball at speed {_speed}
- if "%{{@table_prefix}.%{_name}%.Balle}%" is "arrow":
- shoot arrow at speed {_speed}
- if "%{{@table_prefix}.%{_name}%.Balle}%" is "bottle of enchanting":
- shoot bottle of enchanting at speed {_speed}
- if "%{{@table_prefix}.%{_name}%.Balle}%" is "fireball":
- make the player shoot an fireball at speed {_speed}
- add 2 to {_speed}
- if {_dura} isn't greater than 0:
- delete slot 40 of player
- stop
- stop
- command /bou:
- trigger:
- give stone sword with nbt "{AttributeModifiers:[{AttributeName:generic.attackDamage,Name:generic.attackDamage,Amount:50,Operation:0,UUIDMost:95487,UUIDLeast:970285}]}" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement