Goldfuscate Help

Started by TheKralGame on

Topic category: Plugins and third-party tools

Last seen on 11:15, 21. Mar 2022
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Goldfuscate Help
Tue, 02/02/2021 - 15:07 (edited)

Procedure

 

https://i.imgur.com/oSSdr0p.png

 

My code is not working. Why? I have no error. (2020.5 1.15.2 Generator)

Edited by TheKralGame on Tue, 02/02/2021 - 15:07
Last seen on 19:58, 27. Sep 2024
Joined Aug 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you give the generated…
Tue, 02/02/2021 - 19:41

Can you give the generated code, please?

Last seen on 11:15, 21. Mar 2022
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
package com.thekralgame…
Wed, 02/03/2021 - 09:45
package com.thekralgame.emotesremaked.procedures;

import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.common.MinecraftForge;

import net.minecraft.entity.Entity;
import net.minecraft.client.renderer.entity.model.PlayerModel;

import java.util.Map;
import java.util.HashMap;

import com.thekralgame.emotesremaked.EmotesremakedModElements;

import com.mrcrayfish.obfuscate.client.event.PlayerModelEvent;

@EmotesremakedModElements.ModElement.Tag
public class ObfuscateAnimationProcedure extends EmotesremakedModElements.ModElement {
	public ObfuscateAnimationProcedure(EmotesremakedModElements instance) {
		super(instance, 3);
		MinecraftForge.EVENT_BUS.register(this);
	}

	public static void executeProcedure(Map<String, Object> dependencies) {
		if (dependencies.get("entity") == null) {
			if (!dependencies.containsKey("entity"))
				System.err.println("Failed to load dependency entity for procedure ObfuscateAnimation!");
			return;
		}
		if (dependencies.get("playerModel") == null) {
			if (!dependencies.containsKey("playerModel"))
				System.err.println("Failed to load dependency playerModel for procedure ObfuscateAnimation!");
			return;
		}
		Entity entity = (Entity) dependencies.get("entity");
		PlayerModel playerModel = (PlayerModel) dependencies.get("playerModel");
		if (((entity.getPersistentData().getBoolean("emote")) == (true))) {
			playerModel.bipedLeftArm.rotateAngleX = (float) 140;
		}
	}

	@SubscribeEvent
	public void setupPlayerRotations(PlayerModelEvent.SetupAngles.Post event) {
		Entity entity = event.getEntity();
		PlayerModel playerModel = event.getModelPlayer();
		Map<String, Object> dependencies = new HashMap<>();
		dependencies.put("entity", entity);
		dependencies.put("playerModel", playerModel);
		dependencies.put("event", event);
		this.executeProcedure(dependencies);
	}
}

 

Last seen on 11:15, 21. Mar 2022
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey, Goldorion please help
Thu, 02/04/2021 - 20:03

Hey, Goldorion please help