Skip to content

Sandwichable Config

Mr. Spring edited this page Sep 25, 2015 · 7 revisions

Example file: http://mrspring.dk/mods/kitchen/config/Sandwichable.json
The config file is located at: ".minecraft\config\TheKitchenMod\Sandwichable.json"

Using the Sandwichable config file, any item in the game can be used in a Sandwich. This config will always be controlled by the server.
Let's break it down, shall we.

sandwichable_items

The sandwichable_items is a list... Nothing much to it...

Entrys are seperated with ','

Each entry in the list is started with a '{' and closed with a '}' and seperated by a ','. The last entry in the list should however not have a ',' after it, since there is not another entry after it.
An entry looks like this:

{ 
  "item_name": "kitchen:bread_slice",
  "heal_amount": 0,
  "is_bread": true,
  "hide_information": false,
  "drop_item": true
},

item_name

The item_name is the name of the item. The /give command can come in handy here. By pressing tab when entering the item, the game will cycle through all the items in the game, including mod items.
The item name allways have to have a ':', seperating the mods ID and the actual name of the item. For example: diamond has the name: minecraft:diamond, and a Slice of Bread from The Kitchen Mod has: kitchen:bread_slice.

heal_amount

heal_amount is an integer (No decimals are allowed in an integer) representing the amount the item will replenish the player's hunger. This should usually only be around 1-2, as higher numbers may be over-powered since there can be endless items in a sandwich.

is_bread

is_bread is a boolean (Value can only be true or false) telling the mod if this item can be used at the top or the bottom of the Sandwich. The Slice of Bread and Toast both have this value set to true, and can therefore be used on the top and bottom of sandwiches.

hide_information

When the player hovers over Sandwichable items in their inventory, they'll see the "Sandwichable" text below the item's name. If hide_information is set to true this will not happen. The text will be hidden. This is useful for secret items, or placeholder items.

drop_item

If drop_item is set to false, the item will not be given to the player when taken off the [Cutting Board](Cutting Board). Some items, however, like Butter have this variable overwritten in the code. This is used for the Jam items, so that you can't spread out the jam and take it back off.

[Knife Recipes](Knife Recipes)

Blocks:

  • [Cutting Board](Cutting Board)
  • Oven

Items:

Configs:

  • [Knife Config](Knife Config)
  • [Sandwichable Config](Sandwichable Config)
  • [Oven Config](Oven Config)

Clone this wiki locally