your current location:首页 > news>[GP] GAME PRSE) Minecraft

[GP] GAME PRSE) Minecraft

2024-12-15 01:29:00|Myriagame |source:minecraft skins

Game Phase introduced phase systems for MC.

You can use Kubejs to define certain items and dimensions that belong to a certain stage, and you can access them when the player gets this stage.

The concept of Game Phase is derived from Game Stages and its affiliated.GP is more suitable for high versions and solves some bugs in GS and its subsidiaries.


Order

Show the stage that the player already has.The default is itself.

/GamePhase Info [player] 

Make players have this stage.

/GamePhase add

Make players lose this stage.

/GamePhase Remove  Phase> 

Make players lose all stages.

/GamePhase Clear 


Kubejs player

 // Make the player have Void AddPhase (Serverplayer Player, String Phase); Ing Phase); // Make players lose all stagesvoid ClearPhase (serverPlayer player); // Test whether the player has Boolean Hasphase (serverplayer player, String Phase); 


Kubejs item

 // Limit Void AdDITEMSRESTRICTION (String Phase, ITEMSTACK ... Item); // The setting phase of all items in the module Limit Void AdditeMMMODRSTR ICTION (String Phause, String... mod); // Limit Void RemoveiteMrestrictory (String Phase, Itemstack ... Item); // Cancel all the stages of Void RemoveIDRiction (String PH ASE, String ... MOD)


Kubejs dimension

 // Set the dimension of the dimension. Limit Void AdDDIMINSIONSINININININININININITRICTION (String Phase, ResourceLocation ... Dimension); // The dimension of the dimension is restricted to Void RemoveDim. ENSIONRICTION (String Phase, ResourceLocation ... Dimension)


Kubejs script example

 // Startup_scripts.postinit (e => {GamePhase.AddIntEmrestricTion ("Wool", "MineCraft: white_wool" ); GAMEPHASE.ADDDITEMMODRICTION ("AE", "AE2"); GAMEPHASE.ADDDDDIMENSIONSIRTRICTION ("End", "Minecraft: THE_END");}); 

Minecraft images

Minecraft images

Minecraft images

In addition to other statements, MCMOD.CN, all open public editing content uses the BY-NC-SA 3.0 protocol.