Skip to content

Commit db954ef

Browse files
committed
Removed broken method for accessing old versions
The old method of accessing versions is broken and unlikely to every be updated or maintained, removed it in favor of the new module __call__ interface and update the example.py to reflect the change.
1 parent 6fa331e commit db954ef

4 files changed

Lines changed: 8 additions & 56 deletions

File tree

example.py

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,13 @@
1-
from minecraft_data.v1_8 import find_item_or_block
2-
3-
print(find_item_or_block(1))
4-
5-
print(find_item_or_block("stone"))
6-
7-
from minecraft_data.v1_8 import recipes
8-
9-
print(recipes["5"][0])
10-
11-
from minecraft_data.v1_8 import windows as windows
12-
13-
print(windows["minecraft:brewing_stand"])
14-
15-
from minecraft_data.v1_9 import recipes as recipes2
16-
17-
print(recipes2["5"][0])
18-
19-
20-
from minecraft_data.v1_8 import effects_name
21-
22-
print(effects_name["Haste"])
1+
import minecraft_data
2+
mcd = minecraft_data("1.13.2")
233

4+
print(mcd.version)
245

25-
from minecraft_data.v1_8 import version
6+
print(mcd.find_item_or_block(1))
7+
print(mcd.find_item_or_block('stone'))
268

27-
print(version)
9+
print(mcd.recipes['5'][0])
2810

29-
import minecraft_data
11+
print(mcd.windows['minecraft:brewing_stand'])
3012

31-
print(minecraft_data("1.12").version)
13+
print(mcd.effects_name['Haste'])

minecraft_data/v1_10/__init__.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

minecraft_data/v1_8/__init__.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

minecraft_data/v1_9/__init__.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)