Voserv Posté(e) le 21 juin 2015 Posté(e) le 21 juin 2015 Recycleur par Voserv Mon cerveau étant en ébullition, c'est mon 3ème Skript que je vous propose ensuite (3 skripts en une soirée woaw). Je vais tout vous expliquer (fonctionnement ect...) REQUIS: -SkQuery -SkRayFall I/Installer le recycleur: Pour installer le recycleur, rien de plus simple: poser un entoinnoir et juste en dessous un bloc de fer. Ainsi en cliquant droit sur l'entonnoir, vous pourrez faire fonctionner le recycleur II/Fonctionnement: Rien de plus simple, le recycleur peux recycler les armures en or, fer et diamant et les outils/armes en or, fer et aussi diamant. Pour le faire fonctionner, cliquez droit dessus, par exemple avec une épée en fer, et cela vous donnera deux lingots de fer. Télécharger le Skript: Copiez/collez le skript ci-dessous et mettez-le dans vos FTP [spoiler=Skript] on right click on a hopper: if block below the clicked block is iron block: cancel event if player is holding a iron pickaxe: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 iron pickaxe from the player give 3 iron ingot to the player if player is holding a iron sword: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 iron sword from the player give 2 iron ingot to the player if player is holding a iron shovel: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 iron shovel from the player give 1 iron ingot to the player if player is holding a iron axe: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 iron axe from the player give 3 iron ingot to the player if player is holding a gold axe: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 gold axe from the player give 3 gold ingot to the player if player is holding a gold sword: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 gold sword from the player give 2 gold ingot to the player if player is holding a gold shovel: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 gold shovel from the player give 1 gold ingot to the player if player is holding a gold hoe: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 gold hoe from the player give 2 gold ingot to the player if player is holding a gold pickaxe: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 gold pickaxe from the player give 3 gold ingot to the player if player is holding a iron hoe: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 iron hoe from the player give 2 iron ingot to the player if player is holding a diamond hoe: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 diamond hoe from the player give 2 diamond to the player if player is holding a diamond axe: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 diamond axe from the player give 3 diamond to the player if player is holding a diamond shovel: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 diamond shovel from the player give 1 diamond to the player if player is holding a diamond sword: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 diamond sword from the player give 2 diamond to the player if player is holding a diamond pickaxe: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 diamond pickaxe from the player give 3 diamond to the player if player is holding a iron helmet: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 iron helmet from the player give 5 iron ingot to the player if player is holding a iron chestplate: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 iron chestplate from the player give 8 iron ingot to the player if player is holding a iron leggings: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 iron leggings from the player give 7 iron ingot to the player if player is holding a iron boots: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 iron boots from the player give 4 iron ingot to the player if player is holding a diamond helmet: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 diamond helmet from the player give 5 diamond to the player if player is holding a diamond chestplate: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 diamond chestplate from the player give 8 diamond to the player if player is holding a diamond leggings: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 diamond leggings from the player give 7 diamond to the player if player is holding a diamond boots: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 diamond boots from the player give 4 diamond to the player if player is holding a gold helmet: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 gold helmet from the player give 5 gold ingot to the player if player is holding a gold chestplate: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 gold chestplate from the player give 8 gold ingot to the player if player is holding a gold leggings: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 gold leggings from the player give 7 gold ingot to the player if player is holding a gold boots: play raw sound "random.anvil_break" at player with pitch 1 volume 10 show 20 "smoke_large" particles at location of clicked block for player offset by 1, 1, 1 remove 1 gold boots from the player give 4 gold ingot to the player 1
angelus76 Posté(e) le 21 juin 2015 Posté(e) le 21 juin 2015 intéressent merci. ont peut faire la même chose avec un four ? enfin je sais qu'ont peut le faire avec un four ^^, moi je suis bloqué sur le fait qu'il prenne en compte que l'objet et usé, car si l'objet et usé il fait pas fondre l'item :( tu aurais une solution avec les fours et les items usé ?
Voserv Posté(e) le 21 juin 2015 Auteur Posté(e) le 21 juin 2015 Normalement, les items usés fonctionnent aussi, j'ai testé. Si tu veux remplacemer l'entonnoir par un four, il suffit juste de remplacer "on right click on a hopper:" par "on right click on a furnace:"
angelus76 Posté(e) le 21 juin 2015 Posté(e) le 21 juin 2015 quand je dit avec un four, c'est de faire fonctionner le four normalement " consommation de charbon, animation du four ... " pour être plus clair, faire cuire une armure dans un four, comme ont y fait cuire du fer.
Voserv Posté(e) le 21 juin 2015 Auteur Posté(e) le 21 juin 2015 Ah, c'est possible, mais tu devra utiliser RandomSk et le Register Furnace Recipe (Va voir sur SkUnity pour plus d'infos)
angelus76 Posté(e) le 21 juin 2015 Posté(e) le 21 juin 2015 le problème ce situe sur l'usure de l'objet, quand l'objet est usé, le four ne lance pas la combustion :( je doit trouver le moyen de rendre l'item a neuf quand il est dans le four, et de le remettre a sont usure si le joueur interrompt la fonte. pas simple ^^
Voserv Posté(e) le 21 juin 2015 Auteur Posté(e) le 21 juin 2015 Ah, je ne sais pas comment faire ça par contre, je suis désolé.
Bloubiboulga Posté(e) le 11 octobre 2015 Posté(e) le 11 octobre 2015 tiens ?... j'ai commencer un Skript avec une idée du même style ! mais j'ai lâcher l'affaire je n'suis pas encore à ce niveau de codage :(:oops: le but était: 1- déposer un ithème enchante dans le premier slot d'un établi prévu à cet effet, 2- les enchantes apparaissent dans les deux lignes du bas de l'établi, 3a- on click sur l'enchante qui nous intéresse pour en récupérer un des enchantes de l'ithème avec un taux de pourcentage de réussite 3b- on serait débiter de tant de $ ou de diams ou d'émerauds dès que l'on clickerait sur l'enchante voulu :D 4- si réussit, l’enchante irait dans le slot de droite et le reste disparait, on récupère l'enchante en clickant dessus, l'établi se referme 5- si raté, tout disparait, l'établi se referme, et on recevrait un message de consolation pour avoir été débiter :(
Messages recommandés