Last active
July 18, 2022 07:59
-
-
Save mirkokral/9b31f79672d2f92b67dbdb2e8165c5e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ItemModifier = require("../item-modifier"), | |
class CowItemModifier extends ItemModifier { | |
name = "cow"; | |
priority = 0; | |
onModifiedItemUsed() { | |
var p = this.plugins.position.position; | |
for (let t = 0; t < 24; t++) { | |
this.plugins.core.run(`summon cow ${p.x} ${p.y} ${p.z}`); | |
} | |
} | |
} | |
module.exports = CowItemModifier; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment