mirror of
https://github.com/ACGaming/Spackenmobs
synced 2024-05-19 20:04:10 +02:00
Removed unused broken stuff
This commit is contained in:
parent
44af55c72f
commit
04831e903a
|
@ -11,7 +11,7 @@ apply plugin: 'net.minecraftforge.gradle.forge'
|
|||
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
|
||||
|
||||
|
||||
version = "RC4"
|
||||
version = "RC5"
|
||||
group = "mod.acgaming.spackenmobs" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = "Spackenmobs-1.12.2"
|
||||
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
package mod.acgaming.spackenmobs;
|
||||
|
||||
import mod.acgaming.spackenmobs.events.TauntDrachenlordEvent;
|
||||
import mod.acgaming.spackenmobs.misc.ModEntities;
|
||||
import mod.acgaming.spackenmobs.misc.ModKeybinds;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import net.minecraftforge.fml.common.Mod.EventHandler;
|
||||
import net.minecraftforge.fml.common.Mod.Instance;
|
||||
|
@ -14,11 +11,11 @@ import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
|||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
@Mod(modid = "spackenmobs", version = "RC4", acceptedMinecraftVersions = "[1.12.2]")
|
||||
@Mod(modid = "spackenmobs", version = "RC5", acceptedMinecraftVersions = "[1.12.2]")
|
||||
public class Spackenmobs
|
||||
{
|
||||
public static final String MODID = "spackenmobs";
|
||||
public static final String VERSION = "RC4";
|
||||
public static final String VERSION = "RC5";
|
||||
|
||||
public static final CreativeTabs SPACKENMOBS_TAB = new SpackenmobsTab();
|
||||
|
||||
|
@ -41,8 +38,7 @@ public class Spackenmobs
|
|||
@EventHandler
|
||||
public void init(FMLInitializationEvent event)
|
||||
{
|
||||
MinecraftForge.EVENT_BUS.register(new TauntDrachenlordEvent());
|
||||
ModKeybinds.init();
|
||||
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
|
|
@ -1,48 +0,0 @@
|
|||
package mod.acgaming.spackenmobs.events;
|
||||
|
||||
import mod.acgaming.spackenmobs.entities.EntityDrachenlord;
|
||||
import mod.acgaming.spackenmobs.misc.ModKeybinds;
|
||||
import mod.acgaming.spackenmobs.misc.ModSoundEvents;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.util.EntityDamageSourceIndirect;
|
||||
import net.minecraft.util.math.AxisAlignedBB;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.RayTraceResult;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
import net.minecraftforge.fml.common.gameevent.InputEvent;
|
||||
import net.minecraftforge.fml.common.gameevent.InputEvent.KeyInputEvent;
|
||||
import net.minecraftforge.fml.common.gameevent.TickEvent;
|
||||
import org.lwjgl.input.Keyboard;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class TauntDrachenlordEvent
|
||||
{
|
||||
private void PigmanAggro(World worldIn, BlockPos pos, EntityPlayer player)
|
||||
{
|
||||
float radius = 64;
|
||||
|
||||
BlockPos corner1 = new BlockPos(pos.getX() - radius, pos.getY() - radius, pos.getZ() - radius);
|
||||
BlockPos corner2 = new BlockPos(pos.getX() + radius, pos.getY() + radius, pos.getZ() + radius);
|
||||
AxisAlignedBB AABB_radius = new AxisAlignedBB(corner1, corner2);
|
||||
List<EntityDrachenlord> drachenlords = worldIn.getEntitiesWithinAABB(EntityDrachenlord.class, AABB_radius);
|
||||
|
||||
for (EntityDrachenlord drachenlord : drachenlords)
|
||||
{
|
||||
DamageSource damageSource = new EntityDamageSourceIndirect("generic", player, player);
|
||||
drachenlord.becomeAngryAt(player);
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onKeyInput(KeyInputEvent event)
|
||||
{
|
||||
if (ModKeybinds.taunt.isPressed())
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
package mod.acgaming.spackenmobs.misc;
|
||||
|
||||
import net.minecraft.client.settings.KeyBinding;
|
||||
import net.minecraftforge.fml.client.registry.ClientRegistry;
|
||||
import org.lwjgl.input.Keyboard;
|
||||
|
||||
public class ModKeybinds
|
||||
{
|
||||
public static KeyBinding taunt;
|
||||
public static void init()
|
||||
{
|
||||
taunt = new KeyBinding("key.taunt", Keyboard.KEY_J, "key.categories.spackenmobs");
|
||||
ClientRegistry.registerKeyBinding(taunt);
|
||||
}
|
||||
}
|
|
@ -3,7 +3,7 @@
|
|||
"modid": "spackenmobs",
|
||||
"name": "Spackenmobs",
|
||||
"description": "The most important mobs in the history of Minecraft! [citation needed]",
|
||||
"version": "RC4",
|
||||
"version": "RC5",
|
||||
"mcversion": "1.12.2",
|
||||
"url": "https://github.com/ACGaming/Spackenmobs",
|
||||
"updateUrl": "",
|
||||
|
|
Loading…
Reference in a new issue