Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Update text on gui


GodOfYeti
 Share

Recommended Posts

I want to update the text on my gui when the "+" button is pressed

 

heres the gui code

package com.mcpixelplex.Gui;

import org.lwjgl.opengl.GL11;

import com.mcpixelplex.lib.RefStrings;

import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation;


public class TestGui extends GuiScreen {

Minecraft mc = Minecraft.getMinecraft();

GuiButton testButton;

public String[] levelDisplay = new String[]{"1","2","3","4","5","6","7","8","9","10"};
public int level = 0;

public final int xSizeOfTexture = 256;
public final int ySizeOfTexture = 156;

public TestGui(EntityPlayer player){

}

@Override
public void drawScreen(int x, int y, float f){

	int posX = (this.width - xSizeOfTexture) / 2;
	int posY = (this.height - ySizeOfTexture) / 2;

	GL11.glColor4f(1F, 1F, 1F, 1F);
	mc.renderEngine.bindTexture(new ResourceLocation(RefStrings.MODID, "/textures/gui/background.png"));

	drawDefaultBackground();
	drawTexturedModalRect(posX, posY, 0, 0, xSizeOfTexture, ySizeOfTexture);

	fontRendererObj.drawString("XP Block", posX + 20, posY + 5, 0x000000);		
	fontRendererObj.drawString(levelDisplay[level], xSizeOfTexture / 2, ySizeOfTexture / 2, 0x000000);	

	super.drawScreen(x, y, f);

}

public void initGui(){

	int xSize = 100;
	int ySize = 20;

	int posX = (xSizeOfTexture) / 2;
	int posY = (ySizeOfTexture) / 2;

	int bottomButton = (ySizeOfTexture - ySize - 2);

	buttonList.clear();
	buttonList.add(new GuiButton(0, posX + 40, bottomButton + 40, 100, 20, "no use"));
	buttonList.add(new GuiButton(1, posX + 40, posY + 40, 20, 20, "+"));

	super.initGui();
}

public void actionPreformed(GuiButton button){
	switch(button.id){
	case 0:
		break;
	case 1:
		if(level == 10){

		}else{
			level++;
		}
	}
}

@Override
public boolean doesGuiPauseGame(){
	return false;
}

}

Link to comment
Share on other sites

Spelling mistake on actionPerformed method your wrote "actionPreformed", should be Performed :P

 

 

P.S. This does not relate with your problem but, the super.initGui call is useless in the initGuid() method as it's super implementation has no body ;)

I require Java, both the coffee and the code :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I have a problem when trying to start a new world in minecraft, the game closes and in crash-report the following appears: ---- Minecraft Crash Report ---- // I bet Cylons wouldn't have this problem. Time: 27/09/22 02:16 PM Description: Saving entity NBT java.lang.NullPointerException: Saving entity NBT     at com._idrae.travelers_index.data.ItemChecklistStorage.writeNBT(ItemChecklistStorage.java:32) ~[?:1.16.4-1.0.2] {re:classloading}     at com._idrae.travelers_index.data.ItemChecklistStorage.writeNBT(ItemChecklistStorage.java:16) ~[?:1.16.4-1.0.2] {re:classloading}     at com._idrae.travelers_index.data.ItemChecklistProvider.serializeNBT(ItemChecklistProvider.java:29) ~[?:1.16.4-1.0.2] {re:classloading}     at com._idrae.travelers_index.data.ItemChecklistProvider.serializeNBT(ItemChecklistProvider.java:14) ~[?:1.16.4-1.0.2] {re:classloading}     at net.minecraftforge.common.capabilities.CapabilityDispatcher.serializeNBT(CapabilityDispatcher.java:113) ~[?:?] {re:classloading}     at net.minecraftforge.common.capabilities.CapabilityProvider.serializeCaps(CapabilityProvider.java:122) ~[?:?] {re:computing_frames,re:mixin,re:classloading}     at net.minecraft.entity.Entity.func_189511_e(Entity.java:1407) ~[?:?] {re:mixin,pl:accesstransformer:B,xf:fml:better_diving:Entity updateFluidOnEyes Transformer,xf:fml:better_diving:Entity getMaxAirSupply Transformer,xf:fml:better_diving:Entity updateFluidHeightAndDoFluidPushing Transformer,re:classloading,pl:accesstransformer:B,xf:fml:better_diving:Entity updateFluidOnEyes Transformer,xf:fml:better_diving:Entity getMaxAirSupply Transformer,xf:fml:better_diving:Entity updateFluidHeightAndDoFluidPushing Transformer,pl:mixin:APP:dynamiclightsreforged.mixins.json:EntityMixin,pl:mixin:APP:infernal-expansion.mixins.json:common.MixinEntity,pl:mixin:APP:randompatches.mixins.json:EntityMixin,pl:mixin:APP:betterendforge.mixins.json:EntityMixin,pl:mixin:APP:structure_gel.mixins.json:EntityMixin,pl:mixin:APP:cavesandcliffs.mixins.json:core.accessor.EntityAccessor,pl:mixin:APP:bmorph.mixins.json:MotionMultiplierMixin,pl:mixin:APP:entityculling.mixins.json:CullableMixin,pl:mixin:APP:abnormals_core.mixins.json:EntityMixin,pl:mixin:APP:upgrade_aquatic.mixins.json:EntityMixin,pl:mixin:APP:endergetic.mixins.json:EntityMixin,pl:mixin:APP:extraboats.mixins.json:EntityMixin,pl:mixin:APP:roadrunner.mixins.json:entity.collisions.EntityMixin,pl:mixin:APP:roadrunner.mixins.json:entity.fast_fluid_check.EntityMixin,pl:mixin:APP:roadrunner.mixins.json:entity.fast_suffocation_check.EntityMixin,pl:mixin:APP:roadrunner.mixins.json:entity.skip_fire_check.EntityMixin,pl:mixin:APP:roadrunner.mixins.json:entity.stream_entity_collisions_lazily.EntityMixin,pl:mixin:APP:mixins.artifacts.json:item.aquadashers.EntityMixin,pl:mixin:APP:mixins.artifacts.json:item.umbrella.EntityMixin,pl:mixin:APP:iceberg.mixins.json:EntityMixin,pl:mixin:APP:quark.mixins.json:EntityMixin,pl:mixin:APP:brutalbosses.mixins.json:EntityCapReader,pl:mixin:APP:brutalbosses.mixins.json:EntityRenderDataMixin,pl:mixin:APP:expandability.mixins.json:fluidcollision.EntityMixin,pl:mixin:APP:expandability.mixins.json:swimming.EntityMixin,pl:mixin:A}     at net.minecraft.advancements.criterion.NBTPredicate.func_196981_b(SourceFile:77) ~[?:?] {re:classloading}     at net.minecraft.advancements.criterion.NBTPredicate.func_193475_a(SourceFile:40) ~[?:?] {re:classloading}     at net.minecraft.advancements.criterion.EntityPredicate.func_217993_a(SourceFile:111) ~[?:?] {re:classloading}     at net.minecraft.loot.conditions.EntityHasProperty.test(SourceFile:40) ~[?:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.loot.conditions.EntityHasProperty.test(SourceFile:17) ~[?:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.advancements.criterion.EntityPredicate$AndPredicate.func_234588_a_(SourceFile:385) ~[?:?] {re:classloading}     at net.minecraft.advancements.criterion.AbstractCriterionTrigger.func_235959_a_(SourceFile:62) ~[?:?] {re:classloading}     at net.minecraft.advancements.criterion.InventoryChangeTrigger.func_234804_a_(SourceFile:54) ~[?:?] {re:classloading}     at net.minecraft.advancements.criterion.InventoryChangeTrigger.func_234803_a_(SourceFile:50) ~[?:?] {re:classloading}     at net.minecraft.entity.player.ServerPlayerEntity.func_71111_a(ServerPlayerEntity.java:943) ~[?:?] {re:computing_frames,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:betterendforge.mixins.json:ServerPlayerEntityMixin,pl:mixin:APP:endergetic.mixins.json:ServerPlayerEntityMixin,pl:mixin:APP:securitycraft.mixins.json:camera.ServerPlayerEntityMixin,pl:mixin:A}     at net.minecraft.inventory.container.Container.func_75142_b(Container.java:129) ~[?:?] {re:computing_frames,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:highlighter.mixins.json:ContainerMixin,pl:mixin:APP:babel.mixins.json:ContainerMixin,pl:mixin:A}     at net.minecraftforge.items.wrapper.PlayerMainInvWrapper.insertItem(PlayerMainInvWrapper.java:44) ~[?:?] {re:classloading}     at net.minecraftforge.items.ItemHandlerHelper.insertItem(ItemHandlerHelper.java:30) ~[?:?] {re:classloading}     at net.minecraftforge.items.ItemHandlerHelper.insertItemStacked(ItemHandlerHelper.java:97) ~[?:?] {re:classloading}     at net.minecraftforge.items.ItemHandlerHelper.giveItemToPlayer(ItemHandlerHelper.java:166) ~[?:?] {re:classloading}     at net.minecraftforge.items.ItemHandlerHelper.giveItemToPlayer(ItemHandlerHelper.java:139) ~[?:?] {re:classloading}     at com.github.alexthe666.alexsmobs.event.ServerEvents.onPlayerLoggedIn(ServerEvents.java:163) ~[?:1.12.1] {re:classloading}     at net.minecraftforge.eventbus.ASMEventHandler_4180_ServerEvents_onPlayerLoggedIn_PlayerLoggedInEvent.invoke(.dynamic) ~[?:?] {}     at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.eventbus.EventBus$$Lambda$3490/324352040.invoke(Unknown Source) ~[?:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?] {}     at net.minecraftforge.fml.hooks.BasicEventHooks.firePlayerLoggedIn(BasicEventHooks.java:30) ~[?:?] {re:classloading}     at net.minecraft.server.management.PlayerList.func_72355_a(PlayerList.java:232) ~[?:?] {re:mixin,xf:fml:xaerominimap:xaero_playerlist_sendworldinfo,xf:fml:xaeroworldmap:xaero_wm_playerlist_sendworldinfo,re:classloading,xf:fml:xaerominimap:xaero_playerlist_sendworldinfo,xf:fml:xaeroworldmap:xaero_wm_playerlist_sendworldinfo,pl:mixin:APP:betterendforge.mixins.json:PlayerListMixin,pl:mixin:APP:blue_skies.mixins.json:PlayerListMixin,pl:mixin:APP:endergetic.mixins.json:PlayerListMixin,pl:mixin:APP:enhancedcelestials.mixins.json:MixinPlayerList,pl:mixin:APP:securitycraft.mixins.json:camera.PlayerListMixin,pl:mixin:A}     at net.minecraft.network.login.ServerLoginNetHandler.func_147326_c(ServerLoginNetHandler.java:118) ~[?:?] {re:mixin,re:classloading,pl:mixin:APP:randompatches.mixins.json:timeouts.ServerLoginNetHandlerMixin,pl:mixin:APP:kryptonreforged.mixins.json:network.shared.pipeline.encryption.ServerLoginNetworkHandlerMixin,pl:mixin:A}     at net.minecraft.network.login.ServerLoginNetHandler.func_73660_a(ServerLoginNetHandler.java:65) ~[?:?] {re:mixin,re:classloading,pl:mixin:APP:randompatches.mixins.json:timeouts.ServerLoginNetHandlerMixin,pl:mixin:APP:kryptonreforged.mixins.json:network.shared.pipeline.encryption.ServerLoginNetworkHandlerMixin,pl:mixin:A}     at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:222) ~[?:?] {re:mixin,re:classloading,pl:mixin:APP:kryptonreforged.mixins.json:network.shared.flushconsolidation.ClientConnectionMixin,pl:mixin:APP:kryptonreforged.mixins.json:network.shared.pipeline.compression.ClientConnectionMixin,pl:mixin:APP:kryptonreforged.mixins.json:network.shared.pipeline.encryption.ClientConnectionMixin,pl:mixin:A}     at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:134) ~[?:?] {re:classloading}     at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:865) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:betterendforge.mixins.json:MinecraftServerMixin,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:APP:paxi.mixins.json:MixinMinecraftServer,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:APP:mixin.terraforged.json:common.MixinMinecraftServer,pl:mixin:APP:mixins.shrines.json:MixinMinecraftServer,pl:mixin:APP:roadrunner.mixins.json:world.light_batching.MinecraftServerMixin,pl:mixin:A}     at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:787) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:betterendforge.mixins.json:MinecraftServerMixin,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:APP:paxi.mixins.json:MixinMinecraftServer,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:APP:mixin.terraforged.json:common.MixinMinecraftServer,pl:mixin:APP:mixins.shrines.json:MixinMinecraftServer,pl:mixin:APP:roadrunner.mixins.json:world.light_batching.MinecraftServerMixin,pl:mixin:A}     at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:78) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:642) [?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:betterendforge.mixins.json:MinecraftServerMixin,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:APP:paxi.mixins.json:MixinMinecraftServer,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:APP:mixin.terraforged.json:common.MixinMinecraftServer,pl:mixin:APP:mixins.shrines.json:MixinMinecraftServer,pl:mixin:APP:roadrunner.mixins.json:world.light_batching.MinecraftServerMixin,pl:mixin:A}     at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) [?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:betterendforge.mixins.json:MinecraftServerMixin,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:APP:paxi.mixins.json:MixinMinecraftServer,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:APP:mixin.terraforged.json:common.MixinMinecraftServer,pl:mixin:APP:mixins.shrines.json:MixinMinecraftServer,pl:mixin:APP:roadrunner.mixins.json:world.light_batching.MinecraftServerMixin,pl:mixin:A}     at net.minecraft.server.MinecraftServer$$Lambda$47535/651941332.run(Unknown Source) [?:?] {}     at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Server thread Stacktrace: at com._idrae.travelers_index.data.ItemChecklistStorage.writeNBT(ItemChecklistStorage.java:32) ~[?:1.16.4-1.0.2] {re:classloading} at com._idrae.travelers_index.data.ItemChecklistStorage.writeNBT(ItemChecklistStorage.java:16) ~[?:1.16.4-1.0.2] {re:classloading} at com._idrae.travelers_index.data.ItemChecklistProvider.serializeNBT(ItemChecklistProvider.java:29) ~[? :1.16.4-1.0.2] {re:classloading} en com._idrae.travelers_index.data.ItemChecklistProvider.serializeNBT(ItemChecklistProvider.java:14) ~[?:1.16.4-1.0.2] {re:classloading} en net.minecraftforge.common.capabilities.CapabilityDispatcher.serializeNBT(CapabilityDispatcher.java:113) ~[?:?] {re:classloading} en net.minecraftforge.common.capabilities.CapabilityProvider.serializeCaps(CapabilityProvider.java:122) ~[?:?] {re:computing_frames,re:mixin,re:classloading} -- Entidad que se está guardando -- Detalles: Tipo de entidad: minecraft:player (net.minecraft.entity.player.ServerPlayerEntity) ID de entidad: 468 Nombre de entidad: RavenLP Ubicación exacta de la entidad: 285.50, 63.00, -217.50 Ubicación del bloque de la entidad: Mundo: (285,63,-218), Fragmento: (en 13,3,6 en 17,-14; contiene bloques 272,0,-224 a 287,255,-209), Región: (0,-1; contiene trozos 0,-32 a 31,-1, bloques 0,0,-512 a 511,255,-1) Impulso de la entidad: 0.00, 0.00, 0.00 Pasajeros de la entidad: [] Vehículo de la entidad: ~~ERROR~~ NullPointerException: null Stacktrace: at net.minecraft.entity.Entity.func_189511_e(Entity.java:1407) ~[?:?] {re:mixin,pl:accesstransformer:B,xf:fml:better_diving:Entity updateFluidOnEyes Transformer,xf:fml:better_diving:Entity getMaxAirSupply Transformer,xf:fml:better_diving:Entity updateFluidHeightAndDoFluidPushing Transformer,re:classloading,pl:accesstransformer:B,xf:fml:better_diving:Entity updateFluidOnEyes Transformer,xf:fml:better_diving:Entity getMaxAirSupply Transformer,xf:fml:better_diving:Entity updateFluidHeightAndDoFluidPushing Transformer,pl:mixin:APP :d ynamiclightsreforged.mixins.json:EntityMixin,pl:mixin:APP:infernal-expansion.mixins.json:common. MixinEntity,pl:mixin:APP:randompatches.mixins.json:EntityMixin,pl:mixin:APP:betterendforge.mixins.json:EntityMixin,pl:mixin:APP:structure_gel.mixins.json:EntityMixin,pl:mixin:APP:cavesandcliffs.mixins.json:core.accessor.EntityAccessor,pl:mixin:APP:bmorph.mixins.json:MotionMultiplierMixin,pl:mixin:APP:entityculling.mixins.json:CullableMixin,pl:mixin:APP:abnormals_core.mixins.json:EntityMixin,pl:mixin:APP:upgrade_aquatic.mixins.json:EntityMixin,pl: mixin:APP:endergetic.mixins.json:EntityMixin,pl:mixin:APP:extraboats.mixins.json:EntityMixin,pl:mixin:APP:roadrunner.mixins.json:entity.collisions.EntityMixin,pl:mixin:APP:roadrunner.mixins.json:entity.fast_fluid_check. EntityMixin,pl:mixin:APP:roadrunner.mixins.json:entity.fast_suffocation_check. EntityMixin,pl:mixin:APP:roadrunner.mixins.json:entity.skip_fire_check. EntityMixin,pl:mixin:APP:roadrunner.mixins.json:entity.stream_entity_collisions_lazily. EntityMixin,pl:mixin:APP:mixins.artifacts.json:item.aquadashers.EntityMixin,pl:mixin:APP:mixins.artifacts.json:item.umbrella.EntityMixin,pl:mixin:APP:iceberg.mixins.json:EntityMixin,pl:mixin:APP:quark.mixins.json:EntityMixin,pl:mixin:APP:brutalbosses.mixins.json:EntityCapReader,pl:mixin:APP:brutalbosses.mixins.json:EntityRenderDataMixin,pl:mixin:APP:expandability.mixins.json:fluidcollision. EntityMixin,pl:mixin:APP:expandability.mixins.json:swimming. EntityMixin,pl:mixin:A} en net.minecraft.advancements.criterion.NBTPredicate.func_196981_b(SourceFile:77) ~[?:?] {re:classloading} en net.minecraft.advancements.criterion.NBTPredicate.func_193475_a(SourceFile:40) ~[?:?] {re:classloading} en net.minecraft.advancements.criterion.EntityPredicate.func_217993_a(SourceFile:111) ~[?:?] {re:classloading} en net.minecraft.loot.conditions.EntityHasProperty.test(SourceFile:40) ~[?:?] {re:classloading,pl:accesstransformer:B} en net.minecraft.loot.conditions.EntityHasProperty.test(SourceFile:17) ~[?:?] {re:classloading,pl:accesstransformer:B} en net.minecraft.advancements.criterion.EntityPredicate$AndPredicate.func_234588_a_(SourceFile:385) ~[?:?] {re:classloading} en net.minecraft.advancements.criterion.AbstractCriterionTrigger.func_235959_a_(SourceFile:62) ~[?:?] {re:classloading} en net.minecraft.advancements.criterion.InventoryChangeTrigger.func_234804_a_(SourceFile:54) ~[?:?] {re:classloading} en net.minecraft.advancements.criterion.InventoryChangeTrigger.func_234803_a_(SourceFile:50) ~[?:?] {re:classloading} en net.minecraft.entity.player.ServerPlayerEntity.func_71111_a(ServerPlayerEntity.java:943) ~[?:?] {re:computing_frames,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:betterendforge.mixins.json:ServerPlayerEntityMixin,pl:mixin:APP:endergetic.mixins.json:ServerPlayerEntityMixin,pl:mixin:APP:securitycraft.mixins.json:camera. ServerPlayerEntityMixin,pl:mixin:A} en net.minecraft.inventory.container.Container.func_75142_b(Container.java:129) ~[?:?] {re:computing_frames,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:highlighter.mixins.json:ContainerMixin,pl:mixin:APP:babel.mixins.json:ContainerMixin,pl:mixin:A} en net.minecraftforge.items.wrapper.PlayerMainInvWrapper.insertItem(PlayerMainInvWrapper.java:44) ~[?:?] {re:classloading} en net.minecraftforge.items.ItemHandlerHelper.insertItem(ItemHandlerHelper.java:30) ~[?:?] {re:classloading} en net.minecraftforge.items.ItemHandlerHelper.insertItemStacked(ItemHandlerHelper.java:97) ~[?:?] {re:classloading} en net.minecraftforge.items.ItemHandlerHelper.giveItemToPlayer(ItemHandlerHelper.java:166) ~[?:?] {re:classloading} en net.minecraftforge.items.ItemHandlerHelper.giveItemToPlayer(ItemHandlerHelper.java:139) ~[?:?] {re:classloading} en com.github.alexthe666.alexsmobs.event.ServerEvents.onPlayerLoggedIn(ServerEvents.java:163) ~[?:1.12.1] {re:classloading} en net.minecraftforge.eventbus.ASMEventHandler_4180_ServerEvents_onPlayerLoggedIn_PlayerLoggedInEvent.invoke(.dynamic) ~[?:?] {} en net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-4.0.0.jar:?] {} en net.minecraftforge.eventbus.EventBus$$Lambda$3490/324352040.invoke(Fuente desconocida) ~[?:?] {} en net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?] {} en net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?] {} en net.minecraftforge.fml.hooks.BasicEventHooks.firePlayerLoggedIn(BasicEventHooks.java:30) ~[?:?] {re:classloading} en net.minecraft.server.management.PlayerList.func_72355_a(PlayerList.java:232) ~[?:?] {re:mixin,xf:fml:xaerominimap:xaero_playerlist_sendworldinfo,xf:fml:xaeroworldmap:xaero_wm_playerlist_sendworldinfo,re:classloading,xf:fml:xaerominimap:xaero_playerlist_sendworldinfo,xf:fml:xaeroworldmap:xaero_wm_playerlist_sendworldinfo,pl:mixin:APP:betterendforge.mixins.json:PlayerListMixin,pl:mixin:APP:blue_skies.mixins.json:PlayerListMixin,pl:mixin:APP:endergetic.mixins.json:PlayerListMixin,pl:mixin:APP:enhancedcelestials.mixins.json: MixinPlayerList,pl:mixin:APP:securitycraft.mixins.json:camera. PlayerListMixin,pl:mixin:A} en net.minecraft.network.login.ServerLoginNetHandler.func_147326_c(ServerLoginNetHandler.java:118) ~[?:?] {re:mixin,re:classloading,pl:mixin:APP:randompatches.mixins.json:timeouts. ServerLoginNetHandlerMixin,pl:mixin:APP:kryptonreforged.mixins.json:network.shared.pipeline.encryption.ServerLoginNetworkHandlerMixin,pl:mixin:A} at net.minecraft.network.login.ServerLoginNetHandler.func_73660_a(ServerLoginNetHandler.java:65) ~[?:?] {re:mixin,re:classloading,pl:mixin:APP:randompatches.mixins.json:timeouts. ServerLoginNetHandlerMixin,pl:mixin:APP:kryptonreforged.mixins.json:network.shared.pipeline.encryption.ServerLoginNetworkHandlerMixin,pl:mixin:A} at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:222) ~[?:?] {re:mixin,re:classloading,pl:mixin:APP:kryptonreforged.mixins.json:network.shared.flushconsolidation.ClientConnectionMixin,pl:mixin:APP:kryptonreforged.mixins.json:network.shared.pipeline.compression.ClientConnectionMixin,pl:mixin:APP:kryptonreforged.mixins.json:network.shared.pipeline.encryption.ClientConnectionMixin,pl:mixin:A} en net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:134) ~[?:?] {re:classloading} en net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:865) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:betterendforge.mixins.json:MinecraftServerMixin,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:APP:paxi.mixins.json:MixinMinecraftServer,pl:mixin:APP:byg.mixins.json:server. MixinMinecraftServer,pl:mixin:APP:mixin.terraforged.json:common. MixinMinecraftServer,pl:mixin:APP:mixins.shrines.json:MixinMinecraftServer,pl:mixin:APP:roadrunner.mixins.json:world.light_batching. MinecraftServerMixin,pl:mixin:A} en net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:787) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:betterendforge.mixins.json:MinecraftServerMixin,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:APP:paxi.mixins.json:MixinMinecraftServer,pl:mixin:APP:byg.mixins.json:server. MixinMinecraftServer,pl:mixin:APP:mixin.terraforged.json:common. MixinMinecraftServer,pl:mixin:APP:mixins.shrines.json:MixinMinecraftServer,pl:mixin:APP:roadrunner.mixins.json:world.light_batching. MinecraftServerMixin,pl:mixin:A} en net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:78) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} en net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:642) [?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:betterendforge.mixins.json:MinecraftServerMixin,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:APP:paxi.mixins.json:MixinMinecraftServer,pl:mixin:APP:byg.mixins.json:server. MixinMinecraftServer,pl:mixin:APP:mixin.terraforged.json:common. MixinMinecraftServer,pl:mixin:APP:mixins.shrines.json:MixinMinecraftServer,pl:mixin:APP:roadrunner.mixins.json:world.light_batching. MinecraftServerMixin,pl:mixin:A} en net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) [?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:betterendforge.mixins.json:MinecraftServerMixin,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:APP:paxi.mixins.json:MixinMinecraftServer,pl:mixin:APP:byg.mixins.json:server. MixinMinecraftServer,pl:mixin:APP:mixin.terraforged.json:common. MixinMinecraftServer,pl:mixin:APP:mixins.shrines.json:MixinMinecraftServer,pl:mixin:APP:roadrunner.mixins.json:world.light_batching. MinecraftServerMixin,pl:mixin:A} en net.minecraft.server.MinecraftServer$$Lambda$47535/651941332.run(Fuente desconocida) [?:?] {} en java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] {}  
    • this is the log file  https://controlc.com/13758ad0
    • https://pastebin.com/YAHBuAMu I try to start a modpack server I follow to instructions but this happened. Please help, thx 
    • Jump Boost is a potion effect, it doesn't apply to items. The correct way to do this is to add your own net.minecraft.world.entity.ai.attributes.Attribute for this (unfortunately for you, Jump Boost doesn't use an Attribute). There is one for horse jumping.   The quick and dirty alternate is to subscribe to LivingEquipmentChangeEvent and add/remove the mob effect yourself.  
    • mob effects (potion effects) apply to entities, you don't apply them to items. you can add enchantments using the enchant_with_levels loot item function if you want examples just look at the loot tables in the minecraft jar
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.