Skip to content

Instantly share code, notes, and snippets.

@mirkokral
Last active July 18, 2022 07:59
Show Gist options
  • Save mirkokral/9b31f79672d2f92b67dbdb2e8165c5e7 to your computer and use it in GitHub Desktop.
Save mirkokral/9b31f79672d2f92b67dbdb2e8165c5e7 to your computer and use it in GitHub Desktop.
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