Jump to content

NastyStuffy

Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by NastyStuffy

  1. Using this event, you can turn off teleportation and prohibit being on the territory or on the block?
  2. I want to create coordinates that cannot be teleported, and stand on them
  3. 1. It's more convenient for me 2.It is forbidden?
  4. The essence of this code, when any player appears at coordinates 120 x 20 at z and at any height, he will be teleported 2 blocks back at x and z coordinates and will write a message that other players cannot see in any way import com.mojang.authlib.GameProfile; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.vector.Vector3d; import net.minecraft.util.text.StringTextComponent; //import net.minecraft.util.text.TranslationTextComponent; import net.minecraft.world.World; public class ClassName extends PlayerEntity{ public ClassName(World p_i241920_1_, BlockPos p_i241920_2_, float p_i241920_3_, GameProfile p_i241920_4_) { super(p_i241920_1_, p_i241920_2_, p_i241920_3_, p_i241920_4_); Vector3d no_escape = new Vector3d(120.000, position().y, 20.000); Vector3d PlPos = position(); if(PlPos.x == no_escape.x && PlPos.z==no_escape.z) { teleportTo(no_escape.x-2, no_escape.y-0, no_escape.z-2); sendMessage(new StringTextComponent("No way!"), getUUID()); } } @Override public boolean isSpectator() { return false; } @Override public boolean isCreative() { return false; } }
  5. This created itself when I wrote extends PlayerEntity in the class
  6. What does World stand for p_i241920_1_, BlockPos p_i241920_2_, float p_i241920_3_, GameProfile (I think it has something to do with my data, so I will censor it) { super (p_i241920_1_, p_i241920_2_, p_i241920_3_, p_i241920_4_?
  7. I figured out what # is, but can you please give me an example code on how to use it? I tried to create a variable of type String (String PlPos = getPosition (); but nothing works for me
  8. How to get the player's coordinates and interact with them (for example, teleport to other coordinates)?
  9. What is the counterpart for .hardnessAndResistance ()? I dont have this properties in list public static final RegistryObject<Block> ADVANCED_BLOCK = BLOCKS.register("advanced_block", () -> new Block(AbstractBlock.Properties.of(Material.EXPLOSIVE, MaterialColor.METAL).harvestLevel(10).harvestTool(ToolType.PICKAXE).hardnessAndResistance(5f, 6f) )); }
  10. How to set the characteristics of an item? Damage, durability, etc.
  11. Убивалка - Killer Улучшенные предметы - Advanced Items
  12. Thank you! I reinstalled all files except src and everything worked for me as it should
  13. When I clicked "Run Start" in eclipse, the program asked me to select Main class, I tried to select: https://imgur.com/a/q5ioiwo Run configurations screenshot I will leave the console output under each item 1.LaunchTesting net.minecraftforge.userdev 2021-08-11 16:36:22,592 main WARN Advanced terminal features are not available in this environment Exception in thread "main" java.lang.IllegalArgumentException: Environment variable target must be set. at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:55) Picked up _JAVA_OPTIONS: -Xmx3072M 2. Main net.minecraft.client.main 2021-08-11 16:33:47,281 main WARN Advanced terminal features are not available in this environment Exception in thread "main" joptsimple.MissingRequiredOptionsException: Missing required option(s) [accessToken, version] at joptsimple.OptionParser.ensureRequiredOptions(OptionParser.java:426) at joptsimple.OptionParser.parse(OptionParser.java:400) at net.minecraft.client.main.Main.main(Main.java:77) Picked up _JAVA_OPTIONS: -Xmx3072M 3. Start mcp.client 2021-08-11 16:35:47,137 main WARN Advanced terminal features are not available in this environment Exception in thread "main" java.lang.NullPointerException at net.minecraftforge.fml.loading.BackgroundWaiter.runAndTick(BackgroundWaiter.java:33) at net.minecraft.client.main.Main.main(Main.java:123) at mcp.client.Start.main(Start.java:17) BUT if I do not use gradle, everything started fine for me, but I decided to use it, because I, I think, did not load assets.
×
×
  • Create New...

Important Information

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