forked from Glitchfiend/BiomesOPlenty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworked Stringy Cobweb generation and added top connected state, pre…
…vented players from obtaining Stringy Cobwebs since manual placement is/was broken
- Loading branch information
Showing
15 changed files
with
173 additions
and
75 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
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
27 changes: 27 additions & 0 deletions
27
src/main/java/biomesoplenty/common/block/state/properties/ConnectedProperty.java
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,27 @@ | ||
package biomesoplenty.common.block.state.properties; | ||
|
||
import net.minecraft.util.StringRepresentable; | ||
|
||
public enum ConnectedProperty implements StringRepresentable { | ||
MIDDLE("middle"), | ||
BOTTOM("bottom"), | ||
TOP("top"); | ||
|
||
private final String name; | ||
|
||
ConnectedProperty(String p_61743_) { | ||
this.name = p_61743_; | ||
} | ||
|
||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
public String toString() { | ||
return this.name; | ||
} | ||
|
||
public String getSerializedName() { | ||
return this.name; | ||
} | ||
} |
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
20 changes: 12 additions & 8 deletions
20
src/main/resources/assets/biomesoplenty/blockstates/stringy_cobweb.json
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,28 +1,32 @@ | ||
{ | ||
"variants": { | ||
"facing=east,connected=false": [ | ||
"facing=east,connected=middle": [ | ||
{ "model": "biomesoplenty:block/stringy_cobweb", "y": 90 }, | ||
{ "model": "biomesoplenty:block/stringy_cobweb", "y": 90 }, | ||
{ "model": "biomesoplenty:block/stringy_cobweb_alt", "y": 90 } | ||
], | ||
"facing=south,connected=false": [ | ||
"facing=south,connected=middle": [ | ||
{ "model": "biomesoplenty:block/stringy_cobweb", "y": 180 }, | ||
{ "model": "biomesoplenty:block/stringy_cobweb", "y": 180 }, | ||
{ "model": "biomesoplenty:block/stringy_cobweb_alt", "y": 180 } | ||
], | ||
"facing=west,connected=false": [ | ||
"facing=west,connected=middle": [ | ||
{ "model": "biomesoplenty:block/stringy_cobweb", "y": 270 }, | ||
{ "model": "biomesoplenty:block/stringy_cobweb", "y": 270 }, | ||
{ "model": "biomesoplenty:block/stringy_cobweb_alt", "y": 270 } | ||
], | ||
"facing=north,connected=false": [ | ||
"facing=north,connected=middle": [ | ||
{ "model": "biomesoplenty:block/stringy_cobweb", "y": 0 }, | ||
{ "model": "biomesoplenty:block/stringy_cobweb", "y": 0 }, | ||
{ "model": "biomesoplenty:block/stringy_cobweb_alt", "y": 0 } | ||
], | ||
"facing=east,connected=true": { "model": "biomesoplenty:block/stringy_cobweb_connected", "y": 90 }, | ||
"facing=south,connected=true": { "model": "biomesoplenty:block/stringy_cobweb_connected", "y": 180 }, | ||
"facing=west,connected=true": { "model": "biomesoplenty:block/stringy_cobweb_connected", "y": 270 }, | ||
"facing=north,connected=true": { "model": "biomesoplenty:block/stringy_cobweb_connected", "y": 0 } | ||
"facing=east,connected=bottom": { "model": "biomesoplenty:block/stringy_cobweb_bottom", "y": 90 }, | ||
"facing=south,connected=bottom": { "model": "biomesoplenty:block/stringy_cobweb_bottom", "y": 180 }, | ||
"facing=west,connected=bottom": { "model": "biomesoplenty:block/stringy_cobweb_bottom", "y": 270 }, | ||
"facing=north,connected=bottom": { "model": "biomesoplenty:block/stringy_cobweb_bottom", "y": 0 }, | ||
"facing=east,connected=top": { "model": "biomesoplenty:block/stringy_cobweb_top", "y": 90 }, | ||
"facing=south,connected=top": { "model": "biomesoplenty:block/stringy_cobweb_top", "y": 180 }, | ||
"facing=west,connected=top": { "model": "biomesoplenty:block/stringy_cobweb_top", "y": 270 }, | ||
"facing=north,connected=top": { "model": "biomesoplenty:block/stringy_cobweb_top", "y": 0 } | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...odels/block/stringy_cobweb_connected.json → ...y/models/block/stringy_cobweb_bottom.json
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
29 changes: 29 additions & 0 deletions
29
src/main/resources/assets/biomesoplenty/models/block/stringy_cobweb_top.json
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,29 @@ | ||
{ | ||
"ambientocclusion": false, | ||
"textures": { | ||
"string": "biomesoplenty:block/stringy_cobweb_top", | ||
"particle": "biomesoplenty:block/stringy_cobweb_top" | ||
}, | ||
"elements": [ | ||
{ | ||
"from": [8, 0, 0], | ||
"to": [8, 16, 16], | ||
"rotation": {"angle": -22.5, "axis": "y", "origin": [8, 0, 16]}, | ||
"shade": false, | ||
"faces": { | ||
"east": {"uv": [0, 0, 16, 16], "texture": "#string"}, | ||
"west": {"uv": [16, 0, 0, 16], "texture": "#string"} | ||
} | ||
}, | ||
{ | ||
"from": [8, 0, 0], | ||
"to": [8, 16, 16], | ||
"rotation": {"angle": 22.5, "axis": "y", "origin": [8, 0, 16]}, | ||
"shade": false, | ||
"faces": { | ||
"east": {"uv": [0, 0, 16, 16], "texture": "#string"}, | ||
"west": {"uv": [16, 0, 0, 16], "texture": "#string"} | ||
} | ||
} | ||
] | ||
} |
File renamed without changes
Binary file added
BIN
+234 Bytes
src/main/resources/assets/biomesoplenty/textures/block/stringy_cobweb_top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.