your current location:首页 > news>The portal packet tutorial of the eternal gate (Gateway to Eternity) Minecraft Game

The portal packet tutorial of the eternal gate (Gateway to Eternity) Minecraft Game

2024-12-10 17:46:10|Myriagame |source:minecraft skins

This tutorial is set by the author's setting without permission.

In this tutorial, I use Kubejs combined with magic reform. Simple packets can be referred to.

Title: I use examples of zombie_gate_small in the version module for reference

 {{

"SIZE": "Small",

"COLOR": "#71955B",

"Waves": [[

{{

"Entities": [{{

"Entity": "Minecraft: Zombie"

},

{{

"Entity": "Minecraft: Zombie"

}

],,,

"Modifiers": [{{

"Attribute": "GENERIC.MAX_HEALTH", "

"Operation": "Multiply_total",

"Value": 0.33},

{{

"Attribute": "GENERIC.ARMOR",

"Operation": "Addition",

"Value": 2.5

},

{{

"Attribute": "GENERIC.ATTACK_DAMAGE",

"Operation": "Multiply_total",

"Value": 0.33

},

{{

"Attribute": "GENERIC.KNOCKBACK_RESISTANCE",

"Operation": "Addition",

"Value": 0.05

},

{{

"Attribute": "GENERIC.MOVEMENT_SPEED",

"Operation": "Multiply_total",

"Value": 0.05

}

],,,

"REWARDS": [{{

"Type": "Entity_loot",

"Entity": "Minecraft: Zombie", "Rolls": 6

}],,,

"Max_wave_time": 750, 750,

"Setup_time": 150

}

],,,

"CompleTion_XP": 250,#Here is the experience value obtained after the fight

"Spawn_range": 1#Here is the wave number

}

The above is part of it (for the tutorials, it is deleted). I will mainly generate new portal and reward modification.I will explain them one by one:

Article 1 SIZE: There are three types of large, medium and small in the module, of course, you can also do it yourself.

Article 2 COLOR: Color, I don’t know if you can change Baidu

Article 3 Waves: Monster settings, Entities can add numbers or adjust monsters by themselves.

Modifiers attribute modifier, reference module comes with on -demand add

Rewards reward, there are more this, I will list at the end.

Max_wave_time maximum existence time value

Setup_time Create time value

The last two are marked on it.

The next step is to set a reward:

In the rewards of Article 3, we write this way

 "rewards": [{{

"Type": "Stack",

"Stack": {{

"ID": "Minecraft: Stone",

"Count": 1, "tag": {}

}

}],

This needs to be used to describe the content in Stack, so that we can achieve customization.

If one thing is not enough, we will use it

 {{

"Type": "Stack_list",

"STACKS": [[

Itemstack

]

}

Multiple drops are implemented through multiple itemstack.

Of course, you can also execute the command at the end of this wave:

 {{

"Type": "Command",

"Command": "String"

}

String is the original instruction, without adding/.

That's it for the current tutorial, because the others have been written before trying it. After all, that's basically that can be used.

By the way, another important thing is how to create a new portal, that is, your data packet named is not the same as the module.