I want to makeĀ an item that can shoot a fireball when left click, but I can't figure out how to make it.
Here is the code.
Please tell me in detail what to do.
package arknights.item;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.*;
import net.minecraft.potion.Effect;
import net.minecraft.potion.EffectInstance;
import net.minecraft.stats.Stats;
import net.minecraft.util.ActionResult;
import net.minecraft.util.H