Firework shapes

This commit is contained in:
Camotoy 2024-04-29 01:03:18 -04:00
parent 88ae447fc6
commit a82a156419
No known key found for this signature in database
GPG key ID: 946F10203A155F92

View file

@ -92,10 +92,7 @@ public class FireworkRocketItem extends Item {
static NbtMap translateExplosionToBedrock(Fireworks.FireworkExplosion explosion) { static NbtMap translateExplosionToBedrock(Fireworks.FireworkExplosion explosion) {
NbtMapBuilder newExplosionData = NbtMap.builder(); NbtMapBuilder newExplosionData = NbtMap.builder();
// if (explosion.get("Type") != null) { newExplosionData.putByte("FireworkType", (byte) explosion.getShapeId());
// newExplosionData.put(new ByteTag("FireworkType", MathUtils.getNbtByte(explosion.get("Type").getValue())));
// }
//newExplosionData.putByte("FireworkType", explosion.get) //TODO???
int[] oldColors = explosion.getColors(); int[] oldColors = explosion.getColors();
byte[] colors = new byte[oldColors.length]; byte[] colors = new byte[oldColors.length];