Skip to content

Commit dcf9f63

Browse files
committed
1.1.5
1 parent 60b8177 commit dcf9f63

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ org.gradle.daemon=false
55
org.gradle.parallel=true
66
org.gradle.caching=true
77

8-
mod_version=1.1.4
8+
mod_version=1.1.5
99

1010
mc_version=1.20.1
1111
mappings_version=2023.09.03

src/generated/resources/assets/nuclearcraft/models/block/multiblock/photon_concentrator.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"parent": "minecraft:block/cube_all",
3+
"render_type": "minecraft:cutout",
34
"textures": {
45
"all": "nuclearcraft:block/kugelblitz/photon_concentrator"
56
}

src/main/java/igentuman/nc/multiblock/kugelblitz/KugelblitzRegistration.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import net.minecraft.world.item.BlockItem;
1515
import net.minecraft.world.item.Item;
1616
import net.minecraft.world.level.block.Block;
17+
import net.minecraft.world.level.block.GlassBlock;
1718
import net.minecraft.world.level.block.SoundType;
1819
import net.minecraft.world.level.block.entity.BlockEntity;
1920
import net.minecraft.world.level.block.entity.BlockEntityType;
@@ -90,7 +91,11 @@ public static void init() {
9091
}
9192

9293
private static void registerSimpleBlock(String key) {
93-
KUGELBLITZ_BLOCKS.put(key, BLOCKS.register(key, () -> new Block(KUGELBLITZ_BLOCK_PROPERTIES)));
94+
if(key.contains("photon")) {
95+
KUGELBLITZ_BLOCKS.put(key, BLOCKS.register(key, () -> new GlassBlock(KUGELBLITZ_BLOCK_PROPERTIES)));
96+
} else {
97+
KUGELBLITZ_BLOCKS.put(key, BLOCKS.register(key, () -> new Block(KUGELBLITZ_BLOCK_PROPERTIES)));
98+
}
9499
KUGELBLITZ_ITEMS.put(key, fromMultiblock(KUGELBLITZ_BLOCKS.get(key)));
95100
ALL_NC_ITEMS.put(key, KUGELBLITZ_ITEMS.get(key));
96101
}
420 Bytes
Loading
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"animation": {
3+
"frametime": 1
4+
}
5+
}

0 commit comments

Comments
 (0)