# Block formatting help

**URL:** https://forum.makecode.com/t/block-formatting-help/6065
**Category:** Help
**Created:** [February 9, 2021, 6:02pm UTC](https://forum.makecode.com/t/block-formatting-help/6065 "2021-02-09T18:02:31Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [February 9, 2021, 6:02pm UTC](https://forum.makecode.com/t/block-formatting-help/6065/1 "2021-02-09T18:02:31Z")

</div>

I am making an extension, and there are four blocks: (so far)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/cca99e229702ec31801d982f386e6fc926860434.png)  
As you can see, the first two might be a tad bit tall, so is it possible for it to do something like this:

```auto
check for achievement get named "achievement" with condition <false>
with title "Title" and description "Description!" and icon [icon]

```

So the block isn’t as tall?

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [February 9, 2021, 6:24pm UTC](https://forum.makecode.com/t/block-formatting-help/6065/2 "2021-02-09T18:24:49Z")

</div>

Well adding expandable arguments helped: (a bit)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/08cf2f316d75c89456ffe96d39c3b0accce17750.png)  
But they still get really tall:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/d62ccc61ba8a44a22494920804f727c06feb6e5e.png)

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [February 9, 2021, 6:35pm UTC](https://forum.makecode.com/t/block-formatting-help/6065/3 "2021-02-09T18:35:29Z")

</div>

We don’t currently support specifying arbitrary line breaks, though it’s something I’ve thought about / would like to add or see added eventually (my understanding is that the spacing logic has been cleaned up quite a bit in recent versions of blockly which should make it easier to implement).

The one option we do have is to specify that it should all be displayed as one line with `//% inlineInputMode=inline` (or vice versa, forcing to display with multi line with `//% inlineInputMode=external`).

In this case, for now, I would suggest reviewing the blocks and trying to pare them down a bit; it looks like you’re trying to implement an achievement system sort of thing, and by the looks of it you’re using multiple things as keys for those achievements - e.g. the boolean check is taking in a bunch of parameters to compare against achievements.

Usually, you would likely want to keep it to only a single ‘primary’ key – e.g. the achievement name – for most of the blocks, and have one (or multiple) blocks where you use that name to specify the other properties. That way you would be able to have the the boolean block be something like `check {name} is achieved {true/false}`, and not have to keep on describing the title / icon / etc every time you try to access it.

---

<div class="post-metadata">

### Author: ![xavvvvvv](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/xavvvvvv/32/15324_2.png) [@xavvvvvv](https://forum.makecode.com/u/xavvvvvv)
#### Post date: [February 9, 2021, 7:02pm UTC](https://forum.makecode.com/t/block-formatting-help/6065/4 "2021-02-09T19:02:09Z")

</div>

Wow what is that for?

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [February 9, 2021, 9:56pm UTC](https://forum.makecode.com/t/block-formatting-help/6065/5 "2021-02-09T21:56:41Z")

</div>

Thanks for the advice - yes I’m trying to wrap displaying that you got an achievement, remembering it, and resetting it.

I was trying to aim for something like this:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/f/f8cdfa8074919606b0d144fd54273faeffd93588.png)

> **[Achievements](https://arcade.makecode.com/61729-84436-38947-02910)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

If you remove the reset achievement block, then it will only show the achievement once.

---

<div class="post-metadata">

### Author: ![omnisImperium](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/omnisimperium/32/2728_2.png) [@omnisImperium](https://forum.makecode.com/u/omnisImperium)
#### Post date: [February 9, 2021, 11:36pm UTC](https://forum.makecode.com/t/block-formatting-help/6065/6 "2021-02-09T23:36:23Z")

</div>

This extension is so cool! will you ever/when will you post it on the forum? Suggestion, you don’t have to do it, but maybe add an option to include a custom tone or something to further signify the achievement.

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [February 9, 2021, 11:54pm UTC](https://forum.makecode.com/t/block-formatting-help/6065/7 "2021-02-09T23:54:43Z")

</div>

Yes, I want to add some music to it before I post it. 🙂
