Minecraft-Console-Client icon indicating copy to clipboard operation
Minecraft-Console-Client copied to clipboard

[BUG] NOT working version 1.18.1

Open ahbesuat opened this issue 3 years ago • 3 comments

Prerequisites

  • [X] I made sure I am running the latest development build
  • [X] I tried to look for similar issues before opening a new one
  • [X] I have set debugmessages=true in config to diagnose my issue
  • [X] I have redacted session tokens and passwords before attaching screenshots

Minecraft Version

1.18.1

Console Client Version

latest

Expected Behavior

I want to use oreminer version 1.18.1

Actual Behavior

It's not working version 1.18.1 [Warn] Update: Got error from scriptloader.script+oreminer: system.NullReferenceException

Steps to Reproduce the bug

  1. .
  2. .
  3. .

Attach screenshot here (If applicable)

image

Anythings that could help diagnosing the bug

//MCCScript 1.0

MCC.LoadBot(new OreMiner());

//MCCScript Extensions

/// <summary>
/// This bot can mine blocks that auto-spawn at given locations
/// </summary>
public class OreMiner: ChatBot
{
    // === CONFIG - REPLACE BLOCK LOCATION x y z VALUES HERE ===
    List<Location> location = new List<Location>()
    {
        //right
        new Location(-6021, 72, 19199),
        new Location(-6021, 72, 19198),
        new Location(-6021, 72, 19197),
	    new Location(-6021, 72, 19196),
	    new Location(-6021, 72, 19195),
        new Location(-6021, 72, 19205),
        new Location(-6021, 72, 19204),
        new Location(-6021, 72, 19203),
        new Location(-6021, 72, 19202),
        new Location(-6021, 72, 19201),
        //left
        new Location(-6023, 72, 19199),
        new Location(-6023, 72, 19198),
        new Location(-6023, 72, 19197),
	    new Location(-6023, 72, 19196),
	    new Location(-6023, 72, 19195),
        new Location(-6023, 72, 19205),
        new Location(-6023, 72, 19204),
        new Location(-6023, 72, 19203),
        new Location(-6023, 72, 19202),
        new Location(-6023, 72, 19201),
        // Add more her4
    };
    // === END OF CONFIG ===
    int index = 0;

    public override void Initialize()
    {
        LogToConsole("Bot enabled!");
    }

    public override void Update()
    {
        Material blockType = GetWorld().GetBlock(location[index]).Type;
        switch (blockType)
        {
            //Adjust here block types to mine
            case Material.Cobblestone:
	        case Material.DiamondOre:
            case Material.EmeraldOre:
            case Material.GoldOre:
            case Material.IronOre:
            case Material.CoalOre:
            case Material.LapisOre:
                DigBlock(location[index]);
                break;
        }
        index++;
        if (index >= location.Count)
            index = 0;
    }
}

Device

Laptop

Operating System

Windows

Server Address (If applicable)

play.ruincraft.xyz

ahbesuat avatar Feb 27 '22 01:02 ahbesuat

OreMiner requires terrain and movement handling to be enabled but it is not yet implemented in 1.18.1.

ReinforceZwei avatar Mar 06 '22 12:03 ReinforceZwei

how can i do it or when can you do it

ahbesuat avatar Mar 06 '22 17:03 ahbesuat

@ahbesuat if your server supports older versions you can set the client version to 1.16.5. 1.16.5 supports everything.

farfromsubtlee avatar Jun 11 '22 22:06 farfromsubtlee

Fixed in #1943.

milutinke avatar Aug 28 '22 23:08 milutinke