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

[1.7.2] - No damage when spawning lightning


AppliedOnce
 Share

Recommended Posts

Hi, I am trying to make an item spawn lightning, and it all works just fine. But where the lightning spawns it doesn't set anything on fire, neither does it deal damage to entities it hits.

What am I doing wrong? Before it didn't spawn the lightning but spawned fire now it is the opposite.

 

Here is the code:

public class ItemTalisman extends ItemPC {

public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) {

	if (!world.isRemote) {

		return itemStack;
	}

	if (ExtendedPlayer.get(player).getCulture() >= 100) {

		ExtendedPlayer.get(player).consumeCulture(100);

		// player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 2400, 0, false));

		MovingObjectPosition objectMouseOver;
		Minecraft mc = Minecraft.getMinecraft();

		objectMouseOver = mc.thePlayer.rayTrace(300, 1);

		if (objectMouseOver != null && objectMouseOver.typeOfHit == MovingObjectType.BLOCK) {

			int i = objectMouseOver.blockX;
			int j = objectMouseOver.blockY;
			int k = objectMouseOver.blockZ;
			world.spawnEntityInWorld(new EntityLightningBolt(world, i, j, k));
			player.addChatComponentMessage(new ChatComponentText("Pew! X: " + i + ", Y: " + j + ", Z: " + k));
		}

	} else {

		player.addChatComponentMessage(new ChatComponentText("You don't have enough culture."));
		ExtendedPlayer.get(player).setCulture(100);
	}

	return itemStack;
}
}

Link to comment
Share on other sites

Hmm...

@Override
public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer Entityplayer) {

Vec3 look = Entityplayer.getLookVec();
MovingObjectPosition Coord = Entityplayer.rayTrace(300, 1);
if(Coord != null && Coord.typeOfHit == EnumMovingObjectType.TILE){
         EntityLightningBolt Lightning = new EntityLightningBolt(world, 1, 1, 1);
         Lightning.setPosition(Coord.blockX,Coord.blockY,Coord.blockZ);
         world.spawnEntityInWorld(Lightning);
  }
return itemStack;

Link to comment
Share on other sites

You have to spawn lightning on server and client. On the server because the damage, and the client to have the rendering :)

 

So, you just have to remove: if(!world.isRemote) { return itemstack }

Thanks that helped alot, I just had to change some stuff so that it doesn't print stuff when it shouldn't.

 

For people here is the code that worked:


public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) {

 

if (ExtendedPlayer.get(player).getCulture() >= 100) {

 

ExtendedPlayer.get(player).consumeCulture(100);

 

// player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 2400, 0, false));

 

MovingObjectPosition objectMouseOver;

Minecraft mc = Minecraft.getMinecraft();

 

objectMouseOver = mc.thePlayer.rayTrace(300, 1);

 

if (objectMouseOver != null && objectMouseOver.typeOfHit == MovingObjectType.BLOCK) {

 

int i = objectMouseOver.blockX;

int j = objectMouseOver.blockY;

int k = objectMouseOver.blockZ;

world.spawnEntityInWorld(new EntityLightningBolt(world, i, j, k));

if (world.isRemote) {

player.addChatComponentMessage(new ChatComponentText("Pew! X: " + i + ", Y: " + j + ", Z: " + k));

}

}

 

} else {

 

if (world.isRemote) {

player.addChatComponentMessage(new ChatComponentText("You don't have enough culture."));

}

ExtendedPlayer.get(player).setCulture(100);

}

 

return itemStack;

}

Link to comment
Share on other sites

Hi

 

I reckon when you try to run this on a server there's a good chance it will crash.  In fact, in might occasionally crash on single player as well when you get unlucky (the client thread and the server thread try to both access Minecraft object at the same time)

 

         Minecraft mc = Minecraft.getMinecraft();

 

This only exists on the client side and if you try to access it from the server side it will cause problems

 

MinecraftServer.getServer is what you need on the server side.

Which will leave you back with your "feet height vs eye height" problem from before.  You can correct for that by adding the difference on the server, 1.6 or something like that (use your println(ypos) from before to figure it out exactly...)

 

-TGG

 

Link to comment
Share on other sites

Hi

 

I reckon when you try to run this on a server there's a good chance it will crash.  In fact, in might occasionally crash on single player as well when you get unlucky (the client thread and the server thread try to both access Minecraft object at the same time)

 

         Minecraft mc = Minecraft.getMinecraft();

 

This only exists on the client side and if you try to access it from the server side it will cause problems

 

MinecraftServer.getServer is what you need on the server side.

Which will leave you back with your "feet height vs eye height" problem from before.  You can correct for that by adding the difference on the server, 1.6 or something like that (use your println(ypos) from before to figure it out exactly...)

 

-TGG

I found something that I think is a really bad fix. But at least it works:

 

	public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) {

	if (ExtendedPlayer.get(player).getCulture() >= 100) {

		ExtendedPlayer.get(player).consumeCulture(100);

		player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 2400, 0, false));

		MovingObjectPosition objectMouseOver;

		player.eyeHeight += 1.6F;

		objectMouseOver = player.rayTrace(300, 1);

		player.eyeHeight -= 1.6F;

		Vec3 vec3 = player.getPosition(1);
		System.out.println((world.isRemote ? "client y=" : "server y =") + vec3.yCoord);

		if (objectMouseOver != null && objectMouseOver.typeOfHit == MovingObjectType.BLOCK) {

			int i = objectMouseOver.blockX;
			int j = objectMouseOver.blockY;
			int k = objectMouseOver.blockZ;

			world.spawnEntityInWorld(new EntityLightningBolt(world, i, j, k));
		}

	} else {

		if (world.isRemote) {

			player.addChatComponentMessage(new ChatComponentText("You don't have enough culture."));
		}

		ExtendedPlayer.get(player).setCulture(100);
	}

	return itemStack;
}

 

This didn't seem to work that well...

Link to comment
Share on other sites

Hi

 

I'd suggest using the code out of rayTrace instead of fiddling with the player object (and actually I don't think modifying player.eyeHeight will work, rayTrace doesn't seem to use it)

 

final double EYE_HEIGHT = 1.6;  // this is a guess... need to confirm it

        Vec3 startPos = this.getPosition(partialTick);
if (!world.isRemote) startPos = startPos.addVector(0, EYE_HEIGHT, 0);
        Vec3 look = this.getLook(partialTick);
        Vec3 endPos = vec3.addVector(look.xCoord * reachDistance, look.yCoord * reachDistance, look.zCoord * reachDistance);
MovingObjectPosition mop = world.func_147447_a(startPos, endPos, false, false, true);

System.out.println("HitVec:[" + mop.hitVec.xCoord + ", " + mop.hitVec.yCoord + ", " + mop.hitVec.zCoord + "]");

 

-TGG

Link to comment
Share on other sites

Hi

 

I'd suggest using the code out of rayTrace instead of fiddling with the player object (and actually I don't think modifying player.eyeHeight will work, rayTrace doesn't seem to use it)

 

final double EYE_HEIGHT = 1.6;  // this is a guess... need to confirm it

        Vec3 startPos = this.getPosition(partialTick);
if (!world.isRemote) startPos = startPos.addVector(0, EYE_HEIGHT, 0);
        Vec3 look = this.getLook(partialTick);
        Vec3 endPos = vec3.addVector(look.xCoord * reachDistance, look.yCoord * reachDistance, look.zCoord * reachDistance);
MovingObjectPosition mop = world.func_147447_a(startPos, endPos, false, false, true);

System.out.println("HitVec:[" + mop.hitVec.xCoord + ", " + mop.hitVec.yCoord + ", " + mop.hitVec.zCoord + "]");

 

-TGG

Thanks alot, this is exactly what I need. The only problem with something like this (at least when I tried it out now) it gives me a total random y and z coordinate as well as it only change when moving around and not when I look around using the mouse.

 

Sorry to bother you this much, guess I went some over my limit here.

Link to comment
Share on other sites

No worries :-)

 

I tried this code in 1.6.4 and it seems to work fine:

 

 @Override
  public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) {

    if (world.isRemote) {
      System.out.println("Client: player y= " + player.getPosition(1.0F).yCoord);
    } else {
      System.out.println("Server: player y=" + player.getPosition(1.0F).yCoord);
    }

    final double EYE_HEIGHT = 1.62;  // this is a guess... need to confirm it
    final double reachDistance = 300;
    Vec3 startPos = player.getPosition(1.0F);
    if (!world.isRemote) startPos = startPos.addVector(0, EYE_HEIGHT, 0);
    Vec3 look = player.getLook(1.0F);
    Vec3 endPos = startPos.addVector(look.xCoord * reachDistance, look.yCoord * reachDistance, look.zCoord * reachDistance);
    MovingObjectPosition mop = world.clip(startPos, endPos);

    System.out.println((world.isRemote ? "Client-" : "Server-") + " HitVec:[" + mop.hitVec.xCoord + ", " + mop.hitVec.yCoord + ", " + mop.hitVec.zCoord + "]");

    if (mop != null && mop.typeOfHit == EnumMovingObjectType.TILE) {

      int i = mop.blockX;
      int j = mop.blockY;
      int k = mop.blockZ;
      System.out.println((world.isRemote ? "Client-" : "Server-") + "HitBlock:[" + i + ", " + j + ", " + k + "]");

      world.spawnEntityInWorld(new EntityLightningBolt(world, i, j, k));
    }


    return itemStack;
  }

 

Right-click gives the following output, i.e. client and server hitvec and hitblock match, and are equal to where my cursor is pointing

 

2014-03-10 10:22:10 [iNFO] [sTDOUT] Client: player y= 5.620000004768372
2014-03-10 10:22:10 [iNFO] [sTDOUT] Client- HitVec:[-809.4795666515165, 4.0, -1480.5625485323928]
2014-03-10 10:22:10 [iNFO] [sTDOUT] Client-HitBlock:[-810, 3, -1481]
2014-03-10 10:22:10 [iNFO] [sTDOUT] Server: player y=4.0
2014-03-10 10:22:10 [iNFO] [sTDOUT] Server- HitVec:[-809.4795666515766, 4.0, -1480.5625485380956]
2014-03-10 10:22:10 [iNFO] [sTDOUT] Server-HitBlock:[-810, 3, -1481]

 

If I move my mouse to move the look to the next block along in the x direction, it gives the expected result:

2014-03-10 10:23:17 [iNFO] [sTDOUT] Client: player y= 5.620000004768372
2014-03-10 10:23:17 [iNFO] [sTDOUT] Client- HitVec:[-810.474262374682, 4.0, -1480.5878117751354]
2014-03-10 10:23:17 [iNFO] [sTDOUT] Client-HitBlock:[-811, 3, -1481]
2014-03-10 10:23:17 [iNFO] [sTDOUT] Server: player y=4.0
2014-03-10 10:23:17 [iNFO] [sTDOUT] Server- HitVec:[-810.4742623718143, 4.0, -1480.587811780764]
2014-03-10 10:23:17 [iNFO] [sTDOUT] Server-HitBlock:[-811, 3, -1481]

 

-TGG

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

    • [14:10:39] [main/INFO]: ModLauncher running: args [--launchTarget, forgeserver, --fml.forgeVersion, 39.0.75, --fml.mcVersion, 1.18.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20211210.034407] [14:10:39] [main/INFO]: ModLauncher 9.1.0+9.1.0+main.6690ee51 starting: java version 17.0.1 by Eclipse Adoptium [14:10:39] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/home/container/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2319!/ Service=ModLauncher Env=SERVER [14:10:40] [main/INFO]: Found mod file AI-Improvements-1.18-0.4.0.jar of type MOD with locator {mods folder locator at /home/container/mods} [14:10:40] [main/INFO]: Found mod file BetterDungeons-Forge-1.18.1-1.0.1.jar of type MOD with locator {mods folder locator at /home/container/mods} [14:10:40] [main/INFO]: Found mod file BetterMineshafts-Forge-1.18.1-1.0.jar of type MOD with locator {mods folder locator at /home/container/mods} [14:10:40] [main/INFO]: Found mod file DungeonsArise-1.18.1-2.1.49d-beta.jar of type MOD with locator {mods folder locator at /home/container/mods} [14:10:40] [main/INFO]: Found mod file FastFurnace-1.18.1-6.0.2.jar of type MOD with locator {mods folder locator at /home/container/mods} [14:10:40] [main/INFO]: Found mod file FastWorkbench-1.18.1-6.0.1.jar of type MOD with locator {mods folder locator at /home/container/mods} [14:10:40] [main/INFO]: Found mod file ferritecore-4.1.2-forge.jar of type MOD with locator {mods folder locator at /home/container/mods} [14:10:40] [main/INFO]: Found mod file jmt_mcmt-1.18.1-0.24.2-118-modcore.jar of type MOD with locator {mods folder locator at /home/container/mods} [14:10:40] [main/INFO]: Found mod file Placebo-1.18.1-6.1.1.jar of type MOD with locator {mods folder locator at /home/container/mods} [14:10:40] [main/INFO]: Found mod file TerraForged-1_18_1.jar of type MOD with locator {mods folder locator at /home/container/mods} [14:10:40] [main/INFO]: Found mod file Terralith_v2.0.12_Fabric+Forge.jar of type MOD with locator {mods folder locator at /home/container/mods} [14:10:40] [main/INFO]: Found mod file YungsApi-1.18.1-Forge-26.jar of type MOD with locator {mods folder locator at /home/container/mods} [14:10:40] [main/INFO]: Found mod file YungsBridges-Forge-1.18.1-1.0.jar of type MOD with locator {mods folder locator at /home/container/mods} [14:10:41] [main/INFO]: Found mod file fmlcore-1.18.1-39.0.75.jar of type LIBRARY with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@7a8fa663 [14:10:41] [main/INFO]: Found mod file javafmllanguage-1.18.1-39.0.75.jar of type LANGPROVIDER with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@7a8fa663 [14:10:41] [main/INFO]: Found mod file mclanguage-1.18.1-39.0.75.jar of type LANGPROVIDER with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@7a8fa663 [14:10:41] [main/INFO]: Found mod file server-1.18.1-20211210.034407-srg.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@7a8fa663 [14:10:41] [main/INFO]: Found mod file forge-1.18.1-39.0.75-universal.jar of type MOD with locator net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@7a8fa663 [14:10:48] [main/INFO]: Compatibility level set to JAVA_17 [14:10:48] [main/INFO]: Launching target 'forgeserver' with arguments [] [14:10:49] [main/WARN]: Reference map 'yungsbridges.refmap.json' for yungsbridges.mixins.json could not be read. If this is a development environment you can ignore this message [14:10:50] [main/INFO]: [JMTSUPERTRANS] PalettedContainerReLock Transformer Called [14:10:50] [main/INFO]: [JMTSUPERTRANS] PalettedContainerReLock Transformer Complete [14:10:51] [main/INFO]: [JMTSUPERTRANS] UtilExecutorListingHack Transformer Called [14:10:51] [main/INFO]: [JMTSUPERTRANS] UtilExecutorListingHack Transformer Complete [14:10:55] [main/INFO]: [JMTSUPERTRANS] WorldGetTE Transformer Called [14:10:55] [main/INFO]: [JMTSUPERTRANS] WorldGetTE Transformer Complete [14:10:55] [main/INFO]: [JMTSUPERTRANS] TE Transformer Called [14:10:55] [main/INFO]: [JMTSUPERTRANS] TE Transformer Complete [14:10:55] [main/INFO]: [JMTSUPERTRANS] Entity Transformer Called [14:10:55] [main/INFO]: [JMTSUPERTRANS] Entity Transformer Complete [14:10:55] [main/INFO]: [JMTSUPERTRANS] ServerWorldCollections Transformer Called [14:10:55] [main/INFO]: [JMTSUPERTRANS] ServerWorldCollections Transformer Ran [14:10:55] [main/INFO]: [JMTSUPERTRANS] ServerWorldCollections Transformer Complete [14:10:55] [main/INFO]: [JMTSUPERTRANS] ServerWorldParaProvider Transformer Called [14:10:55] [main/INFO]: [JMTSUPERTRANS] Matched method <init> (Lnet/minecraft/server/MinecraftServer;Ljava/util/concurrent/Executor;Lnet/minecraft/world/level/storage/LevelStorageSource$LevelStorageAccess;Lnet/minecraft/world/level/storage/ServerLevelData;Lnet/minecraft/resources/ResourceKey;Lnet/minecraft/world/level/dimension/DimensionType;Lnet/minecraft/server/level/progress/ChunkProgressListener;Lnet/minecraft/world/level/chunk/ChunkGenerator;ZJLjava/util/List;Z)V [14:10:56] [main/INFO]: [JMTSUPERTRANS] ServerWorldParaProvider Transformer Complete [14:10:57] [main/INFO]: [JMTSUPERTRANS] WorldGetTE Transformer Called [14:10:57] [main/INFO]: [JMTSUPERTRANS] WorldGetTE Transformer Complete [14:10:57] [main/INFO]: [JMTSUPERTRANS] TE Transformer Called [14:10:57] [main/INFO]: [JMTSUPERTRANS] TE Transformer Complete [14:11:03] [main/INFO]: [JMTSUPERTRANS] SCPGetChunkPatch Transformer Called [14:11:03] [main/INFO]: [JMTSUPERTRANS] SCPGetChunkPatch Transformer Complete [14:11:03] [main/INFO]: [JMTSUPERTRANS] SCPGetChunkNowPatch Transformer Called [14:11:03] [main/INFO]: [JMTSUPERTRANS] SCPGetChunkNowPatch Transformer Complete [14:11:03] [main/INFO]: [JMTSUPERTRANS] SCPTick Transformer Called [14:11:03] [main/INFO]: [JMTSUPERTRANS] SCPTick Transformer Complete [14:11:03] [main/INFO]: [JMTSUPERTRANS] ServerWorldTickChunk Transformer Called [14:11:03] [main/INFO]: [JMTSUPERTRANS] ServerWorldTickChunk Transformer Complete [14:11:04] [main/INFO]: [JMTSUPERTRANS] ChunkLoadCache Transformer Called [14:11:06] [main/INFO]: [JMTSUPERTRANS] TemplateManagerHashMap Transformer Called [14:11:06] [main/INFO]: [JMTSUPERTRANS] TemplateManagerHashMap Transformer Ran [14:11:06] [main/INFO]: [JMTSUPERTRANS] TemplateManagerHashMap Transformer Complete [14:11:08] [main/INFO]: [JMTSUPERTRANS] World Transformer Called [14:11:08] [main/INFO]: YOU ARE USING 1.16 - Says coremods (if this is wrong something borked) [14:11:08] [main/INFO]: [JMTSUPERTRANS] FOUND TARGET INSNS [14:11:08] [main/INFO]: [JMTSUPERTRANS] World Transformer Complete [14:11:08] [main/INFO]: [JMTSUPERTRANS] ServerExecutionThread Transformer Called [14:11:08] [main/INFO]: [JMTSUPERTRANS] Not seen adding method [14:11:08] [main/INFO]: [JMTSUPERTRANS] ServerExecutionThread Transformer Complete [14:11:09] [modloading-worker-0/INFO]: Forge mod loading, version 39.0.75, for MC 1.18.1 with MCP 20211210.034407 [14:11:09] [modloading-worker-0/INFO]: MinecraftForge v39.0.75 Initialized [14:11:11] [modloading-worker-0/INFO]: Patching ServerResources#<init> [14:11:11] [modloading-worker-0/INFO]: Loaded seedfix v1.0 by Justsnoopy30! [14:11:12] [modloading-worker-0/INFO]: Environment: [14:11:12] [modloading-worker-0/INFO]: - Dev:       false [14:11:12] [modloading-worker-0/INFO]: - Profiling: false [14:11:12] [modloading-worker-0/INFO]: - Unlimited: false [14:11:12] [modloading-worker-0/INFO]: - Debugging: false [14:11:12] [modloading-worker-0/INFO]: - Data Gen:  false [14:11:12] [modloading-worker-0/INFO]: - Cores:     1 [14:11:12] [modloading-worker-0/INFO]: Set TerraForged API: ForgeCommonAPI [14:11:13] [main/INFO]: Registering world-gen core codecs [14:11:13] [main/INFO]: Registering world-gen component codecs [14:11:13] [main/INFO]: Locking mod world-gen registries [14:11:13] [main/INFO]: Registering world-gen content [14:11:14] [Forge Version Check/INFO]: [jmt_mcmt] Starting version check at https://gitcdn.link/repo/jediminer543/JMT-MCMT/master/etc/update.json [14:11:15] [Forge Version Check/INFO]: [jmt_mcmt] Found status: BETA Current: 0.24.2-118 Target: null [14:11:15] [Forge Version Check/INFO]: [forge] Starting version check at https://files.minecraftforge.net/net/minecraftforge/forge/promotions_slim.json [14:11:15] [main/INFO]: Extracting default datapack to /home/container/config/terraforged/pack-v0 [14:11:15] [main/WARN]: Mod 'terraforged' took 2.934 s to run a deferred task. [14:11:16] [modloading-worker-0/INFO]: Got IMC [] [14:11:16] [Forge Version Check/INFO]: [forge] Found status: OUTDATED Current: 39.0.75 Target: 39.1.0 [14:11:21] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [14:11:21] [main/INFO]: Injecting safe world-gen network codec [14:11:22] [main/INFO]: Injecting world-gen registry defaults [14:11:23] [main/INFO]: Loading world-gen registry content from data [14:11:24] [main/WARN]: Assets URL 'union:/home/container/libraries/net/minecraft/server/1.18.1-20211210.034407/server-1.18.1-20211210.034407-srg.jar%2351!/assets/.mcassetsroot' uses unexpected schema [14:11:24] [main/WARN]: Assets URL 'union:/home/container/libraries/net/minecraft/server/1.18.1-20211210.034407/server-1.18.1-20211210.034407-srg.jar%2351!/data/.mcassetsroot' uses unexpected schema [14:11:24] [main/WARN]: Couldn't get pack info for: net.minecraft.server.packs.ResourcePackFileNotFoundException: 'pack.mcmeta' in ResourcePack './world/datapacks/RPG Mng.zip' [14:11:24] [main/INFO]: Found new data pack file/ExplosionRebuilderDatapack.v2.0.zip, loading it automatically [14:11:24] [main/INFO]: Found new data pack file/ThirtyFangs Kingdom.zip, loading it automatically [14:11:24] [main/INFO]: Found new data pack file/Venturecraft Beta 0.4.zip, loading it automatically [14:11:24] [main/INFO]: Found new data pack file/choicetheorem-overhaul-village-1-18-2-2-8.zip, loading it automatically [14:11:24] [main/INFO]: Found new data pack file/daily-quests-e1041.zip, loading it automatically [14:11:24] [main/INFO]: Found new data pack file/fokastudio-s-ender-expansion-v1-4a-e840.zip, loading it automatically [14:11:24] [main/INFO]: Found new data pack file/incendium-v5-0-3.zip, loading it automatically [14:11:24] [main/INFO]: Found new data pack file/special-mobs-v6-6-spmdpi-3-0.zip, loading it automatically [14:11:24] [main/INFO]: Found new data pack file/splatus-mountain-villages-v1.zip, loading it automatically [14:11:24] [main/INFO]: Found new data pack file/towns-and-towers-structure-overhaul-terralith-1-6.zip, loading it automatically [14:11:25] [main/INFO]: MCMT Registering Commands [14:11:26] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [14:11:26] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0] [14:11:26] [main/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498] [14:11:26] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498] [14:11:26] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [14:11:26] [main/INFO]: Reloading ResourceManager: Default, YungsApi-1.18.1-Forge-26.jar, BetterDungeons-Forge-1.18.1-1.0.1.jar, jmt_mcmt-1.18.1-0.24.2-118-modcore.jar, FastFurnace-1.18.1-6.0.2.jar, ferritecore-4.1.2-forge.jar, AI-Improvements-1.18-0.4.0.jar, YungsBridges-Forge-1.18.1-1.0.jar, forge-1.18.1-39.0.75-universal.jar, BetterMineshafts-Forge-1.18.1-1.0.jar, Terralith_v2.0.12_Fabric+Forge.jar, TerraForged-1_18_1.jar, FastWorkbench-1.18.1-6.0.1.jar, Placebo-1.18.1-6.1.1.jar, DungeonsArise-1.18.1-2.1.49d-beta.jar, ExplosionRebuilderDatapack.v2.0.zip, ThirtyFangs Kingdom.zip, Venturecraft Beta 0.4.zip, choicetheorem-overhaul-village-1-18-2-2-8.zip, daily-quests-e1041.zip, fokastudio-s-ender-expansion-v1-4a-e840.zip, incendium-v5-0-3.zip, special-mobs-v6-6-spmdpi-3-0.zip, splatus-mountain-villages-v1.zip, towns-and-towers-structure-overhaul-terralith-1-6.zip [14:11:26] [main/WARN]: ResourcePack: ignored non-lowercase namespace: .DS_Store in ./world/datapacks/Venturecraft Beta 0.4.zip [14:11:53] [Worker-Main-2/INFO]: Loaded 7 recipes [14:11:55] [Worker-Main-2/INFO]: Registered 0 additional loot tables. [14:11:56] [Worker-Main-2/INFO]: Loaded 1276 advancements [14:11:56] [Worker-Main-2/INFO]: Registered 0 additional recipes. [14:11:58] [main/FATAL]: Failed to start the minecraft server com.google.gson.JsonParseException: Error loading registry data: Not a valid resource location: #minecraft:infiniburn_end Non [a-z0-9_.-] character in namespace of location: #minecraft:infiniburn_end     at net.minecraft.core.RegistryAccess.m_175498_(RegistryAccess.java:156) ~[server-1.18.1-20211210.034407-srg.jar%2351!/:?]     at java.util.Optional.ifPresent(Optional.java:178) ~[?:?]     at net.minecraft.core.RegistryAccess.m_175503_(RegistryAccess.java:155) ~[server-1.18.1-20211210.034407-srg.jar%2351!/:?]     at net.minecraft.core.RegistryAccess.m_175500_(RegistryAccess.java:146) ~[server-1.18.1-20211210.034407-srg.jar%2351!/:?]     at net.minecraft.resources.RegistryReadOps.m_195841_(RegistryReadOps.java:37) ~[server-1.18.1-20211210.034407-srg.jar%2351!/:?]     at net.minecraft.resources.RegistryReadOps.m_179866_(RegistryReadOps.java:31) ~[server-1.18.1-20211210.034407-srg.jar%2351!/:?]     at net.minecraft.server.Main.main(Main.java:161) ~[server-1.18.1-20211210.034407-srg.jar%2351!/:?]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]     at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]     at net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$launchService$0(CommonServerLaunchHandler.java:46) ~[fmlloader-1.18.1-39.0.75.jar%2323!/:?]     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.1.0.jar%235!/:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.1.0.jar%235!/:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.1.0.jar%235!/:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.1.0.jar%235!/:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.1.0.jar%235!/:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.1.0.jar%235!/:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.1.0.jar%235!/:?]     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149) [bootstraplauncher-1.0.0.jar:?]   I dont know if this is what you wanted but its the only I could find
    • Mr. diesieben07 und Mr. Luis_ST. Ich danke Ihnen für Ihre Geduld. Erst jetzt habe ich gelernt, dass "Listen Events" als Parameter zurückgegeben werden, also habe ich auch gelernt, dass man Methoden direkt mit Parametern aufrufen kann. Ich stelle den Ereigniscode zur Verfügung, weil es sich um ein geringfügiges Problem handelt und ich ein sehr schlechter Fragesteller wäre, wenn Sie auch für dieses Problem den Ereigniscode selbst durchgehen müssten. Ich verwende derzeit ein Übersetzungsgerät, um mit Ihnen zu kommunizieren, daher werden viele Wörter nicht klar und deutlich zu verstehen sein, und ich entschuldige mich für etwaige Missverständnisse. Ich bin Ihnen beiden dankbar, dass Sie sich trotz Ihres vollen Terminkalenders die Zeit genommen haben, um meine Fragen zu beantworten. Ich gebe Ihnen beiden ein Dankeschön, um meine Dankbarkeit auszudrücken. Ich danke Ihnen nochmals. :):)
    • Whenever I try to start my server I get this crash: [14:05:21] [main/FATAL]: Failed to start the minecraft server com.google.gson.JsonParseException: Error loading registry data: Not a valid resource location: #minecraft:infiniburn_end Non [a-z0-9_.-] character in namespace of location: #minecraft:infiniburn_end         at net.minecraft.core.RegistryAccess.m_175498_(RegistryAccess.java:156) ~[server-1.18.1-20211210.034407-srg.jar%2390!/:?]         at java.util.Optional.ifPresent(Optional.java:178) ~[?:?]         at net.minecraft.core.RegistryAccess.m_175503_(RegistryAccess.java:155) ~[server-1.18.1-20211210.034407-srg.jar%2390!/:?]         at net.minecraft.core.RegistryAccess.m_175500_(RegistryAccess.java:146) ~[server-1.18.1-20211210.034407-srg.jar%2390!/:?]         at net.minecraft.resources.RegistryReadOps.m_195841_(RegistryReadOps.java:37) ~[server-1.18.1-20211210.034407-srg.jar%2390!/:?]         at net.minecraft.resources.RegistryReadOps.m_179866_(RegistryReadOps.java:31) ~[server-1.18.1-20211210.034407-srg.jar%2390!/:?]         at net.minecraft.server.Main.main(Main.java:161) ~[server-1.18.1-20211210.034407-srg.jar%2390!/:?]         at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]         at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]         at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]         at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]         at net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$launchService$0(CommonServerLaunchHandler.java:46) ~[fmlloader-1.18.1-39.0.75.jar%2361!/:?]         at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) ~[modlauncher-9.1.0.jar%2343!/:?]         at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-9.1.0.jar%2343!/:?]         at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-9.1.0.jar%2343!/:?]         at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) ~[modlauncher-9.1.0.jar%2343!/:?]         at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) ~[modlauncher-9.1.0.jar%2343!/:?]         at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-9.1.0.jar%2343!/:?]         at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-9.1.0.jar%2343!/:?]         at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149) ~[bootstraplauncher-1.0.0.jar:?]         at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]         at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]         at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]         at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]         at org.jmt.mcmt.modlauncher.FastUtilTransformerService.argumentValues(FastUtilTransformerService.java:200) ~[jmt_mcmt-1.18.1-0.24.2-118-packaged.jar%2375!/:?]         at cpw.mods.modlauncher.TransformationServicesHandler.lambda$offerArgumentResultsToServices$5(TransformationServicesHandler.java:80) ~[modlauncher-9.1.0.jar%235!/:?]         at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?]         at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]         at java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1779) ~[?:?]         at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]         at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]         at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?]         at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?]         at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]         at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?]         at cpw.mods.modlauncher.TransformationServicesHandler.offerArgumentResultsToServices(TransformationServicesHandler.java:80) ~[modlauncher-9.1.0.jar%235!/:?]         at cpw.mods.modlauncher.ArgumentHandler.processArguments(ArgumentHandler.java:71) [modlauncher-9.1.0.jar%235!/:?]         at cpw.mods.modlauncher.TransformationServicesHandler.processArguments(TransformationServicesHandler.java:68) [modlauncher-9.1.0.jar%235!/:?]         at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:50) [modlauncher-9.1.0.jar%235!/:?]         at cpw.mods.modlauncher.Launcher.run(Launcher.java:87) [modlauncher-9.1.0.jar%235!/:?]         at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.1.0.jar%235!/:?]         at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.1.0.jar%235!/:?]         at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.1.0.jar%235!/:?]         at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149) [bootstraplauncher-1.0.0.jar:?] container@pterodactyl~ Server marked as offline... [Game2 Daemon]: ---------- Detected server process in a crashed state! ---------- [Game2 Daemon]: Exit code: 1 [Game2 Daemon]: Out of memory: false [Game2 Daemon]: Aborting automatic restart, last crash occurred less than 120 seconds ago.
    • why, you have Event instance so call the getters we all have the code of the Event the Event exist to perform an action at a specific 'time'/'action' in the game what are you talking about
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.