Skip to content

Commit 66745c8

Browse files
committed
Deprecated all in-repository examples
Also removed the `termcolor` dependency, which was only used by the examples.
1 parent d22f4e3 commit 66745c8

14 files changed

+157
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Compatible with GDMC-HTTP **>=1.0.0, <2.0.0** and Minecraft **1.20.2**.
55

66
**Deprecations:**
77
- Deprecated `lookup.py` and `minecraft_tools.getObtrusiveness`. See the documentation the reasons and for alternatives. Also removed example `visualize_map.py`, which heavily relied on `lookup.py`.
8+
- Deprecated all remaining in-repository examples. They have been replaced by the new [documentation website](https://gdpc.readthedocs.io).
89

910

1011
# 7.4.0

examples/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# The in-repository examples are deprecated!
2+
3+
All examples in this directory are deprecated and will be removed in a future
4+
version of GDPC. They have been replaced by the new
5+
[documentation website](https://gdpc.readthedocs.io/en/stable/).
6+
7+
The examples are longer maintained and may be incompatible with the latest
8+
version of GDPC.

examples/emerald_city.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
#!/usr/bin/env python3
22

3+
# ==============================================================================
4+
#
5+
# THE EXAMPLES ARE DEPRECATED!
6+
#
7+
# All in-repository examples are deprecated and will be removed in a future
8+
# version of GDPC. They have been replaced by the new documentation website:
9+
# https://gdpc.readthedocs.io/en/stable/.
10+
#
11+
# The examples are longer maintained and may be incompatible with the latest
12+
# version of GDPC.
13+
#
14+
# ==============================================================================
15+
16+
317
"""
418
NOTE: This file is an old example script. Although it is no longer
519
comprehensive, and it does not use the most modern features or best

examples/quick_example.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
#!/usr/bin/env python3
22

3+
# ==============================================================================
4+
#
5+
# THE EXAMPLES ARE DEPRECATED!
6+
#
7+
# All in-repository examples are deprecated and will be removed in a future
8+
# version of GDPC. They have been replaced by the new documentation website:
9+
# https://gdpc.readthedocs.io/en/stable/.
10+
#
11+
# The examples are longer maintained and may be incompatible with the latest
12+
# version of GDPC.
13+
#
14+
# ==============================================================================
15+
16+
317
"""The quick example from the README"""
418

519

examples/tutorials/1_hello_block.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
#!/usr/bin/env python3
22

3+
# ==============================================================================
4+
#
5+
# THE EXAMPLES ARE DEPRECATED!
6+
#
7+
# All in-repository examples are deprecated and will be removed in a future
8+
# version of GDPC. They have been replaced by the new documentation website:
9+
# https://gdpc.readthedocs.io/en/stable/.
10+
#
11+
# The examples are longer maintained and may be incompatible with the latest
12+
# version of GDPC.
13+
#
14+
# ==============================================================================
15+
16+
317
"""
418
Place and retrieve a single block in the world.
519
"""

examples/tutorials/2_vectors.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
#!/usr/bin/env python3
22

3+
# ==============================================================================
4+
#
5+
# THE EXAMPLES ARE DEPRECATED!
6+
#
7+
# All in-repository examples are deprecated and will be removed in a future
8+
# version of GDPC. They have been replaced by the new documentation website:
9+
# https://gdpc.readthedocs.io/en/stable/.
10+
#
11+
# The examples are longer maintained and may be incompatible with the latest
12+
# version of GDPC.
13+
#
14+
# ==============================================================================
15+
16+
317
"""
418
Use vector math and some of GDPC's various vector utilities.
519
"""

examples/tutorials/3_build_area.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
#!/usr/bin/env python3
22

3+
# ==============================================================================
4+
#
5+
# THE EXAMPLES ARE DEPRECATED!
6+
#
7+
# All in-repository examples are deprecated and will be removed in a future
8+
# version of GDPC. They have been replaced by the new documentation website:
9+
# https://gdpc.readthedocs.io/en/stable/.
10+
#
11+
# The examples are longer maintained and may be incompatible with the latest
12+
# version of GDPC.
13+
#
14+
# ==============================================================================
15+
16+
317
"""
418
Get the specified build area and use it to place a block inside the bounds.
519
"""

examples/tutorials/4_world_slice.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
#!/usr/bin/env python3
22

3+
# ==============================================================================
4+
#
5+
# THE EXAMPLES ARE DEPRECATED!
6+
#
7+
# All in-repository examples are deprecated and will be removed in a future
8+
# version of GDPC. They have been replaced by the new documentation website:
9+
# https://gdpc.readthedocs.io/en/stable/.
10+
#
11+
# The examples are longer maintained and may be incompatible with the latest
12+
# version of GDPC.
13+
#
14+
# ==============================================================================
15+
16+
317
"""
418
Load and use a world slice.
519
"""

examples/tutorials/5_geometry.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
#!/usr/bin/env python3
22

3+
# ==============================================================================
4+
#
5+
# THE EXAMPLES ARE DEPRECATED!
6+
#
7+
# All in-repository examples are deprecated and will be removed in a future
8+
# version of GDPC. They have been replaced by the new documentation website:
9+
# https://gdpc.readthedocs.io/en/stable/.
10+
#
11+
# The examples are longer maintained and may be incompatible with the latest
12+
# version of GDPC.
13+
#
14+
# ==============================================================================
15+
16+
317
"""
418
Use the geometry module to place geometrical regions of blocks.
519
"""

examples/tutorials/6_advanced_blocks.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
#!/usr/bin/env python3
22

3+
# ==============================================================================
4+
#
5+
# THE EXAMPLES ARE DEPRECATED!
6+
#
7+
# All in-repository examples are deprecated and will be removed in a future
8+
# version of GDPC. They have been replaced by the new documentation website:
9+
# https://gdpc.readthedocs.io/en/stable/.
10+
#
11+
# The examples are longer maintained and may be incompatible with the latest
12+
# version of GDPC.
13+
#
14+
# ==============================================================================
15+
16+
317
"""
418
Place blocks with block states and block entity data, and use block palettes.
519
"""

0 commit comments

Comments
 (0)