your current location:首页 > news>[1.16 ~ 1.18] Use Kubejs to add deletion and delete the forest ceremony formula.

[1.16 ~ 1.18] Use Kubejs to add deletion and delete the forest ceremony formula.

2024-12-10 17:46:38|Myriagame |source:minecraft skins

You have a certain Kubejs and DataPack basics in the default

The following needs to be placed in oneEvent ()

Add formula

Event.custom (

{{

"Type": "Naturesaura: Tree_ritual",

"Ingredients": [[

{{

"Item": "Minecraft: DIRT"

},

{{

"Item": "Minecraft: DIRT"

},

{{

"Item": "Minecraft: DIRT"

},

{{

"Item": "Minecraft: DIRT"

} // The items that need to be put around the ceremony are up to 8

],,,

"Sapling": {

"Item": "Minecraft: Oak_sapling" // The required sapling

},

"OUTPUT": {

"Item": "Minecraft: Cobblestone", // Products

"Count": 2},

"Time": 100 // The time required for the ceremony (the time required for making pleasant marks is 200)

}

Cure

Removal formula

Event.remove ({id: 'naturesaura: token_anger'}) // Delete the formula through the formula name