I was trying to make a custom interface for a crafting station for a mod and I wanted to lower the rarity and price of the item, that appears on the right side below the description of a selected item. Any idea of how I can make that?
The rarity and price are not part of the interface. Those are set in the items config file itself. Without more info, that is the best I can tell you.
do you mean lower the position of it? *Edit* I think this is the part your are looking for "moneyIcon" : { "type" : "image", "position" : [122, 1], "file" : "/interface/money.png" }, "priceLabel" : { "type" : "label", "position" : [134, 1], "hAnchor" : "left", "value" : "0" I don't see the rarity mentioned other than "rarities" : { "type" : "radioGroup", "toggleMode" : true, "buttons" : [ ] } But not sure that is what you want
as in from legendary to common for an example on rarity, and for money from 10000 pixels to 500 pixels
Yeah, those are in the items file. Here is an example. "itemName" : "aviancommonershirt", "price" : 75, "inventoryIcon" : "icons.png:chest", "maxStack" : 1, "rarity" : "Common", "category" : "chestwear", "description" : "A simple sleeveless top, sometimes used in traditional ceremonies.", "shortdescription" : "Hide Shirt", "tooltipKind" : "armor", price and rarity is what you want to change. If changing the price and rarity is all you want to do, then you don't need a custom interface. If you want to make cheaper "versions" of existing items, just copy the items folder over, change the "itemName". Like above, name it "itemName" : "aviancommonershirt2", or something. Then, find the recipe for it and change the group to match your interface. { "input" : [ { "item" : "fabric", "count" : 20 }, { "item" : "cottonwool", "count" : 2 } ], "duration" : 5, "output" : { "item" : "aviancommonershirt", "count" : 1 }, "groups" : [ "craftingwheel", "clothes" ] } the groups "craftingwheel" and "clothes" lets it show up on the crafting wheel's interface, under the clothing tab. If you need any help with custom crafting object, head over here... http://community.playstarbound.com/threads/making-a-simple-crafting-station.132855/
you can also put parameters in the crafting, those can change price and rarity (i spawned in an item with a new price, but only heard of parameters in crafting from @bk3k) the downside is they won't stack with normal items
sorry for taking so long. what I meant was to lower the position of it. I edited a print screen to exemplify what I want to do. also I already tried to change the values on "moneyIcon" : { "type" : "image", "position" : [122, 1], "file" : "/interface/money.png" }, "priceLabel" : { "type" : "label", "position" : [134, 1], "hAnchor" : "left", "value" : "0" and "rarities" : { "type" : "radioGroup", "toggleMode" : true, "buttons" : [ ] } but nothing really changed at all
You need to find these sections in your tooltip config: Code: "rarityLabel" : { "type" : "label", "position" : [7, 23], "hAnchor" : "left", "centered" : true, "wrapWidth" : 126 }, "moneyIcon" : { "type" : "image", "position" : [97, 23], "file" : "/interface/money.png" }, "priceLabel" : { "type" : "label", "position" : [110, 23], "hAnchor" : "left", "value" : "0" }, And simply adjust the position. (X and Y values based in pixels) If the changes don't reflect in game, then trash the item, reload the game, and spawn in a new one.