Skip to content

Commit

Permalink
Fixed rails
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBusyBiscuit committed Mar 2, 2020
1 parent 7febe19 commit 58dd2aa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions models.json
Original file line number Diff line number Diff line change
Expand Up @@ -816,12 +816,12 @@
},
"BASIC_CIRCUIT_BOARD": {
"item": "activator_rail",
"template": "BLOCK",
"template": "FLAT_BLOCK",
"data": 4000
},
"ADVANCED_CIRCUIT_BOARD": {
"item": "powered_rail",
"template": "BLOCK",
"template": "FLAT_BLOCK",
"data": 4000
}
}
Binary file added pack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 10 additions & 3 deletions templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ module.exports = {
},
overrides: overrides
}), "UTF-8");
},
FLAT_BLOCK: (item, overrides) => {
fs.writeFile(`assets/minecraft/models/item/${item}.json`, JSON.stringify({
parent: "item/generated",
textures: {
"layer0": "block/" + item
},
overrides: overrides
}), "UTF-8");
},
GLASS_PANE: (item, overrides) => {
fs.writeFile(`assets/minecraft/models/item/${item}.json`, JSON.stringify({
Expand Down Expand Up @@ -454,9 +463,7 @@ module.exports = {
}
]

for (let face of faces) {
overrides.push(face);
}
overrides = faces.concat(overrides);

fs.writeFile(`assets/minecraft/models/item/${item}.json`, JSON.stringify({
parent: "item/generated",
Expand Down

0 comments on commit 58dd2aa

Please sign in to comment.