This is a Minecraft Datapack depending on MrClayfish's Gun Mod, which can help you create a shoot gameplay. The game mechanics mimicked CS:GO. You can buy guns and items before rounds start, and defeat the all enemies to win rounds.
WorldEdit (optional)
Put the MCGO datapack.zip file inside .minecraft/saves/{WORLD}/datapacks
Put the mcgo_test_map.schem file inside .minecraft/config/worldedit/schematics
run function
/function mcgo:pre_config
Chat Setting → Text Background Opacity → 0%
Minimap Setting(defaut Y) → Entity Radar Settings → Display Radar → off
The game consists of 5 closed spaces.
- Battleground:A large map where players fight against others
- Tactic Room:Two closed rooms where players can buy items and respawn once they died on the battleground
- Lobby:The initial place where players will go after entering the game and finishing a game
- Command Centor:The place where a redstone clock repeately execute game commands.
Players can right-click on the custom sign to interact with the game's dark oak sign has set up click events to perform functions
The advantage of this method compared with CommandBlock is that it can better select the execution object. The @s of the custom sign Click event is the player who right-clicked on the sign, while the @s of CommandBlock is itself, and it needs to point to the nearest player with @p, which inevitably points to the wrong object.
- build the battleground itself
- Set each start point of two side by standing on that point and run
/function mcgo:map/place_site_blue
/function mcgo:map/place_site_gold
- build your tactic on your own style
- Set each room point of two side by standing on that point and run
/function mcgo:map/place_room_blue
/function mcgo:map/place_room_gold
- run this function to get UI signs and place them
/function mcgo:utl/give_all_signs
- If you hang the gun on the item frame, run this function to fix that so that they are invisible and invulnerable except for destruction on creation mode
/function mcgo:utl/fix_itemframe
- build your lobby on your own style
- Set lobby point by standing on that point and run
/function mcgo:map/place_lobby
- build a hiden place where players can not get in
- clear a ground with size of 5x6 at the south of you
- run command below, it will build a redstone clock connected with three commandblocks
/function mcgo:map/build_gameloop
- sound effect in the server gameplay is not stable, sometimes players wound not hear that
- unbalanced economic system
Coming soon or you can make your own
CS:GO Economy Guide: How it Works, Bonuses, the Meta, and More