SHARE
TWEET

salt tooltip script

katubug Dec 14th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import crafttweaker.item.IItemStack;
  2.  
  3. //Adds all salted foods to OreDict to allow for easy FoodFunk alteration
  4. var salted = [
  5.     <saltmod:salt_beef_cooked>,
  6.     <saltmod:salt_porkchop_cooked>,
  7.     <saltmod:salt_mutton_cooked>,
  8.     <saltmod:salt_potato_baked>,
  9.     <saltmod:salt_chicken_cooked>,
  10.     <saltmod:salt_rabbit_cooked>,
  11.     <saltmod:salt_fish_cod>,
  12.     <saltmod:salt_fish_cod_cooked>,
  13.     <saltmod:salt_fish_salmon>,
  14.     <saltmod:salt_fish_salmon_cooked>,
  15.     <saltmod:salt_fish_clownfish>,
  16.     <saltmod:salt_beetroot>,
  17.     <saltmod:salt_bread>,
  18.     <saltmod:salt_egg>,
  19.     <saltmod:salt_rabbit_stew>,
  20.     <saltmod:salt_mushroom_stew>,
  21.     <saltmod:salt_beetroot_soup>,
  22.     <saltmod:salt_vegetable_stew>,
  23.     <saltmod:salt_potato_mushroom>,
  24.     <saltmod:salt_fish_soup>,
  25.     <saltmod:salt_fish_salmon_soup>,
  26.     <saltmod:salt_beetroot_salad>,
  27.     <saltmod:salt_hufc>,
  28.     <saltmod:salt_dandelion_salad>,
  29.     <saltmod:salt_wheat_sprouts>,
  30.     <xlfoodmod:salty_chips>
  31. ] as IItemStack[];
  32.  
  33. for item in salted {
  34.     <ore:saltedFood>.add(item);
  35.     item.addTooltip(format.gold("Salted foods are preserved for longer."));
  36. }
  37.  
  38. <saltmod:salt_pinch>.addTooltip(format.gold("Adding salt to foods can protect against spoilage."));
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