#How to remove a potion with MoreJS (Not remove it as an ingredient)
11 messages · Page 1 of 1 (latest)
I was a little confused by this, I thought the null was what the output was changed to
Okay, I'm giving it a try
Okay, I'be tried several variants of this and the results improved but it's completely inconsistent whether or not it removes a potion
if you want to remove the potion recipe entirely, event.removeByPotion(null, null, "apotheosis:resistance");
This is what I have in my script ```MoreJSEvents.registerPotionBrewing((event) => {
event.removeByPotion("apotheosis:resistance", null, null);
event.removeByPotion("apotheosis:absorption", null, null);
event.removeByPotion("apotheosis:haste", null, null);
event.removeByPotion("apotheosis:wither", null, null);
event.removeByPotion("apotheosis:sundering", null, null);
event.removeByPotion("apotheosis:grievous", null, null);
event.removeByPotion("apotheosis:flying", null, null);
event.removeByPotion(null, null, "apotheosis:resistance");
event.removeByPotion(null, null, "apotheosis:absorption");
event.removeByPotion(null, null, "apotheosis:haste");
event.removeByPotion(null, null, "apotheosis:wither");
event.removeByPotion(null, null, "apotheosis:sundering");
event.removeByPotion(null, null, "apotheosis:grievous");
event.removeByPotion(null, null, "apotheosis:flying");
});```
not seeing good results
did you restart the game after?
Yessir a few times