forked from chunky-dev/chunky
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some new blocks and update blocks from 23w12a, 23w13a and 23w16a (c…
…hunky-dev#1568) * Add new pottery patterns and handle renamed pottery pattern blocks and textures. * Add suspicious gravel. * Add sniffer egg. * Add cherry grove biome. * Update sniffer egg model for 23w13a. * Remove torchflower crop stage 2. * Add pink petals and a generic flowerbed model. * Rename shards to sherds.
- Loading branch information
Showing
10 changed files
with
726 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package se.llbit.chunky.block; | ||
|
||
import se.llbit.chunky.model.Flowerbed; | ||
import se.llbit.chunky.resources.Texture; | ||
|
||
public class PinkPetals extends AbstractModelBlock { | ||
private final String description; | ||
|
||
public PinkPetals(String name, int flowerAmount, String facing) { | ||
super(name, Texture.pinkPetals); | ||
this.description = String.format("facing=%s, flower_amount=%d", facing, flowerAmount); | ||
this.model = new Flowerbed(Texture.pinkPetals, Texture.pinkPetalsStem, flowerAmount, facing); | ||
} | ||
|
||
@Override | ||
public String description() { | ||
return this.description; | ||
} | ||
} |
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,32 @@ | ||
package se.llbit.chunky.block; | ||
|
||
import se.llbit.chunky.model.SnifferEggModel; | ||
import se.llbit.chunky.resources.Texture; | ||
|
||
public class SnifferEgg extends AbstractModelBlock { | ||
|
||
private final String description; | ||
|
||
public SnifferEgg(String name, int age) { | ||
super(name, getTopTexture(age)); | ||
this.description = "age=" + age; | ||
this.model = new SnifferEggModel(age); | ||
} | ||
|
||
@Override | ||
public String description() { | ||
return description; | ||
} | ||
|
||
private static Texture getTopTexture(int age) { | ||
switch (age) { | ||
case 1: | ||
return Texture.snifferEggSlightlyCrackedTop; | ||
case 2: | ||
return Texture.snifferEggVeryCrackedTop; | ||
default: | ||
case 0: | ||
return Texture.snifferEggNotCrackedTop; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.