Skip to content

Commit 0902dea

Browse files
author
Otho
committed
Organizing default config files and adding custom ore gen of redsand
1 parent 5c60319 commit 0902dea

6 files changed

Lines changed: 173 additions & 161 deletions

File tree

src/main/java/me/otho/customItems/configuration/jsonReaders/worldGen/Cfg_oreGen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ public class Cfg_oreGen {
44
public String blockToSpawn;
55
public String blockToReplace;
66
public int dimensionId;
7-
public int blockXPos;
8-
public int blockZPos;
7+
// public int blockXPos;
8+
// public int blockZPos;
99
public int minVeinSize;
1010
public int maxVeinSize;
1111
public int chancesToSpawn;

src/main/java/me/otho/customItems/registry/Registry.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ public int compare(Cfg_basicData d1, Cfg_basicData d2)
124124
TileEntityRegistry.registerChest((Cfg_chest) toRegister);
125125
}else if(toRegister instanceof Cfg_block)
126126
{
127+
//TODO add switch based on block type
127128
BlockRegistry.registerBlock((Cfg_block) toRegister);
128129
}else if(toRegister instanceof Cfg_food)
129130
{
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
{
2+
"chests": [
3+
{
4+
"name": "Single item Chest",
5+
"invName": "Tiny",
6+
"textureName": "crate",
7+
"slotMaxStackSize": 1,
8+
"invHeight": 1,
9+
"invWidth": 1
10+
}
11+
],
12+
"blocks": [
13+
{
14+
"textureName": "red_sand",
15+
"name": "Red Sand",
16+
"toolClass": "shovel",
17+
"stepSound": "sand",
18+
"material": "sand",
19+
"resistance": 2.5,
20+
"falls": true,
21+
"hardness": 0.5
22+
},
23+
{
24+
"textureName": "pink_sand",
25+
"name": "Pink Sand",
26+
"toolClass": "shovel",
27+
"stepSound": "sand",
28+
"material": "sand",
29+
"resistance": 2.5,
30+
"falls": true,
31+
"hardness": 0.5
32+
},
33+
{
34+
"textureName": "green_sand",
35+
"name": "Green Sand",
36+
"toolClass": "shovel",
37+
"stepSound": "sand",
38+
"material": "sand",
39+
"resistance": 2.5,
40+
"falls": true,
41+
"hardness": 0.5
42+
},
43+
{
44+
"textureName": "blue_sand",
45+
"name": "Blue Sand",
46+
"toolClass": "shovel",
47+
"stepSound": "sand",
48+
"material": "sand",
49+
"resistance": 2.5,
50+
"falls": true,
51+
"hardness": 0.5
52+
},
53+
{
54+
"textureName": "customGlass",
55+
"registerOrder": 1,
56+
"name": "Custom Glass",
57+
"renderAsNormalBlock": false,
58+
"stepSound": "glass",
59+
"material": "glass",
60+
"resistance": 0,
61+
"creativeTab": "novoTab",
62+
"isOpaque": false,
63+
"canSilkHarvest": true,
64+
"lightLevel": 0,
65+
"maxStackSize": 16,
66+
"breaks": true,
67+
"hardness": 1
68+
},
69+
{
70+
"registerOrder": 1,
71+
"name": "Multi Tex Block",
72+
"maxItemDrop": 10,
73+
"toolClass": "pickaxe",
74+
"material": "rock",
75+
"resistance": 0,
76+
"harvestLevel": 0,
77+
"dropItemName": "customitems:saquaguara_chest",
78+
"lightLevel": 0,
79+
"eachExtraItemDropChance": 15,
80+
"multipleTextures": {
81+
"xpos": "side_6",
82+
"xneg": "side_5",
83+
"zpos": "side_4",
84+
"zneg": "side_3",
85+
"ypos": "side_2",
86+
"yneg": "side_1"
87+
},
88+
"hardness": 1,
89+
"minItemDrop": 1
90+
}
91+
]
92+
}
Lines changed: 58 additions & 153 deletions
Original file line numberDiff line numberDiff line change
@@ -1,156 +1,61 @@
1-
{
2-
"blocks":[
3-
{
4-
"name": "Red Sand",
5-
"textureName": "red_sand",
6-
"material": "sand",
7-
"toolClass":"shovel",
8-
"hardness": 0.5,
9-
"resistance": 2.5,
10-
"falls": true,
11-
"stepSound": "sand"
12-
},
13-
{
14-
"name": "Pink Sand",
15-
"textureName": "pink_sand",
16-
"material": "sand",
17-
"toolClass":"shovel",
18-
"hardness": 0.5,
19-
"resistance": 2.5,
20-
"falls": true,
21-
"stepSound": "sand"
22-
},
23-
{
24-
"name": "Green Sand",
25-
"textureName": "green_sand",
26-
"material": "sand",
27-
"toolClass":"shovel",
28-
"hardness": 0.5,
29-
"resistance": 2.5,
30-
"falls": true,
31-
"stepSound": "sand"
32-
},
33-
{
34-
"name": "Blue Sand",
35-
"textureName": "blue_sand",
36-
"material": "sand",
37-
"toolClass":"shovel",
38-
"hardness": 0.5,
39-
"resistance": 2.5,
40-
"falls": true,
41-
"stepSound": "sand"
42-
},
43-
{
44-
"name": "Custom Glass",
45-
"textureName": "customGlass",
46-
"material": "glass",
47-
"stepSound": "glass",
48-
"renderAsNormalBlock": false,
49-
50-
"isOpaque": false,
51-
"creativeTab":"novoTab",
52-
"hardness": 1,
53-
"resistance": 0,
54-
"lightLevel": 0,
55-
"breaks": true,
56-
"canSilkHarvest": true,
57-
"registerOrder":1,
58-
"maxStackSize": 16
59-
},
60-
{
61-
"name": "Multi Tex Block",
62-
"textureName": "Block2TextureName",
63-
"material": "rock",
64-
"toolClass":"pickaxe",
65-
"hardness": 1,
66-
"resistance": 0,
67-
"lightLevel": 0,
68-
"harvestLevel": 0,
69-
"registerOrder":1,
70-
"dropItemName": "customitems:saquaguara_chest",
71-
"minItemDrop": 1,
72-
"maxItemDrop": 10,
73-
"eachExtraItemDropChance": 15,
74-
"multipleTextures":{
75-
"yneg":"side_1",
76-
"ypos":"side_2",
77-
"zneg":"side_3",
78-
"zpos":"side_4",
79-
"xneg":"side_5",
80-
"xpos":"side_6"
1+
{
2+
"items": [
3+
{
4+
"maxStackSize": 64,
5+
"textureName": "blue_metal",
6+
"name": "Blue Metal",
7+
"creativeTab": "New Tab"
8+
},
9+
{
10+
"maxStackSize": 64,
11+
"textureName": "red_metal",
12+
"name": "Red Metal",
13+
"creativeTab": "New Tab"
14+
},
15+
{
16+
"maxStackSize": 64,
17+
"textureName": "gray_metal",
18+
"name": "Gray Metal",
19+
"creativeTab": "New Tab"
20+
},
21+
{
22+
"maxStackSize": 9,
23+
"textureName": "coin2",
24+
"name": "Coin",
25+
"creativeTab": "New Tab"
26+
}
27+
],
28+
"foods": [
29+
{
30+
"maxStackSize": 64,
31+
"textureName": "banana",
32+
"potionEffects": [
33+
{
34+
"effect": "fireResistance"
35+
},
36+
{
37+
"effect": "jump"
8138
}
82-
}
83-
],
84-
85-
"chests":[
86-
{
87-
"name": "Single item Chest",
88-
"invName": "Tiny",
89-
"textureName": "crate",
90-
"slotMaxStackSize": 1,
91-
"invWidth": 1,
92-
"invHeight": 1
93-
}
94-
],
95-
96-
"items":[
97-
{
98-
"name":"Blue Metal",
39+
],
40+
"name": "Banana"
41+
}
42+
],
43+
"swords": [
44+
{
45+
"name": "God Sword",
46+
"textureName": "godsword",
47+
"maxUses": 10,
48+
"harvestLevel": 0,
49+
"efficiencyOnProperMaterial": 10,
50+
"enchantability": 0,
9951
"creativeTab": "New Tab",
100-
"textureName":"blue_metal",
101-
"maxStackSize": 64
102-
},
103-
{
104-
"name":"Red Metal",
105-
"creativeTab": "New Tab",
106-
"textureName":"red_metal",
107-
"maxStackSize": 64
108-
},
109-
{
110-
"name":"Gray Metal",
111-
"creativeTab": "New Tab",
112-
"textureName":"gray_metal",
113-
"maxStackSize": 64
114-
},
115-
{
116-
"name":"Coin",
117-
"creativeTab": "New Tab",
118-
"textureName":"coin2",
119-
"maxStackSize": 9
120-
}
121-
],
122-
"foods":[
123-
{
124-
"name":"Banana",
125-
"textureName":"banana",
126-
"maxStackSize": 64,
127-
"potionEffects": [
128-
{
129-
"effect": "fireResistance"
130-
},
131-
{
132-
"effect": "jump"
133-
}
134-
]
135-
}
136-
137-
],
138-
"swords":[
139-
{
140-
"name":"God Sword",
141-
"textureName":"godsword",
142-
"creativeTab": "New Tab",
143-
"harvestLevel":0,
144-
"maxUses":10,
145-
"efficiencyOnProperMaterial":10,
146-
"damageVsEntity":10000,
147-
"enchantability":0
148-
}
149-
],
150-
"changeItems":[
151-
{
152-
"name":"minecraft:boat",
153-
"maxStackSize": 6
154-
}
155-
]
52+
"damageVsEntity": 10000
53+
}
54+
],
55+
"changeItems": [
56+
{
57+
"maxStackSize": 6,
58+
"name": "minecraft:boat"
59+
}
60+
]
15661
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"oreGen":[
3+
{
4+
"blockToSpawn": "customitems:red_sand",
5+
"blockToReplace": "minecraft:sand",
6+
"dimensionId": 0,
7+
"minVeinSize": 10,
8+
"maxVeinSize": 15,
9+
"chancesToSpawn": 10,
10+
"minY": 40,
11+
"maxY": 90
12+
}
13+
]
14+
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"creativeTabs":[
3-
{
4-
"tabLabel":"New Tab",
5-
"iconItem":"customitems:god_sword"
6-
}
7-
]
2+
"creativeTabs": [
3+
{
4+
"tabLabel": "New Tab",
5+
"iconItem": "customitems:god_sword"
6+
}
7+
]
88
}

0 commit comments

Comments
 (0)