-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from takunology/2.0.3-dev
update to 2.1.0
- Loading branch information
Showing
37 changed files
with
420 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
MinecraftConnection/.vs/MinecraftConnection/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-212 KB
MinecraftConnection/.vs/ProjectEvaluation/minecraftconnection.metadata.v2
Binary file not shown.
Binary file removed
BIN
-953 KB
MinecraftConnection/.vs/ProjectEvaluation/minecraftconnection.projects.v2
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
MinecraftConnection/MinecraftConnection/Extends/PlaySound.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace MinecraftConnection.Extends | ||
{ | ||
public class PlaySound | ||
{ | ||
private string _sound; | ||
|
||
public PlaySound(Sound sound) | ||
{ | ||
_sound = sound switch | ||
{ | ||
Sound.Banjo => "block.note_block.banjo", | ||
Sound.BaseDrum => "block.note_block.basedrum", | ||
Sound.Bass => "block.note_block.bass", | ||
Sound.Bell => "block.note_block.bell", | ||
Sound.Bit => "block.note_block.bit", | ||
Sound.Chime => "block.note_block.basedrum", | ||
Sound.CowBell => "block.note_block.cow_bell", | ||
Sound.DidGeridoo => "block.note_block.didgeridoo", | ||
Sound.Flute => "block.note_block.flute", | ||
Sound.Guiter => "block.note_block.guiter", | ||
Sound.Harp => "block.note_block.harp", | ||
Sound.Hat => "block.note_block.hat", | ||
Sound.IronXylophone => "block.note_block.iron_xylophone", | ||
Sound.Pling => "block.note_block.pling", | ||
Sound.Snare => "block.note_block.snare", | ||
Sound.Xylophone => "block.note_block.xylophone", | ||
_ => "" | ||
}; | ||
} | ||
|
||
public string MakeCommand() | ||
{ | ||
var command = $"execute as @p at @s run playsound {_sound} master @a ~ ~ ~ 1"; | ||
return command; | ||
} | ||
|
||
public string MakeCommand(double pitch) | ||
{ | ||
var command = $"execute as @p at @s run playsound {_sound} master @a ~ ~ ~ 1 {pitch}"; | ||
return command; | ||
} | ||
} | ||
|
||
public enum Sound | ||
{ | ||
Banjo, | ||
BaseDrum, | ||
Bass, | ||
Bell, | ||
Bit, | ||
Chime, | ||
CowBell, | ||
DidGeridoo, | ||
Flute, | ||
Guiter, | ||
Harp, | ||
Hat, | ||
IronXylophone, | ||
Pling, | ||
Snare, | ||
Xylophone | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace MinecraftConnection | ||
{ | ||
public enum Time | ||
{ | ||
Day = 1000, | ||
Noon = 6000, | ||
Night = 13000, | ||
Midnight = 18000 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+3 KB
(110%)
MinecraftConnection/MinecraftConnection/bin/Debug/netstandard2.1/MinecraftConnection.dll
Binary file not shown.
Binary file modified
BIN
+620 Bytes
(100%)
MinecraftConnection/MinecraftConnection/bin/Debug/netstandard2.1/MinecraftConnection.pdb
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+2.5 KB
(110%)
MinecraftConnection/MinecraftConnection/bin/Release/netstandard2.1/MinecraftConnection.dll
Binary file not shown.
Binary file modified
BIN
+520 Bytes
(100%)
MinecraftConnection/MinecraftConnection/bin/Release/netstandard2.1/MinecraftConnection.pdb
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...MinecraftConnection/obj/Debug/netstandard2.1/MinecraftConnection.AssemblyInfoInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
282d325dab411b029c2b700535254c4e10846814 | ||
61cb29eec0fdd22046b4ec01cf885acc87c9a0e8 |
Binary file modified
BIN
+183 Bytes
(100%)
...tConnection/MinecraftConnection/obj/Debug/netstandard2.1/MinecraftConnection.assets.cache
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
...aftConnection/obj/Debug/netstandard2.1/MinecraftConnection.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
58ac09808e49a60d39082e10803bbe07bec02c70 | ||
849158c32200dd797771d9988dec7bbc26078e5b |
Binary file modified
BIN
+3 KB
(110%)
MinecraftConnection/MinecraftConnection/obj/Debug/netstandard2.1/MinecraftConnection.dll
Binary file not shown.
Binary file modified
BIN
+620 Bytes
(100%)
MinecraftConnection/MinecraftConnection/obj/Debug/netstandard2.1/MinecraftConnection.pdb
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...necraftConnection/obj/Release/netstandard2.1/MinecraftConnection.AssemblyInfoInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
8a61b2791601bc8bb386901640ecee29366c6deb | ||
b3acf231274fd2c3494e3b68faaa31ce510a1d88 |
Binary file modified
BIN
+183 Bytes
(100%)
...onnection/MinecraftConnection/obj/Release/netstandard2.1/MinecraftConnection.assets.cache
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
...tConnection/obj/Release/netstandard2.1/MinecraftConnection.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
55ebbe7502f00ee1b87d8abba2101c645c018603 | ||
fb3be4d7b6bf6f883ff96a5808967b15003e738a |
Binary file modified
BIN
+2.5 KB
(110%)
MinecraftConnection/MinecraftConnection/obj/Release/netstandard2.1/MinecraftConnection.dll
Binary file not shown.
Binary file modified
BIN
+520 Bytes
(100%)
MinecraftConnection/MinecraftConnection/obj/Release/netstandard2.1/MinecraftConnection.pdb
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
MinecraftConnection/MinecraftConnection/obj/project.nuget.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.