SHARE
TWEET

Untitled

a guest May 24th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.     black: &6&lJens &r>>
  3.  
  4. variables:
  5.     {brødrecp.vagtkill.%player%} = 0
  6.     {brødrecp.inprog.%player%} = 0
  7.     {cokerecepie.inprog.%player%} = 0
  8.     {cokerecepie.vagtkill.%player%} = 0
  9.     {buyseedlimit} = 0
  10.     {jointrecepie.inprog.%player%} = 0
  11.     {jointrecepie.vagtkill.%player%} = 0
  12.  
  13.  
  14.  
  15. on craft bread:
  16.     if player's inventory contains  paper named "&6&lBrød Recepie":
  17.         message "&6&lCRAFTING &r>> Du har med success craftet brød!"
  18.     else:
  19.         cancel event
  20.         close player's inventory
  21.         message "&6&lCRAFTING &r>> Du har ikke en recepie til at crafte brød!"
  22.    
  23. on craft:
  24.     if player's inventory contains paper named "&6&lCoke Recepie":
  25.         register new shapeless recipe for sugar named "&6&lCoke" using sugar, sugar, sugar, air, air, air, air, air, air
  26.     else:
  27.         cancel event
  28.  
  29. on craft:
  30.     if player's inventory contains paper named "&6&lJoint Recepie":
  31.         register new shapeless recipe for 369 named "&6&lJoint" using paper, sugar, paper, air, air, air, air, air, air
  32.     else:
  33.         cancel event
  34.  
  35.  
  36.  
  37.  
  38.  
  39. on right click on entity:
  40.     if name of entity is "&6&lJens":
  41.         wait 10 ticks
  42.         open chest with 3 rows named "Hvad kan jeg hjælpe dig med?" to player
  43.         wait 1 tick
  44.         format slot 10 of player with green stained glass named "&a&lKøb" to close then run [execute player command "/jens buy"]
  45.         format slot 13 of player with paper named "&6&lRecepies" to close then run [execute player command "/jens recepie"]
  46.         format slot 16 of player with red stained glass named "&4&lSælg" to close then run [execute player command "/jens sell"]
  47.  
  48. command /jens [<text>] [<text>]:
  49.     trigger:
  50.         if arg-1 is "buy":
  51.             wait 3 ticks
  52.             open chest with 1 rows named "Hvad ville du købe fra mig?" to player
  53.             format slot 0 of player with seeds named "&6&lFrø" to run  [execute player command "/jensbuy seed"]
  54.             format slot 1 of player with water bucket named "&6&lVand" to run  [execute player command "/jensbuy water"]
  55.             format slot 2 of player with stone hoe named "&6&lLe" to run  [execute player command "/jensbuy hoe"]
  56.             format slot 3 of player with dirt named "&6&lJord" to run  [execute player command "/jensbuy dirt"]
  57.  
  58.         if arg-1 is "recepie":
  59.             wait 3 ticks
  60.             open chest with 3 rows named "Hvad kan jeg hjælpe dig med?" to player
  61.             format slot 10 of player with paper named "&6&lBrød Recepie" to close then run [execute player command "/brødrecepie"]   
  62.             format slot 13 of player with paper named "&6&lCoke Recepie" to close then run [execute player command "/cokerecepie"]
  63.             format slot 16 of player with paper named "&6&lJoint Recepie" to close then run [execute player command "/jointrecepie"]       
  64.  
  65.         if arg-1 is "sell":
  66.             wait 3 ticks
  67.             open chest with 1 rows named "Hvad ville du sælge til mig?" to player
  68.             format slot 0 of player with bread named "&6&lBrød" to run  [execute player command "/jenssell bread"]
  69.             format slot 1 of player with sugar named "&6&lCoke" to run  [execute player command "/jenssell coke"]
  70.             format slot 2 of player with 369 named "&6&lJoint" to run  [execute player command "/jenssell joint"]
  71.             format slot 3 of player with seeds named "&6&lFrø" to run  [execute player command "/jenssell seed"]
  72.  
  73.  
  74. every 1 hour:
  75.     set {buyseedlimit} to 0
  76.  
  77. command /cokesell [<text>]:
  78.     trigger:
  79.         if arg-1 is "1":
  80.             wait 1 tick
  81.             if player have 1 sugar named "&6&lCoke" in inventory:
  82.                 remove 1 sugar named "&6&lCoke"  from player's inventory
  83.                 add 30 to player's balance
  84.             else:
  85.                 message "&6&lJens &r>> Du har ikke noget coke på dig!" to player
  86.         if arg-1 is "10":
  87.             wait 1 tick
  88.             if player have 10 sugar named "&6&lCoke" in inventory:
  89.                 remove 10 sugar named "&6&lCoke"  from player's inventory
  90.                 add 300 to player's balance
  91.             else:
  92.                 message "&6&lJens &r>> Du har ikke noget coke på dig!" to player
  93.         if arg-1 is "20":
  94.             wait 1 tick
  95.             if player have 20 sugar named "&6&lCoke"  in inventory:
  96.                 remove 20 sugar named "&6&lCoke"  from player's inventory
  97.                 add 600 to player's balance
  98.             else:
  99.                 message "&6&lJens &r>> Du har ikke noget coke på dig!" to player
  100.         if arg-1 is "32":
  101.             wait 1 tick
  102.             if player have 32 sugar named "&6&lCoke"  in inventory:
  103.                 remove 32 sugar named "&6&lCoke"  from player's inventory
  104.                 add 960 to player's balance
  105.             else:
  106.                 message "&6&lJens &r>> Du har ikke noget coke på dig!" to player
  107.         if arg-1 is "64":
  108.             wait 1 tick
  109.             if player have 64 sugar named "&6&lCoke"  in inventory:
  110.                 remove 64 sugar named "&6&lCoke" from player's inventory
  111.                 add 1920 to player's balance
  112.             else:
  113.                 message "&6&lJens &r>> Du har ikke noget coke på dig!" to player
  114.  
  115.  
  116. command /breadsell [<text>]:
  117.     trigger:
  118.         if arg-1 is "1":
  119.             wait 1 tick
  120.             if player have 1 bread in inventory:
  121.                 remove 1 bread from player's inventory
  122.                 add 25 to player's balance
  123.             else:
  124.                 message "&6&lJens &r>> Du har ikke noget brød på dig!" to player
  125.         if arg-1 is "10":
  126.             wait 1 tick
  127.             if player have 10 bread in inventory:
  128.                 remove 10 bread from player's inventory
  129.                 add 250 to player's balance
  130.             else:
  131.                 message "&6&lJens &r>> Du har ikke noget brød på dig!" to player
  132.         if arg-1 is "20":
  133.             wait 1 tick
  134.             if player have 20 bread in inventory:
  135.                 remove 20 bread from player's inventory
  136.                 add 500 to player's balance
  137.             else:
  138.                 message "&6&lJens &r>> Du har ikke noget brød på dig!" to player
  139.         if arg-1 is "32":
  140.             wait 1 tick
  141.             if player have 32 bread in inventory:
  142.                 remove 32 bread from player's inventory
  143.                 add 800 to player's balance
  144.             else:
  145.                 message "&6&lJens &r>> Du har ikke noget brød på dig!" to player
  146.         if arg-1 is "64":
  147.             wait 1 tick
  148.             if player have 64 bread in inventory:
  149.                 remove 64 bread from player's inventory
  150.                 add 1600 to player's balance
  151.             else:
  152.                 message "&6&lJens &r>> Du har ikke noget brød på dig!" to player
  153. command /jointsell [<text>]:
  154.     trigger:
  155.         if arg-1 is "1":
  156.             wait 1 tick
  157.             if player have 1 369 in inventory:
  158.                 remove 1 369 from player's inventory
  159.                 add 35 to player's balance
  160.             else:
  161.                 message "&6&lJens &r>> Du har ikke nogen joint på dig!" to player
  162.         if arg-1 is "10":
  163.             wait 1 tick
  164.             if player have 10 369 in inventory:
  165.                 remove 10 369 from player's inventory
  166.                 add 350 to player's balance
  167.             else:
  168.                 message "&6&lJens &r>> Du har ikke nogen joint  på dig!" to player
  169.         if arg-1 is "20":
  170.             wait 1 tick
  171.             if player have 20 369 in inventory:
  172.                 remove 20 369 from player's inventory
  173.                 add 700 to player's balance
  174.             else:
  175.                 message "&6&lJens &r>> Du har ikke nogen joint  på dig!" to player
  176.         if arg-1 is "32":
  177.             wait 1 tick
  178.             if player have 32 369 in inventory:
  179.                 remove 32 369 from player's inventory
  180.                 add 1120 to player's balance
  181.             else:
  182.                 message "&6&lJens &r>> Du har ikke nogen joint  på dig!" to player
  183.         if arg-1 is "64":
  184.             wait 1 tick
  185.             if player have 64 369 in inventory:
  186.                 remove 64 369 from player's inventory
  187.                 add 2240 to player's balance
  188.             else:
  189.                 message "&6&lJens &r>> Du har ikke nogen joint på dig!" to player
  190.  
  191. command /seedssell [<text>]:
  192.     trigger:
  193.         if arg-1 is "1":
  194.             wait 1 tick
  195.             if player have 1 seeds in inventory:
  196.                 remove 1 seeds from player's inventory
  197.                 add 10 to player's balance
  198.             else:
  199.                 message "&6&lJens &r>> Du har ikke nogen frø på dig!" to player
  200.         if arg-1 is "10":
  201.             wait 1 tick
  202.             if player have 10 seeds in inventory:
  203.                 remove 10 seeds from player's inventory
  204.                 add 100 to player's balance
  205.             else:
  206.                 message "&6&lJens &r>> Du har ikke nogen frø  på dig!" to player
  207.         if arg-1 is "20":
  208.             wait 1 tick
  209.             if player have 20 seeds in inventory:
  210.                 remove 20 seeds from player's inventory
  211.                 add 200 to player's balance
  212.             else:
  213.                 message "&6&lJens &r>> Du har ikke nogen frø  på dig!" to player
  214.         if arg-1 is "32":
  215.             wait 1 tick
  216.             if player have 32 seeds in inventory:
  217.                 remove 32 seeds from player's inventory
  218.                 add 320 to player's balance
  219.             else:
  220.                 message "&6&lJens &r>> Du har ikke nogen frø  på dig!" to player
  221.         if arg-1 is "64":
  222.             wait 1 tick
  223.             if player have 64 seeds in inventory:
  224.                 remove 64 seeds from player's inventory
  225.                 add 640 to player's balance
  226.             else:
  227.                 message "&6&lJens &r>> Du har ikke nogen frø på dig!" to player
  228.  
  229.  
  230.  
  231.  
  232.  
  233. command /jenssell [<text>] [<text>]:
  234.     trigger:
  235.         if arg-1 is "bread":
  236.             wait 1 tick
  237.             open chest with 1 row named "&6&lMængde." to player
  238.             wait 1 tick
  239.             format slot 0 of player with bread named "&6&lSælg 1 brød" to run  [execute player command "/breadsell 1"]
  240.             format slot 1 of player with 10 bread named "&6&lSælg 10 brød" to run [execute player command "/breadsell 10"]
  241.             format slot 2 of player with 20 bread named "&6&lSælg 20 brød" to run [execute player command "/breadsell 20"]
  242.             format slot 3 of player with 32 bread named "&6&lSælg 32 brød" to run [execute player command "/breadsell 32"]
  243.             format slot 4 of player with 64 bread named "&6&lSælg 64 brød" to run [execute player command "/breadsell 64"]
  244.         if arg-1 is "coke":
  245.             wait 1 tick
  246.             open chest with 1 row named "&6&lMængde." to player
  247.             wait 1 tick
  248.             format slot 0 of player with sugar named "&6&lSælg 1 coke" to run  [execute player command "/cokesell 1"]
  249.             format slot 1 of player with 10 sugar named "&6&lSælg 10 coke" to run [execute player command "/cokesell 10"]
  250.             format slot 2 of player with 20 sugar named "&6&lSælg 20 coke" to run [execute player command "/cokesell 20"]
  251.             format slot 3 of player with 32 sugar named "&6&lSælg 32 coke" to run [execute player command "/cokesell 32"]
  252.             format slot 4 of player with 64 sugar named "&6&lSælg 64 coke" to run [execute player command "/cokesell 64"]
  253.         if arg-1 is "joint":
  254.             wait 1 tick
  255.             open chest with 1 row named "&6&lMængde." to player
  256.             wait 1 tick
  257.             format slot 0 of player with 369 named "&6&lSælg 1 joint" to run  [execute player command "/jointsell 1"]
  258.             format slot 1 of player with 10 369 named "&6&lSælg 10 joint" to run [execute player command "/jointsell 10"]
  259.             format slot 2 of player with 20 369 named "&6&lSælg 20 joint" to run [execute player command "/jointsell 20"]
  260.             format slot 3 of player with 32 369 named "&6&lSælg 32 joint" to run [execute player command "/jointsell 32"]
  261.             format slot 4 of player with 64 369 named "&6&lSælg 64 joint" to run [execute player command "/jointsell 64"]
  262.  
  263.         if arg-1 is "seed":
  264.             wait 1 tick
  265.             open chest with 1 row named "&6&lMængde." to player
  266.             wait 1 tick
  267.             format slot 0 of player with seeds named "&6&lSælg 1 frø" to run  [execute player command "/seedssell 1"]
  268.             format slot 1 of player with 10 seeds named "&6&lSælg 10 frø" to run [execute player command "/seedssell 10"]
  269.             format slot 2 of player with 20 seeds named "&6&lSælg 20 frø" to run [execute player command "/seedssell 20"]
  270.             format slot 3 of player with 32 seeds named "&6&lSælg 32 frø" to run [execute player command "/seedssell 32"]
  271.             format slot 4 of player with 64 seeds named "&6&lSælg 64 frø" to run [execute player command "/seedssell 64"]
  272.  
  273.  
  274. command /jensbuy [<text>]:
  275.     trigger:
  276.         if arg-1 is "seed":
  277.             wait 1 tick
  278.             if {buyseedlimit} is 50:
  279.                 send "&6&lJens &r>> Tror du seeds gror på mig? Vent til at jeg får dem på lager igen!" to player
  280.             else:
  281.                 wait 1 tick
  282.                 if player's balance is greater than 50:
  283.                     remove 50 from player's balance
  284.                     give player 1 seeds
  285.                     add 1 to {buyseedlimit}
  286.                     send "&6&lJens &r>> Du har købt &a1&r seed" to player
  287.                     add 1 to {totalbought.%player%}
  288.                    
  289.                 else:
  290.                     send "&6&lJens &r>> Du har ikke råd til at betale mig!"
  291.                     close player's inventory
  292.         if arg-1 is "water":
  293.             wait 1 tick
  294.             if player's balance is greater than 500:
  295.                 remove 500 from player's balance
  296.                 give player 1 water bucket
  297.                 send "&6&lJens &r>> Du har købt &a1&r vandspand" to player
  298.                 add 1 to {totalbought.%player%}
  299.                
  300.             else:
  301.                 send "&6&lJens &r>> Du har ikke råd til at betale mig!"
  302.                 close player's inventory
  303.         if arg-1 is "hoe":
  304.             wait 1 tick
  305.             if player's balance is greater than 750:
  306.                 remove 750 from player's balance
  307.                 give player 1 stone hoe
  308.                 send "&6&lJens &r>> Du har købt &a1&r Le" to player
  309.                 add 1 to {totalbought.%player%}
  310.                
  311.             else:
  312.                 send "&6&lJens &r>> Du har ikke råd til at betale mig!"
  313.                 close player's inventory
  314.         if arg-1 is "dirt":
  315.             wait 1 tick
  316.             if player's balance is greater than 100:
  317.                 remove 100 from player's balance
  318.                 give player 1 dirt
  319.                 send "&6&lJens &r>> Du har købt &a1&r Jord" to player
  320.                 add 1 to {totalbought.%player%}
  321.                
  322.             else:
  323.                 send "&6&lJens &r>> Du har ikke råd til at betale mig!"
  324.                 close player's inventory
  325.  
  326. command /brødrecepie:
  327.     trigger:
  328.         if {brødrecp.inprog.%player%} is 1:
  329.             if 0 < {brødrecp.vagtkill.%player%}:
  330.                 if player's inventory contains 50 seeds:
  331.                     execute player command "/brødcomplete"
  332.                 else:
  333.                     send "&6&lJens &r>> Du mangler skam stadig noget" to player
  334.             else:
  335.                 send "&6&lJens &r>> Du mangler skam stadig noget" to player
  336.         else:
  337.             execute player command "/brødtogo"
  338.             stop
  339.  
  340.  
  341. command /brødcomplete:
  342.     trigger:
  343.         if 0 < {brødrecp.vagtkill.%player%}:
  344.             if player's inventory contains 50 seeds:
  345.                 send "&6&lJens &r>> Flot klaret! Her er din recepie!" to player
  346.                 set {brødrecp.vagtkill.%player%} to 0
  347.                 set {brødrecp.inprog.%player%} to 0
  348.                 give player 1 paper named "&6&lBrød Recepie"
  349.                 remove 50 seeds from player's inventory
  350.                 stop
  351.  
  352. command /brødtogo:
  353.     trigger:
  354.         send "&6&lJens &r>> Så du ville gerne have en recepie så du kan crafte brød?" to player
  355.         send "&6&lJens &r>> Det kan vi da godt fixe for dig" to player
  356.         send "&6&lJens &r>> Men først skal du lige klarer disse ting for mig" to player
  357.         send "&6&lJens &r>> &7Dræb en vagt." to player
  358.         send "&6&lJens &r>> &7Giv mig 50 seeds" to player
  359.         set {brødrecp.vagtkill.%player%} to 0
  360.         set {brødrecp.inprog.%player%} to 1
  361.         stop
  362.  
  363. on death of player:
  364.     if victim has permission "vagt":
  365.         if {brødrecp.inprog.%player%} is 1:
  366.             add 1 to {brødrecp.vagtkill.%player%}
  367.             send "&6&lJens &r>> Super! Bring mig nu 50 seeds og du får din recepie" to player
  368.         if {cokerecepie.inprog.%player%} is 1:
  369.             add 1 to {brødrecp.vagtkill.%player%}
  370.         if {jointrecepie.inprog.%player%} is 1:
  371.             add 1 to {jointrecepie.vagtkill.%player%}
  372.  
  373.  
  374. command /addkill:
  375.     trigger:
  376.         add 1 to {brødrecp.vagtkill.%player%}
  377.  
  378. command /dwa:
  379.     trigger:
  380.         set {brødrecp.inprog.%player%} to 0
  381.  
  382.  
  383. command /cokerecepie:
  384.     trigger:
  385.         if {cokerecepie.inprog.%player%} is 1:
  386.             if 1 < {cokerecepie.vagtkill.%player%}:
  387.                 if player's inventory contains 50 bread:
  388.                     execute player command "/cokecomplete"
  389.                 else:
  390.                     send "&6&lJens &r>> Du mangler skam stadig noget" to player
  391.             else:
  392.                 send "&6&lJens &r>> Du mangler skam stadig noget" to player
  393.         else:
  394.             execute player command "/coketogo"
  395.             stop
  396.  
  397.  
  398. command /cokecomplete:
  399.     trigger:
  400.         if 1 < {cokerecepie.vagtkill.%player%}:
  401.             if player's inventory contains 50 bread:
  402.                 send "&6&lJens &r>> Flot klaret! Her er din recepie!" to player
  403.                 set {cokerecepie.vagtkill.%player%} to 0
  404.                 set {cokerecepie.inprog.%player%} to 0
  405.                 give player 1 paper named "&6&lCoke Recepie"
  406.                 remove 50 bread from player's inventory
  407.                 stop
  408.  
  409. command /coketogo:
  410.     trigger:
  411.         send "&6&lJens &r>> Så du ville gerne have en recepie så du kan crafte brød?" to player
  412.         send "&6&lJens &r>> Det kan vi da godt fixe for dig" to player
  413.         send "&6&lJens &r>> Men først skal du lige klarer disse ting for mig" to player
  414.         send "&6&lJens &r>> &7Dræb 2 vagter." to player
  415.         send "&6&lJens &r>> &7Giv mig 50 brød" to player
  416.         set {coke.vagtkill.%player%} to 0
  417.         set {cokerecepie.inprog.%player%} to 1
  418.         stop
  419.  
  420.  
  421.  
  422.  
  423. command /jointrecepie:
  424.     trigger:
  425.         if {joint.inprog.%player%} is 1:
  426.             if 1 < {joint.vagtkill.%player%}:
  427.                 if player's inventory contains 50 sugar named "&6&lCoke":
  428.                     execute player command "/jointcomplete"
  429.                 else:
  430.                     send "&6&lJens &r>> Du mangler skam stadig noget" to player
  431.             else:
  432.                 send "&6&lJens &r>> Du mangler skam stadig noget" to player
  433.         else:
  434.             execute player command "/jointtogo"
  435.             stop
  436.  
  437.  
  438. command /jointcomplete:
  439.     trigger:
  440.         if 1 < {jointrecepie.vagtkill.%player%}:
  441.             if player's inventory contains 50 bread:
  442.                 send "&6&lJens &r>> Flot klaret! Her er din recepie!" to player
  443.                 set {jointrecepie.vagtkill.%player%} to 0
  444.                 set {jointrecepie.inprog.%player%} to 0
  445.                 give player 1 paper named "&6&lJoint Recepie"
  446.                 remove 50 sugar named "&6&lCoke" from player's inventory
  447.                 stop
  448.  
  449. command /jointtogo:
  450.     trigger:
  451.         send "&6&lJens &r>> Så du ville gerne have en recepie så du kan crafte brød?" to player
  452.         send "&6&lJens &r>> Det kan vi da godt fixe for dig" to player
  453.         send "&6&lJens &r>> Men først skal du lige klarer disse ting for mig" to player
  454.         send "&6&lJens &r>> &7Dræb 3 vagter." to player
  455.         send "&6&lJens &r>> &7Giv mig 50 coke" to player
  456.         set {jointrecepie.vagtkill.%player%} to 0
  457.         set {jointrecepie.inprog.%player%} to 1
  458.         stop
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top