minor changes to shriekers
This commit is contained in:
parent
96bb287ed6
commit
31ec45a92d
|
@ -10,6 +10,7 @@ import com.cursedcauldron.wildbackport.common.entities.warden.WardenSpawnHelper;
|
|||
import com.cursedcauldron.wildbackport.common.entities.warden.WardenSpawnTracker;
|
||||
import com.cursedcauldron.wildbackport.common.registry.WBBlockEntities;
|
||||
import com.cursedcauldron.wildbackport.common.registry.WBGameEvents;
|
||||
import com.cursedcauldron.wildbackport.common.registry.entity.WBEntities;
|
||||
import com.cursedcauldron.wildbackport.common.tag.WBGameEventTags;
|
||||
import com.mojang.serialization.Dynamic;
|
||||
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
|
||||
|
@ -176,7 +177,7 @@ public class SculkShriekerBlockEntity extends BlockEntity implements VibrationHa
|
|||
}
|
||||
|
||||
private boolean trySummonWarden(ServerLevel level) {
|
||||
return this.warningLevel >= 4 && WardenSpawnHelper.trySpawnMob(EntityType.IRON_GOLEM, MobSpawnType.TRIGGERED, level, this.getBlockPos(), 20, 5, 6).isPresent();
|
||||
return this.warningLevel >= 4 && WardenSpawnHelper.trySpawnMob(WBEntities.WARDEN.get(), MobSpawnType.TRIGGERED, level, this.getBlockPos(), 20, 5, 6).isPresent();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"variants": {
|
||||
"shrieking=false": {
|
||||
"can_summon=false": {
|
||||
"model": "wildbackport:block/sculk_shrieker"
|
||||
},
|
||||
"shrieking=true": {
|
||||
"model": "wildbackport:block/sculk_shrieker"
|
||||
"can_summon=true": {
|
||||
"model": "wildbackport:block/sculk_shrieker_can_summon"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"parent": "wildbackport:block/template_sculk_shrieker",
|
||||
"textures": {
|
||||
"bottom": "wildbackport:block/sculk_shrieker_bottom",
|
||||
"inner_top": "wildbackport:block/sculk_shrieker_can_summon_inner_top",
|
||||
"particle": "wildbackport:block/sculk_shrieker_bottom",
|
||||
"side": "wildbackport:block/sculk_shrieker_side",
|
||||
"top": "wildbackport:block/sculk_shrieker_top"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,77 @@
|
|||
{
|
||||
"parent": "block/block",
|
||||
"textures": {
|
||||
"bottom": "wildbackport:block/sculk_shrieker_bottom",
|
||||
"side": "wildbackport:block/sculk_shrieker_side",
|
||||
"top": "wildbackport:block/sculk_shrieker_top",
|
||||
"inner_top": "wildbackport:block/sculk_shrieker_inner_top",
|
||||
"particle": "wildbackport:block/sculk_shrieker_bottom"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"name": "bottom_slab",
|
||||
"from": [0, 0, 0],
|
||||
"to": [16, 8, 16],
|
||||
"faces": {
|
||||
"north": {"uv": [0, 8, 16, 16], "texture": "#side", "cullface": "north"},
|
||||
"east": {"uv": [0, 8, 16, 16], "texture": "#side", "cullface": "east"},
|
||||
"south": {"uv": [0, 8, 16, 16], "texture": "#side", "cullface": "south"},
|
||||
"west": {"uv": [0, 8, 16, 16], "texture": "#side", "cullface": "west"},
|
||||
"up": {"uv": [0, 0, 16, 16], "texture": "#inner_top"},
|
||||
"down": {"uv": [0, 0, 16, 16], "texture": "#bottom", "cullface": "down"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "top_slab",
|
||||
"from": [1, 8, 1],
|
||||
"to": [15, 15, 15],
|
||||
"faces": {
|
||||
"north": {"uv": [1, 1, 15, 8], "texture": "#side"},
|
||||
"east": {"uv": [1, 1, 15, 8], "texture": "#side"},
|
||||
"south": {"uv": [1, 1, 15, 8], "texture": "#side"},
|
||||
"west": {"uv": [1, 1, 15, 8], "texture": "#side"},
|
||||
"up": {"uv": [1, 1, 15, 15], "texture": "#top"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "up",
|
||||
"from": [1, 14.98, 1],
|
||||
"to": [15, 14.98, 15],
|
||||
"faces": {
|
||||
"down": {"uv": [1, 1, 15, 15], "texture": "#top"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "south",
|
||||
"from": [1, 8, 14.98],
|
||||
"to": [15, 15, 14.98],
|
||||
"faces": {
|
||||
"north": {"uv": [1, 1, 15, 8], "texture": "#side"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "north",
|
||||
"from": [1, 8, 1.02],
|
||||
"to": [15, 15, 1.02],
|
||||
"faces": {
|
||||
"south": {"uv": [1, 1, 15, 8], "texture": "#side"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "east",
|
||||
"from": [14.98, 8, 1],
|
||||
"to": [14.98, 15, 15],
|
||||
"faces": {
|
||||
"west": {"uv": [1, 1, 15, 8], "texture": "#side"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "west",
|
||||
"from": [1.02, 8, 1],
|
||||
"to": [1.02, 15, 15],
|
||||
"faces": {
|
||||
"east": {"uv": [1, 1, 15, 8], "texture": "#side"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 724 B |
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"animation": {
|
||||
"frametime": 3,
|
||||
"interpolate": true
|
||||
}
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 729 B |
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"animation": {
|
||||
"frametime": 3,
|
||||
"frametime": 6,
|
||||
"interpolate": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue