-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathblocks_1.12.html
384 lines (359 loc) · 19.9 KB
/
blocks_1.12.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
<!DOCTYPE html>
<html lang="no" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="https://joakimthorsen.github.io/MCPropertyEncyclopedia/assets/favicon/favicon-64x64.png" property="og:image" />
<meta content="#389027" name="theme-color" />
<meta name="description" content="A comprehensive repository of information about Minecraft blocks.">
<title>Minecraft 1.12 Block Property Encyclopedia</title>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha512-6MXa8B6uaO18Hid6blRMetEIoPqHf7Ux1tnyIQdpt9qI5OACx7C+O3IVTr98vwGnlcg0LOLa02i9Y1HpVhlfiw=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<!-- Font Awesome -->
<link href="./assets/fontawesome/css/fontawesome.css" rel="stylesheet" />
<link href="./assets/fontawesome/css/brands.css" rel="stylesheet" />
<link href="./assets/fontawesome/css/regular.css" rel="stylesheet" />
<link href="./assets/fontawesome/css/solid.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"
integrity="sha512-iztkobsvnjKfAtTNdHkGVjAYTrrtlC7mGp/54c40wowO7LhURYl3gVzzcEqGl/qKXQltJ2HwMrdLcNUdo+N/RQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-hover-dropdown/2.2.1/bootstrap-hover-dropdown.min.js"
integrity="sha512-bkRnY+Yd8OOKaLeSQ4ywl+eeJKIbJ5TtBvyWwM2OnsV1qeIZb2yi7E4h2P6XVcAMz3ldrTKAXk/lC5vvZnDkZw=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap" rel="stylesheet">
<!-- <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.11.5/cr-1.5.5/datatables.min.css"/> -->
<script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.11.5/cr-1.5.5/datatables.min.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-R2CW5GD7WW"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-R2CW5GD7WW');
</script>
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="76x76" href="assets/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon/favicon-16x16.png">
<link rel="manifest" href="assets/favicon/site.webmanifest">
<link rel="mask-icon" href="assets/favicon/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="assets/favicon/favicon.ico">
<!-- Main css/js -->
<script src="assets/js/darkmode.js" defer></script>
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
</head>
<body data-page="block" onload="load_data('data/block_data_1.12.json')">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button"
class="navbar-toggle collapsed"
data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1"
aria-expanded="false"
>
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a class="navbar-item" href="./">Blocks</a></li>
<li role="separator" class="vertical-divider hidden-xs"></li>
<li><a class="navbar-item" href="entities.html">Entities</a></li>
<li role="separator" class="vertical-divider hidden-xs"></li>
<li><a class="navbar-item" href="items.html">Items</a></li>
<li role="separator" class="vertical-divider hidden-xs"></li>
<li><a class="navbar-item" href="blocks_1.12.html" style="color: #ff4040; text-decoration: underline;">1.12 Blocks</a></li>
<li role="separator" class="vertical-divider hidden-xs"></li>
<li><a class="navbar-item" href="propertydle/">Propertydle</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li role="separator" class="horizontal-divider visible-xs"></li>
<li><a class="navbar-item" title="Toggle UI Theme" role="button" id="dark-mode-toggle" onclick="toggle_theme();display_headers_and_table()">
<img width="20" src="assets/img/moon_sprite.png" class="display-none" />
<img width="20" src="assets/img/sun_sprite.png" />
<span class="visible-xs-inline-block">Toggle light/dark mode</span>
<span class="visible-xs-inline-block display-none">Toggle light/dark mode</span>
</a></li>
<li role="separator" class="vertical-divider hidden-xs"></li> <li>
<a class="navbar-item" href="https://discord.gg/RUEVmTahYg" title="Discord server link">
<i class="fab fa-discord"></i> <span class="visible-xs-inline-block">Discord</span>
</a>
</li>
<li role="separator" class="vertical-divider hidden-xs"></li>
<li><a class="navbar-item" href="https://github.com/JoakimThorsen/MCPropertyEncyclopedia" title="GitHub Repository link">
<i class="fab fa-github"></i> <span class="visible-xs-inline-block">GitHub</span>
</a></li>
<li role="separator" class="vertical-divider hidden-xs"></li>
<li><a class="navbar-item" href="about.html">About</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div class="container-fluid text-center" id="main-body">
<div class="col-md-1 col-lg-3"></div>
<div class="col-md-10 col-lg-6">
<h1 class="text-center" style="font-size: 40px;">Minecraft 1.12 Block Property Encyclopedia</h1>
<div id="popups">
<div class="panel panel-default popup-panel collapse in display-none shameless-self-promo">
<div class="panel-heading">
<i class="fab fa-discord"></i> Heads Up! <i class="fab fa-discord"></i>
<a role="button" style="float:right; color:gray" onclick="$(this).parent().parent().collapse('hide'); stop_promo();">X</a>
</div>
<div class="panel-body">
This project now has a dedicated discord server! Head over to <a href="https://discord.gg/RUEVmTahYg">https://discord.gg/RUEVmTahYg</a> :)
</div>
</div>
</div>
<h2 style="font-size: 24px;">
<p>
This open-source project is maintained by our lovely <a href="about.html#contributors">contributors</a>.
More about this project, usage instructions and tips to help navigate the encyclopedia are listed on the <a href="about.html">about</a> page.<br>
Click the button below to customize your selection:
</p>
</h2>
<h2 style="font-size: 24px; color: #ff4040;">Very Work-in-progress, so a lot less polished than the main page.<br>
There might be errors and there will be jank. Join the discord if you're interested in updates.</h2>
</div>
<div class="col-md-1 col-lg-3"></div>
<div class="col-sm-12">
<div class="btn-group">
<button class="btn btn-default light-blue dropdown-toggle" type="button" data-toggle="dropdown" onclick="setTimeout(() => {$('#selection-search').get(0).focus()})">
Property Selection <span class="caret"></span>
</button>
<ul class="dropdown-menu" id="selection">
<div class="text-center">
<span class="btn-group dropdown-actions" role="group">
<button class="btn dropdown-btn btn-default deselect-all">
<i class="far fa-square"></i>
</button>
<button class="btn dropdown-btn btn-default select-all">
<i class="far fa-check-square"></i>
</button>
</span>
</div>
<div class="text-center">
<span class="btn-group dropdown-actions" role="group">
<input class="form-control search"
placeholder="Search for properties..."
id="selection-search"
type="search"
autocomplete="off"
/>
</span>
</div>
<!-- Selection options are inserted here using jQuery -->
</ul>
</div>
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="collapse-next" title="Open settings panel">
<i class="fas fa-tools"></i>
</button>
<div class="settings display-none">
<div class="settings-box">
<p>Reset:</p>
<button class="btn btn-default"
type="button"
onclick="selection_arr = null; display_selection(); display_headers_and_table(); update_window_history();"
title="Reset the chosen properties back to page default"
>
Property Selection
</button>
<button class="btn btn-default"
type="button"
onclick="filter_obj = {}; display_headers_and_table(); update_window_history();"
title="Disable all enabled filters"
>Filters
</button>
<button class="btn btn-default"
type="button"
onclick="sort_arr = []; display_headers_and_table(); update_window_history();"
title="Disable all enabled sorting"
>Sorting
</button>
</div>
<div class="settings-box">
<p>Export blocklist:</p>
<button class="btn dropdown-btn btn-default export-csv"
title="Download a newline-separated list of all blocks that are currently shown">
<i class="fas fa-file-export"></i>Export CSV
</button>
<button class="btn dropdown-btn btn-default export-json"
title="Download a JSON string-array-formatted list of all blocks that are currently shown">
<i class="fas fa-file-export"></i>Export JSON
</button>
<button class="btn dropdown-btn btn-default copy-comma-separated"
title="Copy a Comma-Separated list of all blocks that are currently shown to clipboard.">
<i class="fas fa-copy"></i>Copy Comma-Separated List
</button>
</div>
<div class="settings-box">
<p>Convert size values to:</p>
<div class="btn-group">
<button
class="btn btn-default radio-settings"
type="button"
setting="size_type"
value="pixel"
title="Convert size units to pixels (1/16 blocks)"
><i class="fas fa-th-large"></i> Pixel</button>
<button
class="btn btn-default radio-settings"
type="button"
setting="size_type"
value="block"
title="Convert size units to blocks (16 pixels)"
><i class="fas fa-square"></i> Block</button>
</div>
</div>
<div class="settings-box">
<p>Expandable tables:</p>
<button class="btn btn-default toggle-settings" type="button" setting="expand_tables" rerender="false" onclick="settings_obj['expand_tables'] ? $('table.expandable').addClass('display-none') : $('table.expandable').removeClass('display-none'); $('table.expandable.preview-table').toggleClass('display-none')">
Expand All
</button>
<button class="btn btn-default toggle-settings" type="button" setting="hide_expand_buttons" rerender="false" onclick="$('.expand-btn').toggleClass('display-none');">
Hide Buttons
</button>
</div>
<div class="settings-box">
<p>Share this configuration:</p>
<button class="btn btn-default" style="margin-bottom: 7px" type="button" onclick="
navigator.clipboard.writeText(window.location.href);
let url_check = $('#copy-url-check');
url_check.css('display', 'inline-block');
url_check.css('opacity', 0);
url_check.animate({opacity: 1}, 200)
">
<i class="fas fa-link"></i> Copy URL <i id="copy-url-check" class="fas fa-check" style=" display: none;"></i>
</button>
<div class="input-group">
<input type="text" class="form-control" id="markdown-link-text" placeholder="Link Text" value="Your Link Text Here" aria-describedby="copy-markdown" onclick="this.select();">
<span class="input-group-btn">
<button class="btn btn-default" type="button" id="copy-markdown" onclick="
navigator.clipboard.writeText(`[${document.getElementById('markdown-link-text').value}](${window.location.href})`);
let md_check = $('#copy-markdown-check')
md_check.css('display', 'inline-block');
md_check.css('opacity', 0);
md_check.animate({opacity: 1}, 200)
">
<i class="fab fa-markdown"></i> Copy markdown <i id="copy-markdown-check" class="fas fa-check" style=" display: none;"></i>
</button>
</span>
</div>
</div>
<div class="settings-box">
<p>Font:</p>
<div class="btn-group">
<button
class="btn btn-default radio-settings"
type="button"
setting="font"
value="monospaced"
rerender="false"
onclick="document.querySelector('body').style.fontFamily = 'monospace, \'Courier New\''"
onload="if (new URLSearchParams(window.location.search).get('font') === 'monospaced') document.querySelector('body').style.fontFamily = 'monospace, \'Courier New\''"
>
Monospaced
</button>
<button class="btn btn-default radio-settings" type="button" setting="font" value="normal" rerender="false" onclick="document.querySelector('body').style.fontFamily = '\'Montserrat\', sans-serif'">
Normal
</button>
</div>
</div>
<div class="settings-box">
<p>Word tearing:</p>
<p style="font-size: 16px;">13 bit binary sequences (separated by newlines)</p>
<div class="form-inline text-center">
<textarea class="form-control"
id="blockbits"
placeholder="13 bit binary sequence(s)..."
type="search"
autocomplete="off"
style="min-width: 250px;"
>0100010010001</textarea>
</div>
<p style="font-size: 16px; padding-top: 8px">Number of bits from first block: <span id="bitindex">4</span></p>
<input type="range"
min="1"
max="13"
value="4"
class="slider"
id="bitindexslider"
oninput="$('#bitindex').text(this.value);"
>
<p style="font-size: 16px; padding-top: 8px">Find:</p>
<input type="checkbox" checked id="firstbits"></intput><label style="font-weight: normal;" for="firstbits"> First block </label>
<input type="checkbox" id="lastbits"></intput><label style="font-weight: normal;" for="lastbits"> Last block </label><br>
<div class="btn-group" style="margin-top: 5px">
<a role="button" class="btn btn-default" type="button" onclick="
blockbits = $('#blockbits').val().split('\n');
if(blockbits.some(state => state.length !== 13)) {
alert('Needs to be 13 long');
return;
}
console.log(blockbits);
index = parseInt($('#bitindexslider').val());
first = $('#firstbits').is(':checked') ? blockbits.map(state => state.substr(0, index)) : [];
last = $('#lastbits').is(':checked') ? blockbits.map(state => state.substr(index, 12)) : [];
filter_obj.binary_rep = value_list.binary_rep.filter(e => !first.includes(e.substr(0, index)) && !last.includes(e.substr(index, 12)));
display_headers_and_table();
">Find blocks</a>
</div>
</div>
<div class="settings-box">
<p>Right-align number cells:</p>
<div class="btn-group">
<button
class="btn btn-default radio-settings"
type="button"
setting="right_align_numbers"
value="true"
title="Right-align number cells in the table"
>Right-align</button>
</div>
</div>
</div>
<div class="form-inline text-center">
<input class="form-control search"
id="search"
placeholder="Search for block(s)..."
autofocus
type="search"
autocomplete="off"
/>
</div>
<div class="results">
<table class="table table-bordered table-hover text-left" id="output-table">
<thead>
<tr></tr>
</thead>
<tbody>
<!-- Table contents are inserted here using jQuery -->
</tbody>
</table>
</div>
</div>
<button onclick="scroll_to_top()" id="scrollButton" title="Go to top">
<i class="fas fa-angle-up"></i>
</button>
</div>
</body>