UNPKG
jsdatapack
Version:
latest (1.0.0)
1.0.0
Make minecraft datapacks in javascript.
jsdatapack
/
src
/
classes
/
templates
/
randnumberTemplate.js
24 lines
•
653 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function
random
(min, max)
{
return
`{
"pools"
: [ {
"rolls"
: {
"min"
: ${
min
},
"max"
: ${
max
} },
"entries"
: [ {
"type"
:
"item"
,
"name"
:
"minecraft:stone"
,
"functions"
: [ {
"function"
:
"set_count"
,
"count"
:
0
} ] } ] } ] }`; }