• 0

    posted a message on Crafttweaker Events are confunsing
    So im trying to make it so if you have the thirst effect, you get the poison effect, simple, but craft tweaker doesnt like that,
    what am I doing wrong?
     
    im using zen script on 1.16.5
     
    CTEventManager.register<MCPlayerTickEvent>((event) => {
        val player = event.getPlayer();
        var activepotion = <potion:survive:thrist>;
       
        if player.getActivePotionEffect(activepotion) {
          player.addPotionEffect(<potion:minecraft:poison>.makePotionEffect(active.duration, 300));
        }
      });  
    Posted in: Java Mods
  • To post a comment, please or register a new account.