{“pools“:[{“rolls“:10,“entries“:[{“type“:“item“,“name“:“iron_ingot“,“fun“:[]}]}]}]}
我们打开这个函数文件夹(突然高大上)。
既然是函数文件夹,里面添加一个文件,也是函数文件:
{“pools“:[{“rolls“:10,“entries“:[{“type“:“item“,“name“:“iron_ingot“,“fun“:[{“fun“:““}]}]}]}
那么为什么要添加这个函数文件呢?答:用来执行。
执行的函数有很多种,而这里我们需要用到:
set_t——设置物品的堆叠数量
{“pools“:[{“rolls“:10,“entries“:[{“type“:“item“,“name“:“iron_ingot“,“fun“:[{“fun“:“set_t“}]}]}]}
接下来,我们添加一个新的文件夹:t,用于决定物品的数量。
但是,注意,t必须写在fun的后面才能执行。
为何?因为fun就是用来作为执行这个t的开关。
The content is not finished, continue reading on the next page