无法移除模组的矿石生成,但是可以移除原版的这是我写的脚本 无报错
复制代码
- onEvent('worldgen.remove', event => {
- event.removeOres(ores => {
- ores.blocks =
- [ 'thermal:copper_ore',
- 'thermal:tin_ore',
- 'thermal:lead_ore',
- 'immersiveengineering:ore_lead',
- 'immersiveengineering:ore_copper',
- 'immersiveengineering:ore_nickel',
- 'immersiveengineering:ore_silver',
- 'immersiveengineering:ore_uranium'
- ]
- })
- })
手机不方便打
If something isn't removing, you may try to remove it "manually" by first printing all features (this will spam your console a lot, I suggest reading logs/kubejs/startup.txt) and then removing them by ID where possible.
示例代码:
onEvent('worldgen.remove', event => {
// May be one of the decoration types/levels described in worldgen.add docs
// But ores are *most likely* to be generated in this one
// 打印所有矿石(仅用于获取所需信息)
event.printFeatures('underground_ores')
})
onEvent('worldgen.remove', event => {
// 移除矿石中指定内容event.removeFeatureById('underground_ores', 'mekanism:ore_copper')
})
If something isn't removing, you may try to remove it "manually" by first printing all features (this will spam your console a lot, I suggest reading logs/kubejs/startup.txt) and then removing them by ID where possible.
示例代码:
onEvent('worldgen.remove', event => {
// May be one of the decoration types/levels described in worldgen.add docs
// But ores are *most likely* to be generated in this one
// 打印所有矿石(仅用于获取所需信息)
event.printFeatures('underground_ores')
})
onEvent('worldgen.remove', event => {
// 移除矿石中指定内容event.removeFeatureById('underground_ores', 'mekanism:ore_copper')
})