mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Changed the bed command to be able to sleep. Added relative coordinates to /dig command.
This commit is contained in:
parent
6a266c68c3
commit
cd3adfa14c
5 changed files with 94 additions and 13 deletions
|
|
@ -752,6 +752,7 @@ namespace MinecraftClient.Mapping
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Check if the provided material is a liquid a player can swim into
|
||||
/// </summary>
|
||||
|
|
@ -768,5 +769,36 @@ namespace MinecraftClient.Mapping
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Check if the provided material is a bed
|
||||
/// </summary>
|
||||
/// <param name="m">Material to test</param>
|
||||
/// <returns>True if the material is a bed</returns>
|
||||
public static bool IsBed(this Material m)
|
||||
{
|
||||
switch (m)
|
||||
{
|
||||
case Material.BlackBed:
|
||||
case Material.BlueBed:
|
||||
case Material.BrownBed:
|
||||
case Material.CyanBed:
|
||||
case Material.GrayBed:
|
||||
case Material.GreenBed:
|
||||
case Material.LightBlueBed:
|
||||
case Material.LightGrayBed:
|
||||
case Material.LimeBed:
|
||||
case Material.MagentaBed:
|
||||
case Material.OrangeBed:
|
||||
case Material.PinkBed:
|
||||
case Material.PurpleBed:
|
||||
case Material.RedBed:
|
||||
case Material.WhiteBed:
|
||||
case Material.YellowBed:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue