Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package se.proxus.mods.list;
- import net.minecraft.src.Block;
- import net.minecraft.src.EntityPlayer;
- import net.minecraft.src.MathHelper;
- import net.minecraft.src.Reflector;
- import se.proxus.events.*;
- import se.proxus.events.player.EventUpdate;
- import se.proxus.events.render.*;
- import se.proxus.mods.*;
- import se.proxus.utils.*;
- public class ModTest extends BaseMod {
- public ModTest() {
- super("Test", new ModInfo(new String[]{"Used to test mods while in debug."},
- "Oliver", "NONE", true), ModType.PLAYER, false);
- getInfo().setMod(this);
- getConfig().loadConfig();
- getInfo().setArrayName(getType().getColor() + getName());
- }
- @Override
- public void initMod() {
- this.getEvent().registerEvent(EventUpdate.class);
- }
- @Override
- public void onEnabled() {
- }
- @Override
- public void onDisabled() {
- }
- @Override
- public void onEvent(Event event) {
- if(getState()) {
- if(event instanceof EventUpdate) {
- if(Wrapper.getMouseOver() != null) {
- int id = Wrapper.getWorld().getBlockId(Wrapper.getMouseOver().blockX, Wrapper.getMouseOver().blockY,
- Wrapper.getMouseOver().blockZ);
- if(id == Block.music.blockID) {
- Wrapper.getMinecraft().clickMouse(1);
- for(int clicks = 0; clicks < 100; clicks++) {
- Wrapper.getMinecraft().clickMouse(1);
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement