Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.sear.tutorial.magic;
- import com.sear.tutorial.Tutorial;
- import com.sear.tutorial.entity.EntityRubyArrow;
- import com.sear.tutorial.util.StringColors;
- import cpw.mods.fml.relauncher.Side;
- import cpw.mods.fml.relauncher.SideOnly;
- import net.minecraft.client.Minecraft;
- import net.minecraft.enchantment.Enchantment;
- import net.minecraft.enchantment.EnchantmentHelper;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.entity.projectile.EntityFireball;
- import net.minecraft.server.MinecraftServer;
- import net.minecraft.world.World;
- public class spells {
- /** Sets the currently active spell on startup. */
- public static int activeSpell = 0;
- /** Sets the active spell on an input. */
- public static void setActiveSpell(int spell) {
- activeSpell = spell;
- }
- /** Activates the spell with the specified value (e.g. 2 is ice blast)
- * and then determines what spell it is, and casts the spell.
- * */
- public static void activateSpell(int spell){
- switch(spell){
- case 0: ;
- case 1: fireFireball();
- case 2:
- case 3:
- default:
- }
- }
- public static void fireFireball(){
- float f = 2.0F;
- World world;
- EntityPlayer player;
- EntityFireball fireball = new EntityFireball(world, player, 4.0F);
- if (!world.isRemote)
- {
- world.spawnEntityInWorld(fireball);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment