your current location:首页 > news>Flame Magic Trimous Tutorial Disaster (L_ENDER 'S Cataclysm) Minecraft Game

Flame Magic Trimous Tutorial Disaster (L_ENDER 'S Cataclysm) Minecraft Game

2024-12-10 17:47:32|Myriagame |source:minecraft skins

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

This method is based on Mixin technology. It is recommended to learn and master the basic principles first.

First of all, the material of the Mixin Flame Case (Note that the flames and the flame magic cauldron are registered separately), and then modify the logic of rendering:

 Package com.hanz0.tellarisdlc.mixins;

Import l_nder.cataclysm.Items.IGNITIUM_ARMOR;

import com.hanz0.tellarisdlc.init.tellarisdlcmodmobeffects;

import network.minecraft.World.entity.entity;

import network.minecraft.World.entity.equipmentsLot;

import network.minecraft.World.entity.livingntity;

import network.minecraft.World.entity.player.player;

import network.minecraft.World.Itemstack;

import org.spongepowered.asm.mixin.mixin;

Import org.spongepowered.asm.mixin.overwrite;

@Mixin (Value = Ignitium_armor.class, Remap = False)

public class ignitium_armormixin {

/**

*@Author

*@Reason

*/

@Overwrite

Public String Getarmortexture (Itemstack Stack, Entity Entity, Equipmentslot Slot, String Type) {{{{{{{{{{{{{{{{{

If (entity instanceofl livingntity liv) {

If (liv.haseffect (StellarisDLCMODMOBEFFECTS.ighis_slash.get ())) {) {) {) {) {) {

Return "Cataclysm: Textures/Armor/Soul_ignitium_armor"+(slot == Equipmentslot.legs? "_Legs_soul.png": ".png"));

}}

Return "Cataclysm: Textures/Armor/Ignitium_armor"+(slot == Equipmentslot.legs? "_Legs.png": ".png"));

}

}

 Package com.hanz0.tellarisdlc.mixins;

Import l_nder.cataclysm.Items.IGNITIUM_LYTRA_CHESTPLATE;

import com.hanz0.tellarisdlc.init.tellarisdlcmodmobeffects;

import network.minecraft.World.entity.entity;

import network.minecraft.World.entity.equipmentsLot;

import network.minecraft.World.entity.livingntity;

import network.minecraft.World.Itemstack;

import org.spongepowered.asm.mixin.mixin;

Import org.spongepowered.asm.mixin.overwrite;

Import javax.annotation.nullain;

@Mixin (Value = Ignitium_lytra_chestplate.class, Remap = FALSE)

public class ignitium_lytra_chestplatemixin {{

/**

*@Author

*@Reason

*/

@Nullable

@Overwrite

Public String Getarmortexture (Itemstack Stack, Entity Entity, Equipmentslot Slot, String Type) {{{{{{{{{{{{{{{{{

If (entity instanceofl livingntity liv) {

If (liv.haseffect (StellarisDLCMODMOBEFFECTS.ighis_slash.get ())) {) {) {) {) {) {

Return "Cataclysm: Textures/Armor/Soul_ignitium_lytra_chestplate.png";

}

}

Return "Cataclysm: Textures/Armor/Ignitium_lytra_chestplate.png";

}

}

Here, the author uses the BUFF designed by his own as a judgment condition, and pay attention!The material of the flames of the fiery set has a front suffixes!Readers can modify the test by themselves.

Then make a new material bag. The path of the path is consistent with the disaster's flames.

After exporting the module and. After the material is accurate, the game will achieve the effect: