ShyamStrikeCore v4.3.2+
Gate Mode adds MCPVP-style animated fence gates to your StrikePractice arenas. When a fight starts, players spawn behind closed gates. After a short delay, the gates smoothly rise open. Once the grace period ends, the gates slam back down and lock for the rest of the fight.
Prerequisites
- ShyamStrikeCore v4.3.2 or later installed.
- StrikePractice Dev Build installed. You can get the latest dev build from the StrikePractice Discord server. ShyamStrikeCore is built for dev builds and works best with them.
- At least one arena already set up in StrikePractice.
- Your arena must have a doorway/opening where you want the fence gate to appear. Each spawn side needs its own gate.
- Permission:
shyamstrikecore.gate.setup(default: op)
Step 1 - Enable Gate Mode
Open:
plugins/ShyamStrikeCore/door-animation.ymlSet these two values:
YAML:
enabled: true
mode: "gate"
Then run:
/ssc reloadStep 2 - Get the Gate Selection Wand
Run:
/ssc gate wandThis gives you a Blaze Rod item called
You will use this to select the two corners of each gate doorway.
Step 3 - Select the Gate Corners
Each gate is a flat rectangular wall (like a doorway). You need to select the bottom-left and top-right corners of the doorway opening.
- LEFT-CLICK a block → Sets Corner 1 (bottom-left)
- RIGHT-CLICK a block → Sets Corner 2 (top-right)
Important Rules:
- ✓ Both corners MUST share the same X coordinate OR the same Z coordinate. The gate must be a flat wall, not diagonal.
- ✓ Select the actual blocks at the edges of the doorway opening.
- ✓ The height difference between corners determines the gate height.
Example (a 5-wide, 4-tall doorway facing North/South):
Code:
Corner 1 (bottom-left): X=100, Y=65, Z=200
Corner 2 (top-right): X=104, Y=68, Z=200
↑ Same Z = gate extends along X axis
Step 4 - Set the Eject Point and Save the Gate
After selecting both corners, walk to the ARENA FLOOR SIDE of the gate (the side where players fight, NOT the spawn room side).
Stand where you want ejected players to be teleported to, then run:
/ssc gate addgate <arena-name>Replace
<arena-name> with the ORIGINAL arena name from StrikePractice. This is important - use the base arena name, not the copy name.For example, if your arena is called
mcpvp in StrikePractice:/ssc gate addgate mcpvpHow to find your arena's original name:
- In StrikePractice, the original name is what appears before any copy suffix. For example,
Arenas_1:mcpvphas original namemcpvp. - You can check with
/battlearena list.
The system will confirm:
Code:
✔ Gate added to arena 'mcpvp'! (Total: 1)
Eject point set to your current position.
Axis: X, Outside direction: +
Step 5 - Add the Second Gate
StrikePractice arenas have 2 spawn positions (one per player), so you need a gate on each side. Now do the same thing for the other spawn side:
- Use the wand to select the two corners of the second doorway.
- Walk to the arena floor side of the second gate.
- Run:
/ssc gate addgate mcpvp
The system will say: (Total: 2)
Both gates are now configured!
Step 6 - Test It!
Start a duel on the configured arena. You should see:
- Fence gates appear at both doorways when the fight loads.
- After
delay_seconds(default: 5s), the gates rise up smoothly. - Players can walk through during the open period.
- After
close_delay_seconds(default: 3s), gates slam back down. - If any player somehow gets stuck behind a closed gate, they are automatically ejected to the eject point.
TIP: Enable debug mode for troubleshooting in
door-animation.yml:
YAML:
gate:
debug: true
Example Configuration
YAML:
enabled: true
mode: "gate"
delay_seconds: 5
fence_material: "OAK_FENCE"
gate:
close_delay_seconds: 3
eject_check_radius: 10
open_speed_ticks: 20
close_speed_ticks: 15
debug: false
sounds:
gate_spawn:
enabled: true
sound: "BLOCK_CHAIN_PLACE"
volume: 1.0
pitch: 0.5
gate_open:
enabled: true
sound: "BLOCK_CHAIN_BREAK"
volume: 1.0
pitch: 1.0
kits: []
All Commands
| Command | Description |
|---|---|
/ssc gate wand | Get the Gate Selection Wand |
/ssc gate addgate <arena> | Save a gate for an arena |
/ssc gate delete <arena> | Delete ALL gates for an arena |
/ssc gate list | List all configured gates |
/ssc gate reload | Reload gate data from files |
/ssc reload | Reload all ShyamStrikeCore configs |
Cloned Arenas (Multi-Copy Support)
If you use StrikePractice's arena cloning system (e.g.
Arenas_1, Arenas_2, Arenas_3...), you only need to set up gates ONCE on the original arena. The plugin automatically detects cloned worlds and spawns gate entities in all copies.For example, if you configure gates for arena
mcpvp in world Arenas, the gates will also appear in Arenas_1, Arenas_2, etc.Gate data is stored in:
plugins/ShyamStrikeCore/complex-door-data/
Quick Setup Summary
- Set
enabled: trueandmode: "gate"indoor-animation.yml /ssc reload/ssc gate wand- get the selection wand- Left-click bottom-left corner of doorway
- Right-click top-right corner of doorway
- Walk to the ARENA FLOOR side (not the spawn room side)
/ssc gate addgate <arena-name>- Do the same for the second spawn side gate
- Start a duel and enjoy!
Troubleshooting
Check these things:
- Is
enabled: trueindoor-animation.yml? - Is
mode: "gate"(not"cage")? - Did you run
/ssc reloadafter changing config? - Does the arena name match? Use the ORIGINAL name (before the copy suffix). Enable
debug: trueto see what names the plugin is looking for. - Is the kit in the whitelist (if you configured one)?
Your two corner selections are diagonal. Gates must be flat walls. Both corners need the same X value OR same Z value.
The eject point is set to YOUR position when you run the
/ssc gate addgate command. Make sure you're standing on the arena floor side, at the spot where ejected players should land. You can delete and re-add the gate to fix this.The copy worlds must follow the naming convention:
WorldName_1, WorldName_2, etc. (e.g. Arenas_1, Arenas_2). Run /ssc gate reload after creating new copies.Change
fence_material in door-animation.yml. Valid options:
Code:
OAK_FENCE, SPRUCE_FENCE, BIRCH_FENCE, JUNGLE_FENCE,
ACACIA_FENCE, DARK_OAK_FENCE, MANGROVE_FENCE, CHERRY_FENCE,
BAMBOO_FENCE, CRIMSON_FENCE, WARPED_FENCE, NETHER_BRICK_FENCE
Run:
This removes all gates for that arena. The fences will be cleaned up automatically on the next reload or server restart.
/ssc gate delete <arena-name>This removes all gates for that arena. The fences will be cleaned up automatically on the next reload or server restart.