Jump to content

Faro

Members
  • Posts

    33
  • Joined

  • Last visited

Posts posted by Faro

  1. Ok thank you I made it like this and it works.

     @SubscribeEvent
      @OnlyIn(Dist.CLIENT)
      public static void RenderHUD(final RenderGameOverlayEvent event){
            if (isRampage){
               int  screenColor = 0xfff00000;
               Minecraft mc = Minecraft.getInstance();
    
               
                MatrixStack stack = event.getMatrixStack();
                stack.pushPose();
                int w = (mc.getWindow().getGuiScaledWidth());
                int h = (mc.getWindow().getGuiScaledHeight());
    
                  
                    float r = (float) (screenColor >> 16 & 255) / 255.0F;
                    float g = (float) (screenColor >> 8 & 255) / 255.0F;
                    float b = (float) (screenColor & 255) / 255.0F;
                    float a = (1/ 100f) * (screenColor >> 24 & 255) / 255F;
    
                       RenderSystem.disableTexture();
                       RenderSystem.enableBlend();
                       RenderSystem.disableAlphaTest();
                       RenderSystem.blendFuncSeparate(770, 771, 1, 0);
                       RenderSystem.shadeModel(7425);
                       Tessellator tessellator = Tessellator.getInstance();
                       Matrix4f matrix = stack.last().pose();
                       BufferBuilder worldrenderer = tessellator.getBuilder();
                       worldrenderer.begin(7, DefaultVertexFormats.POSITION_COLOR);
                       worldrenderer.vertex(matrix, 0, h, mc.gui.getBlitOffset()).color(r, g, b, a).endVertex();
    
    
                       worldrenderer.vertex(matrix, w, h, mc.gui.getBlitOffset()).color(r, g, b, a).endVertex();
                       worldrenderer.vertex(matrix, w, 0, mc.gui.getBlitOffset()).color(r, g, b, a).endVertex();
                       worldrenderer.vertex(matrix, 0, 0, mc.gui.getBlitOffset()).color(r, g, b, a).endVertex();
    
                       tessellator.end();
                       RenderSystem.shadeModel(7424);
                       RenderSystem.disableBlend();
                       RenderSystem.enableAlphaTest();
                       RenderSystem.enableTexture();
                       
    
    
            }
      }

     

  2. I want to make a custom screen overlay. So when a boolean is true, I want that the screen to have a red overlay. I looked up in the IngameGui class and the renderPortalOverlay method but I don t know how to make a custom GUI

  3. My Block texture/model doesent get displayed.

    public static final RegistryObject<MjoelnirBlock> MJOELNIR_BLOCK = registerNoItem("mjoelnir_block",()->
                new MjoelnirBlock(AbstractBlock.Properties.of(Material.HEAVY_METAL).strength(50,1200).noDrops()));

    my path is: src\main\resources\assets\farosvikingsmod\models\block

    and this is my json file:

    {
    	"texture_size": [32, 32],
    	"textures": {
    		"0": "farosvikingsmod:block/mjoelnir_block",
    		"particle": "farosvikingsmod:block/mjoelnir_block"
    	},
    	"elements": [
    		{
    			"name": "Box1",
    			"from": [5.3, 3.875, 5.55],
    			"to": [10.3, 6.4, 9.55],
    			"faces": {
    				"north": {"uv": [0, 0, 3, 2.75], "rotation": 180, "texture": "#0"},
    				"east": {"uv": [0, 0, 1.5, 1.5], "rotation": 270, "texture": "#0"},
    				"south": {"uv": [0, 0, 3, 2.75], "texture": "#0"},
    				"west": {"uv": [0, 0, 2.75, 3], "rotation": 90, "texture": "#0"},
    				"up": {"uv": [0, 0, 3, 3], "rotation": 180, "texture": "#0"},
    				"down": {"uv": [0, 0, 3, 3], "texture": "#0"}
    			}
    		},
    		{
    			"name": "Box1",
    			"from": [1.175, 1.5, 4.675],
    			"to": [14.825, 5.5, 10.325],
    			"faces": {
    				"north": {"uv": [0, 0.5, 16, 7.5], "texture": "#0"},
    				"east": {"uv": [10.5, 0.5, 16, 7.5], "rotation": 90, "texture": "#0"},
    				"south": {"uv": [0, 0.5, 16, 7.5], "texture": "#0"},
    				"west": {"uv": [10.5, 0.5, 16, 7.5], "rotation": 270, "texture": "#0"},
    				"up": {"uv": [0, 0, 16, 2], "texture": "#0"},
    				"down": {"uv": [0, 6, 16, 8], "texture": "#0"}
    			}
    		},
    		{
    			"name": "Box1",
    			"from": [2, 1, 3.675],
    			"to": [14, 6, 11.325],
    			"faces": {
    				"north": {"uv": [0, 0, 16, 1], "texture": "#0"},
    				"east": {"uv": [0, 0, 16, 8], "rotation": 90, "texture": "#0"},
    				"south": {"uv": [0, 4, 16, 8], "texture": "#0"},
    				"west": {"uv": [0, 0, 16, 8], "rotation": 270, "texture": "#0"},
    				"up": {"uv": [0, 0, 16, 6.5], "texture": "#0"},
    				"down": {"uv": [0, 0, 16, 6.5], "texture": "#0"}
    			}
    		},
    		{
    			"name": "Box1",
    			"from": [6.25, 6, 6.05],
    			"to": [9.25, 15, 9.05],
    			"faces": {
    				"north": {"uv": [0, 8, 2.5, 15], "texture": "#0"},
    				"east": {"uv": [10, 8, 13, 15], "rotation": 90, "texture": "#0"},
    				"south": {"uv": [13, 8, 16, 15], "texture": "#0"},
    				"west": {"uv": [5, 8, 8, 15], "rotation": 270, "texture": "#0"},
    				"up": {"uv": [0, 8, 3, 15], "texture": "#0"},
    				"down": {"uv": [0, 15, 3, 8], "texture": "#0"}
    			}
    		},
    		{
    			"name": "Box1",
    			"from": [6, 14.5, 5.95],
    			"to": [9.5, 16, 9.19],
    			"faces": {
    				"north": {"uv": [0, 0, 8, 5], "texture": "#0"},
    				"east": {"uv": [0, 0, 6.5, 3.5], "rotation": 90, "texture": "#0"},
    				"south": {"uv": [0, 0, 5, 4.5], "texture": "#0"},
    				"west": {"uv": [0, 0, 7, 3.5], "rotation": 270, "texture": "#0"},
    				"up": {"uv": [0, 5, 7, 8], "texture": "#0"},
    				"down": {"uv": [0, 0, 10.5, 4.5], "texture": "#0"}
    			}
    		},
    		{
    			"name": "Box2",
    			"from": [6, 13, 5.775],
    			"to": [9.5, 13.5, 9.275],
    			"faces": {
    				"north": {"uv": [0, 15, 16, 16], "texture": "#0"},
    				"east": {"uv": [0, 15, 16, 16], "rotation": 90, "texture": "#0"},
    				"south": {"uv": [0, 15, 16, 16], "texture": "#0"},
    				"west": {"uv": [0, 15, 16, 16], "rotation": 270, "texture": "#0"},
    				"up": {"uv": [0, 15, 7, 16], "texture": "#0"},
    				"down": {"uv": [0, 15, 10, 16], "texture": "#0"}
    			}
    		},
    		{
    			"name": "Box3",
    			"from": [6, 11.5, 5.775],
    			"to": [9.5, 12, 9.275],
    			"faces": {
    				"north": {"uv": [0, 15, 16, 16], "texture": "#0"},
    				"east": {"uv": [0, 15, 16, 16], "rotation": 90, "texture": "#0"},
    				"south": {"uv": [0, 15, 16, 16], "texture": "#0"},
    				"west": {"uv": [0, 15, 16, 16], "rotation": 270, "texture": "#0"},
    				"up": {"uv": [0, 15, 7, 16], "texture": "#0"},
    				"down": {"uv": [0, 15, 10, 16], "texture": "#0"}
    			}
    		},
    		{
    			"name": "Box4",
    			"from": [6, 10, 5.775],
    			"to": [9.5, 10.5, 9.275],
    			"faces": {
    				"north": {"uv": [0, 15, 16, 16], "texture": "#0"},
    				"east": {"uv": [0, 15, 16, 16], "rotation": 90, "texture": "#0"},
    				"south": {"uv": [0, 15, 16, 16], "texture": "#0"},
    				"west": {"uv": [0, 15, 16, 16], "rotation": 270, "texture": "#0"},
    				"up": {"uv": [0, 15, 7, 16], "texture": "#0"},
    				"down": {"uv": [0, 15, 10, 16], "texture": "#0"}
    			}
    		},
    		{
    			"name": "Box5",
    			"from": [6, 8.5, 5.775],
    			"to": [9.5, 9, 9.275],
    			"faces": {
    				"north": {"uv": [0, 15, 16, 16], "texture": "#0"},
    				"east": {"uv": [0, 15, 16, 16], "rotation": 90, "texture": "#0"},
    				"south": {"uv": [0, 15, 16, 16], "texture": "#0"},
    				"west": {"uv": [0, 15, 16, 16], "rotation": 270, "texture": "#0"},
    				"up": {"uv": [0, 15, 7, 16], "texture": "#0"},
    				"down": {"uv": [0, 15, 10, 16], "texture": "#0"}
    			}
    		},
    		{
    			"name": "Box6",
    			"from": [6, 7, 5.775],
    			"to": [9.5, 7.5, 9.275],
    			"faces": {
    				"north": {"uv": [0, 15, 16, 16], "texture": "#0"},
    				"east": {"uv": [0, 15, 16, 16], "rotation": 90, "texture": "#0"},
    				"south": {"uv": [0, 15, 16, 16], "texture": "#0"},
    				"west": {"uv": [0, 15, 16, 16], "rotation": 270, "texture": "#0"},
    				"up": {"uv": [0, 15, 7, 16], "texture": "#0"},
    				"down": {"uv": [0, 15, 10, 16], "texture": "#0"}
    			}
    		},
    		{
    			"from": [0, 0, 0],
    			"to": [16, 1, 16],
    			"color": 7,
    			"faces": {
    				"north": {"uv": [0, 0, 8, 0.5], "texture": "#missing"},
    				"east": {"uv": [0, 0, 8, 0.5], "texture": "#missing"},
    				"south": {"uv": [0, 0, 8, 0.5], "texture": "#missing"},
    				"west": {"uv": [0, 0, 8, 0.5], "texture": "#missing"},
    				"up": {"uv": [0, 0, 8, 8], "texture": "#missing"},
    				"down": {"uv": [0, 0, 8, 8], "texture": "#missing"}
    			}
    		}
    	],
    	"groups": [
    		{
    			"name": "hammer",
    			"origin": [8, 8, 8],
    			"color": 0,
    			"children": [0, 1, 2]
    		},
    		{
    			"name": "stiel",
    			"origin": [8, 8, 8],
    			"color": 0,
    			"children": [3, 4, 5, 6, 7, 8, 9]
    		},
    		10
    	]
    }

     

  4. [04Aug2021 18:40:29.126] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 36.1.0, --version, MOD_DEV, --assetIndex, 1.16, --assetsDir, C:\Users\Faro\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ????????, --userProperties, {}]
    [04Aug2021 18:40:29.132] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 1.8.0_291 by Oracle Corporation
    [04Aug2021 18:40:29.682] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
    [04Aug2021 18:40:29.723] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.2 Source=file:/C:/Users/Faro/.gradle/caches/modules-2/files-2.1/org.spongepowered/mixin/0.8.2/1cf212283d26f706fd3074318870bebd14d2a9ed/mixin-0.8.2.jar Service=ModLauncher Env=CLIENT
    [04Aug2021 18:40:31.531] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmluserdevclient' with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, C:\Users\Faro\.gradle\caches\forge_gradle\assets, --assetIndex, 1.16, --username, Dev, --accessToken, ????????, --userProperties, {}]
    [04Aug2021 18:40:37.017] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
    [04Aug2021 18:40:37.701] [Render thread/ERROR] [net.minecraft.client.Minecraft/]: Failed to verify authentication
    com.mojang.authlib.exceptions.AuthenticationUnavailableException: null
        at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.checkPrivileges(YggdrasilSocialInteractionsService.java:97) ~[authlib-2.1.28.jar:?]
        at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.<init>(YggdrasilSocialInteractionsService.java:40) ~[authlib-2.1.28.jar:?]
        at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.createSocialInteractionsService(YggdrasilAuthenticationService.java:152) ~[authlib-2.1.28.jar:?]
        at net.minecraft.client.Minecraft.createSocialInteractions(Minecraft.java:551) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?]
        at net.minecraft.client.Minecraft.<init>(Minecraft.java:383) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?]
        at net.minecraft.client.main.Main.main(Main.java:149) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_291]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_291]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291]
        at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?]
        at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?]
        at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?]
        at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?]
        at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?]
        at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?]
        at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?]
    [04Aug2021 18:40:37.709] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Dev
    [04Aug2021 18:40:37.804] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Backend library: LWJGL version 3.2.2 build 10
    [04Aug2021 18:40:38.446] [modloading-worker-2/INFO] [net.minecraftforge.common.ForgeMod/FORGEMOD]: Forge mod loading, version 36.1.0, for MC 1.16.5 with MCP 20210115.111550
    [04Aug2021 18:40:38.447] [modloading-worker-2/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v36.1.0 Initialized
    [04Aug2021 18:40:39.903] [Render thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded
    [04Aug2021 18:40:39.968] [Render thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, Mod Resources
    [04Aug2021 18:40:40.053] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
    [04Aug2021 18:40:40.436] [Render thread/WARN] [net.minecraftforge.common.ForgeHooks/]: Called deprecated GlobalEntityTypeAttributes#put for farosvikingsmod:freyr, use EntityAttributeCreationEvent instead.
    [04Aug2021 18:40:41.093] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Found status: OUTDATED Current: 36.1.0 Target: 36.2.0
    [04Aug2021 18:40:42.605] [Worker-Main-11/INFO] [net.Faro.farosvikingsmod.FarosVikingsMod/]: Got game settings net.minecraft.client.GameSettings@4850a7a8
    [04Aug2021 18:40:44.867] [Worker-Main-14/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'minecraft:brew_kettle' referenced from: farosvikingsmod:brew_kettle#facing=north: java.io.FileNotFoundException: minecraft:models/brew_kettle.json
    [04Aug2021 18:40:46.680] [Worker-Main-14/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'farosvikingsmod:freyr_spawn_egg#inventory' referenced from: farosvikingsmod:freyr_spawn_egg#inventory: java.io.FileNotFoundException: farosvikingsmod:models/item/freyr_spawn_egg.json
    [04Aug2021 18:40:46.693] [Worker-Main-14/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'minecraft:models/item/shield' referenced from: farosvikingsmod:copper_shield#inventory: java.io.FileNotFoundException: minecraft:models/models/item/shield.json
    [04Aug2021 18:40:46.694] [Worker-Main-14/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'farosvikingsmod:copper_pickaxe#inventory' referenced from: farosvikingsmod:copper_pickaxe#inventory: java.io.FileNotFoundException: farosvikingsmod:models/item/copper_pickaxe.json
    [04Aug2021 18:40:46.695] [Worker-Main-14/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'farosvikingsmod:copper_shovel#inventory' referenced from: farosvikingsmod:copper_shovel#inventory: java.io.FileNotFoundException: farosvikingsmod:models/item/copper_shovel.json
    [04Aug2021 18:40:46.699] [Worker-Main-14/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'minecraft:trident' referenced from: farosvikingsmod:mjoelnir#inventory: java.io.FileNotFoundException: minecraft:models/trident.json
    [04Aug2021 18:40:46.711] [Worker-Main-14/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'minecraft:hofund' referenced from: farosvikingsmod:hofund#inventory: java.io.FileNotFoundException: minecraft:models/hofund.json
    [04Aug2021 18:40:46.961] [Worker-Main-14/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to resolve texture reference: #missing in farosvikingsmod:item/hofund
    [04Aug2021 18:40:48.147] [Worker-Main-12/INFO] [net.Faro.farosvikingsmod.FarosVikingsMod/]: Hello world from the MDK
    [04Aug2021 18:40:48.147] [Worker-Main-12/INFO] [net.Faro.farosvikingsmod.FarosVikingsMod/]: Got IMC [Hello world]
    [04Aug2021 18:40:49.576] [Render thread/INFO] [net.minecraft.client.audio.SoundSystem/]: OpenAL initialized.
    [04Aug2021 18:40:49.577] [Render thread/INFO] [net.minecraft.client.audio.SoundEngine/SOUNDS]: Sound engine started
    [04Aug2021 18:40:49.891] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 jei:textures/atlas/gui.png-atlas
    [04Aug2021 18:40:49.893] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 2048x2048x0 minecraft:textures/atlas/blocks.png-atlas
    [04Aug2021 18:40:49.931] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x128x0 minecraft:textures/atlas/signs.png-atlas
    [04Aug2021 18:40:49.931] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x0 minecraft:textures/atlas/banner_patterns.png-atlas
    [04Aug2021 18:40:49.932] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x0 minecraft:textures/atlas/shield_patterns.png-atlas
    [04Aug2021 18:40:49.950] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/chest.png-atlas
    [04Aug2021 18:40:49.951] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x0 minecraft:textures/atlas/beds.png-atlas
    [04Aug2021 18:40:49.951] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x0 minecraft:textures/atlas/shulker_boxes.png-atlas
    [04Aug2021 18:40:50.625] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas
    [04Aug2021 18:40:50.627] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas
    [04Aug2021 18:40:50.627] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x128x0 minecraft:textures/atlas/mob_effects.png-atlas
    [04Aug2021 18:40:51.193] [Realms Notification Availability checker #1/INFO] [com.mojang.realmsclient.client.RealmsClient/]: Could not authorize you against Realms server: Invalid session id
    [04Aug2021 18:41:27.404] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
    [04Aug2021 18:41:27.405] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
    [04Aug2021 18:41:27.405] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
    [04Aug2021 18:41:27.406] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
    [04Aug2021 18:41:27.407] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
    [04Aug2021 18:41:27.410] [Render thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar, main, jei-1.16.3-7.+_mapped_official_1.16.5.jar
    [04Aug2021 18:41:28.267] [Render thread/INFO] [net.minecraft.item.crafting.RecipeManager/]: Loaded 7 recipes
    [04Aug2021 18:41:29.001] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 942 advancements
    [04Aug2021 18:41:29.548] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
    [04Aug2021 18:41:29.573] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Starting integrated minecraft server version 1.16.5
    [04Aug2021 18:41:29.573] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Generating keypair
    [04Aug2021 18:41:29.658] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Configuration file .\saves\New World (63)\serverconfig\forge-server.toml is not correct. Correcting
    [04Aug2021 18:41:29.659] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server was corrected from null to its default, SimpleCommentedConfig:{}. 
    [04Aug2021 18:41:29.659] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.removeErroringEntities was corrected from null to its default, false. 
    [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.removeErroringTileEntities was corrected from null to its default, false. 
    [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.fullBoundingBoxLadders was corrected from null to its default, false. 
    [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.zombieBaseSummonChance was corrected from null to its default, 0.1. 
    [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.zombieBabyChance was corrected from null to its default, 0.05. 
    [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.logCascadingWorldGeneration was corrected from null to its default, true. 
    [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.fixVanillaCascading was corrected from null to its default, false. 
    [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.dimensionUnloadQueueDelay was corrected from null to its default, 0. 
    [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.treatEmptyTagsAsAir was corrected from null to its default, false. 
    [04Aug2021 18:41:29.660] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.fixAdvancementLoading was corrected from null to its default, true. 
    [04Aug2021 18:41:33.505] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Preparing start region for dimension minecraft:overworld
    [04Aug2021 18:41:33.569] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
    [04Aug2021 18:41:34.017] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
    [04Aug2021 18:41:34.531] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 2%
    [04Aug2021 18:41:35.023] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 6%
    [04Aug2021 18:41:35.526] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 9%
    [04Aug2021 18:41:36.021] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 12%
    [04Aug2021 18:41:36.518] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 16%
    [04Aug2021 18:41:37.023] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 19%
    [04Aug2021 18:41:37.522] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 20%
    [04Aug2021 18:41:38.021] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 26%
    [04Aug2021 18:41:38.521] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 29%
    [04Aug2021 18:41:39.016] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 33%
    [04Aug2021 18:41:39.516] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 36%
    [04Aug2021 18:41:40.015] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 40%
    [04Aug2021 18:41:40.521] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 43%
    [04Aug2021 18:41:41.016] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 48%
    [04Aug2021 18:41:41.514] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 51%
    [04Aug2021 18:41:42.031] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 56%
    [04Aug2021 18:41:42.527] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 59%
    [04Aug2021 18:41:43.022] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 64%
    [04Aug2021 18:41:43.538] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 68%
    [04Aug2021 18:41:44.013] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 72%
    [04Aug2021 18:41:44.565] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 76%
    [04Aug2021 18:41:45.021] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 81%
    [04Aug2021 18:41:45.516] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 85%
    [04Aug2021 18:41:46.029] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 88%
    [04Aug2021 18:41:46.542] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 93%
    [04Aug2021 18:41:47.018] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 97%
    [04Aug2021 18:41:47.221] [Server thread/INFO] [net.Faro.farosvikingsmod.FarosVikingsMod/]: HELLO from server starting
    [04Aug2021 18:41:47.228] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Time elapsed: 13716 ms
    [04Aug2021 18:41:47.406] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Changing view distance to 24, from 10
    [04Aug2021 18:41:48.877] [Netty Local Client IO #0/INFO] [net.minecraftforge.fml.network.NetworkHooks/]: Connected to a modded server.
    [04Aug2021 18:41:48.892] [Server thread/INFO] [net.minecraftforge.common.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.advancements.PlayerAdvancements@b717c7e
    [04Aug2021 18:41:48.904] [Server thread/INFO] [net.minecraft.server.management.PlayerList/]: Dev[local:E:208e25df] logged in with entity id 120 at (210.5, 64.0, -107.5)
    [04Aug2021 18:41:48.930] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev joined the game
    [04Aug2021 18:41:49.236] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Starting JEI...
    [04Aug2021 18:41:49.431] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building ingredient list...
    [04Aug2021 18:41:49.436] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building ingredient list took 4.750 ms
    [04Aug2021 18:41:49.436] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building ingredient filter...
    [04Aug2021 18:41:49.585] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building ingredient filter took 149.2 ms
    [04Aug2021 18:41:49.585] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building bookmarks...
    [04Aug2021 18:41:49.586] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building bookmarks took 984.6 ?s
    [04Aug2021 18:41:49.586] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building recipe registry...
    [04Aug2021 18:41:49.624] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building recipe registry took 38.00 ms
    [04Aug2021 18:41:49.631] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building runtime...
    [04Aug2021 18:41:49.668] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building runtime took 36.96 ms
    [04Aug2021 18:41:49.679] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Starting JEI took 443.8 ms
    [04Aug2021 18:41:49.778] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 0 advancements
    [04Aug2021 18:41:50.017] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game...
    [04Aug2021 18:41:50.032] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld
    [04Aug2021 18:41:52.619] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether
    [04Aug2021 18:41:52.621] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end
    [04Aug2021 18:41:52.651] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 3579ms or 71 ticks behind
    [04Aug2021 18:42:06.968] [Render thread/FATAL] [net.minecraftforge.common.ForgeMod/]: Preparing crash report with UUID 69a2ce1c-d3b9-482d-97ca-30743f1b50f0
    [04Aug2021 18:42:06.971] [Render thread/FATAL] [net.minecraft.client.Minecraft/]: Unreported exception thrown!
    java.lang.ClassCastException: net.minecraft.client.world.ClientWorld cannot be cast to net.minecraft.world.server.ServerWorld
        at net.Faro.farosvikingsmod.setup.Tools.HofundSword.use(HofundSword.java:26) ~[main/:?]
        at net.minecraft.item.ItemStack.use(ItemStack.java:217) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?]
        at net.minecraft.client.multiplayer.PlayerController.useItem(PlayerController.java:328) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?]
        at net.minecraft.client.Minecraft.startUseItem(Minecraft.java:1389) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?]
        at net.minecraft.client.Minecraft.handleKeybinds(Minecraft.java:1645) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?]
        at net.minecraft.client.Minecraft.tick(Minecraft.java:1460) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?]
        at net.minecraft.client.Minecraft.runTick(Minecraft.java:953) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?]
        at net.minecraft.client.Minecraft.run(Minecraft.java:607) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?]
        at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_291]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_291]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291]
        at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?]
        at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?]
        at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?]
        at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?]
        at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?]
        at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?]
        at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?]
    [04Aug2021 18:42:08.137] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev has made the advancement [We Need to Go Deeper]
    [04Aug2021 18:42:08.232] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Stopping server
    [04Aug2021 18:42:08.233] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving players
    [04Aug2021 18:42:08.239] [Server thread/INFO] [net.minecraft.network.play.ServerPlayNetHandler/]: Dev lost connection: Disconnected
    [04Aug2021 18:42:08.239] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev left the game
    [04Aug2021 18:42:08.246] [Server thread/INFO] [net.minecraft.network.play.ServerPlayNetHandler/]: Stopping singleplayer server as player logged out
    [04Aug2021 18:42:08.246] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving worlds
    [04Aug2021 18:42:08.246] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld
    [04Aug2021 18:42:10.046] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (New World (63)): All chunks are saved
    [04Aug2021 18:42:10.046] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether
    [04Aug2021 18:42:10.066] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
    [04Aug2021 18:42:10.066] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end
    [04Aug2021 18:42:10.068] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
    [04Aug2021 18:42:10.084] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (New World (63)): All chunks are saved
    [04Aug2021 18:42:10.102] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
    [04Aug2021 18:42:10.104] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
    [04Aug2021 18:42:11.913] [Render thread/INFO] [STDOUT/]: [net.minecraft.util.registry.Bootstrap:realStdoutPrintln:123]: ---- Minecraft Crash Report ----
    // Surprise! Haha. Well, this is awkward.

    Time: 04.08.21 18:42
    Description: Unexpected error

    java.lang.ClassCastException: net.minecraft.client.world.ClientWorld cannot be cast to net.minecraft.world.server.ServerWorld
        at net.Faro.farosvikingsmod.setup.Tools.HofundSword.use(HofundSword.java:26) ~[main/:?] {re:classloading}
        at net.minecraft.item.ItemStack.use(ItemStack.java:217) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,xf:fml:forge:filled_map.4,xf:fml:forge:itemstack}
        at net.minecraft.client.multiplayer.PlayerController.useItem(PlayerController.java:328) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
        at net.minecraft.client.Minecraft.startUseItem(Minecraft.java:1389) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
        at net.minecraft.client.Minecraft.handleKeybinds(Minecraft.java:1645) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
        at net.minecraft.client.Minecraft.tick(Minecraft.java:1460) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
        at net.minecraft.client.Minecraft.runTick(Minecraft.java:953) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
        at net.minecraft.client.Minecraft.run(Minecraft.java:607) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
        at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_291] {}
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_291] {}
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291] {}
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291] {}
        at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {}
        at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {}
        at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {}
        at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {}
        at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {}
        at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {}
        at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {}


    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------

    -- Head --
    Thread: Render thread
    Stacktrace:
        at net.Faro.farosvikingsmod.setup.Tools.HofundSword.use(HofundSword.java:26) ~[?:?] {re:classloading}
        at net.minecraft.item.ItemStack.use(ItemStack.java:217) ~[forge:?] {re:classloading,xf:fml:forge:filled_map.4,xf:fml:forge:itemstack}
        at net.minecraft.client.multiplayer.PlayerController.useItem(PlayerController.java:328) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A}
        at net.minecraft.client.Minecraft.startUseItem(Minecraft.java:1389) ~[forge:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
        at net.minecraft.client.Minecraft.handleKeybinds(Minecraft.java:1645) ~[forge:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    -- Affected level --
    Details:
        All players: 1 total; [ClientPlayerEntity['Dev'/120, l='ClientLevel', x=214.05, y=65.00, z=-106.75]]
        Chunk stats: Client Chunk Cache: 3025, 779
        Level dimension: minecraft:overworld
        Level spawn location: World: (208,64,-111), Chunk: (at 0,4,1 in 13,-7; contains blocks 208,0,-112 to 223,255,-97), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
        Level time: 322 game time, 322 day time
        Server brand: forge
        Server type: Integrated singleplayer server
    Stacktrace:
        at net.minecraft.client.world.ClientWorld.fillReportDetails(ClientWorld.java:447) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
        at net.minecraft.client.Minecraft.fillReport(Minecraft.java:2029) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
        at net.minecraft.client.Minecraft.run(Minecraft.java:628) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
        at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_291] {}
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_291] {}
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291] {}
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291] {}
        at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {}
        at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {}
        at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {}
        at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {}
        at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {}
        at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {}
        at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar:?] {}


    -- System Details --
    Details:
        Minecraft Version: 1.16.5
        Minecraft Version ID: 1.16.5
        Operating System: Windows 10 (amd64) version 10.0
        Java Version: 1.8.0_291, Oracle Corporation
        Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 721832248 bytes (688 MB) / 2007498752 bytes (1914 MB) up to 3806855168 bytes (3630 MB)
        CPUs: 12
        JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
        ModLauncher: 8.0.9+86+master.3cf110c
        ModLauncher launch target: fmluserdevclient
        ModLauncher naming: mcp
        ModLauncher services: 
            /mixin-0.8.2.jar mixin PLUGINSERVICE 
            /eventbus-4.0.0.jar eventbus PLUGINSERVICE 
            /forge-1.16.5-36.1.0_mapped_official_1.16.5-launcher.jar object_holder_definalize PLUGINSERVICE 
            /forge-1.16.5-36.1.0_mapped_official_1.16.5-launcher.jar runtime_enum_extender PLUGINSERVICE 
            /accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE 
            /forge-1.16.5-36.1.0_mapped_official_1.16.5-launcher.jar capability_inject_definalize PLUGINSERVICE 
            /forge-1.16.5-36.1.0_mapped_official_1.16.5-launcher.jar runtimedistcleaner PLUGINSERVICE 
            /mixin-0.8.2.jar mixin TRANSFORMATIONSERVICE 
            /forge-1.16.5-36.1.0_mapped_official_1.16.5-launcher.jar fml TRANSFORMATIONSERVICE 
        FML: 36.1
        Forge: net.minecraftforge:36.1.0
        FML Language Providers: 
            [email protected]
            minecraft@1
        Mod List: 
            client-extra.jar                                  |Minecraft                     |minecraft                     |1.16.5              |DONE      |a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f
            forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.|Forge                         |forge                         |36.1.0              |DONE      |NOSIGNATURE
            main                                              |Faros Vikings Mod             |farosvikingsmod               |NONE                |DONE      |NOSIGNATURE
            jei-1.16.3-7.+_mapped_official_1.16.5.jar         |Just Enough Items             |jei                           |7.6.0.50            |DONE      |NOSIGNATURE
        Crash Report UUID: 69a2ce1c-d3b9-482d-97ca-30743f1b50f0
        Launched Version: MOD_DEV
        Backend library: LWJGL version 3.2.2 build 10
        Backend API: GeForce GTX 980/PCIe/SSE2 GL version 4.6.0 NVIDIA 461.92, NVIDIA Corporation
        GL Caps: Using framebuffer using OpenGL 3.0
        Using VBOs: Yes
        Is Modded: Definitely; Client brand changed to 'forge'
        Type: Client (map_client.txt)
        Graphics mode: fast
        Resource Packs: 
        Current Language: English (US)
        CPU: 12x AMD Ryzen 5 2600 Six-Core Processor 
    [04Aug2021 18:42:11.916] [Render thread/INFO] [STDOUT/]: [net.minecraft.util.registry.Bootstrap:realStdoutPrintln:123]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Faro\Desktop\Faros-Vikings-Mod-1.16.5\Faros-Vikings-Mod-1.16.x\run\.\crash-reports\crash-2021-08-04_18.42.11-client.txt
     

     

  5. Each time I am using my item, the game crashes. Thats my code:

     @Override
        public ActionResult<ItemStack> use(World world, PlayerEntity player, Hand hand) {
            
    
                if (!world.isClientSide() && !player.isPassenger() && !player.isVehicle() && player.canChangeDimensions()) {
                    RegistryKey<World> registrykey = world.dimension() == World.NETHER ? World.OVERWORLD : World.NETHER;
                    ServerWorld serverworld = world.getServer().getLevel(registrykey);
                    if (serverworld != null) {
                        player.handleInsidePortal(player.blockPosition());
                        player.changeDimension(serverworld,teleporter);
                        return ActionResult.success(player.getItemInHand(hand));
                    }
    
                }
    
            
    
            return ActionResult.fail(player.getItemInHand(hand));
    
        }

     

  6. @Mod.EventBusSubscriber(modid = FarosVikingsMod.modID, bus = Mod.EventBusSubscriber.Bus.MOD)
    public class BiomeInit {
       public static final RegistryObject<Biome> FJORD_BEACH_BIOME = Registration.BIOMES.register("fjord_beach_biome", FjordBeachBiome::fjordBeachBiome);
        public static final RegistryObject<Biome> FJORD_BIOME = Registration.BIOMES.register("fjord_biome",FjordBiome::FjBiome);
        public static void register(){
    
        }
        @SubscribeEvent
        public static void setupBiomes(FMLCommonSetupEvent event) {
            event.enqueueWork(() ->
                    setupBiome(FJORD_BIOME.get(), BiomeManager.BiomeType.COOL, 100000, 
                            BiomeDictionary.Type.OVERWORLD, BiomeDictionary.Type.COLD, BiomeDictionary.Type.MOUNTAIN, BiomeDictionary.Type.HILLS)
            );
            event.enqueueWork(()->
                    setupBiome(FJORD_BEACH_BIOME.get(),BiomeManager.BiomeType.WARM, 10000,
                            BiomeDictionary.Type.OVERWORLD, BiomeDictionary.Type.BEACH)
            );
        }
        private static void setupBiome(Biome biome, BiomeManager.BiomeType type, int weight, BiomeDictionary.Type... types) {
            RegistryKey<Biome> key = RegistryKey.create(
                    ForgeRegistries.Keys.BIOMES,
                    Objects.requireNonNull(ForgeRegistries.BIOMES.getKey(biome))
            );
    
            BiomeDictionary.addTypes(key, types);
            BiomeManager.addBiome(type, new BiomeManager.BiomeEntry(key, weight));
        }
    }

    And this is the DeferredRegister:

     public static final DeferredRegister<Biome> BIOMES = DeferredRegister.create(ForgeRegistries.BIOMES, FarosVikingsMod.modID);
    
    
    
        public static void register(){
            IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
            BIOMES.register(modEventBus);

     

  7. I have trouble with creating a biome that is as big or a little bit bigger than a Beach Biome. And I have put the .scale to 0.00f but it is still very big.

    Here is my Biome class:

    public class FjordBeachBiome {
        public static Biome fjordBeachBiome(){
    
            BiomeGenerationSettings generationSettings = new BiomeGenerationSettings.Builder()
                    .surfaceBuilder(SurfaceBuilder.DEFAULT.configured(SurfaceBuilder.CONFIG_GRASS))
    
                    .addCarver(GenerationStage.Carving.AIR, ConfiguredCarvers.CAVE)
                    .addFeature(GenerationStage.Decoration.LAKES, Features.LAKE_WATER)
                    .addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Features.ORE_COAL)
                    .addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Features.ORE_IRON)
                    .addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Features.ORE_GOLD)
                    .addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Features.ORE_REDSTONE)
                    .addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Features.ORE_DIAMOND)
                    .addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Features.ORE_LAPIS)
                    .addStructureStart(StructureFeatures.MINESHAFT)
                    .addStructureStart(StructureFeatures.STRONGHOLD)
                    .addFeature(GenerationStage.Decoration.SURFACE_STRUCTURES, Features.WELL)
                   // .addFeature(GenerationStage.Decoration.VEGETAL_DECORATION,Features.PATCH_GRASS_TAIGA)
                    //.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Features.TAIGA_VEGETATION)
                   // .addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Features.TREES_GIANT_SPRUCE)
                    .build();
    
    
            MobSpawnInfo mobSpawnInfo = new MobSpawnInfo.Builder()
                    .addSpawn(EntityClassification.CREATURE, new MobSpawnInfo.Spawners(ModEntities.FREYR.get(), 10, 2, 4))
                    .addSpawn(EntityClassification.CREATURE, new MobSpawnInfo.Spawners(EntityType.COW,5, 2, 5))
                    .addSpawn(EntityClassification.CREATURE, new MobSpawnInfo.Spawners(EntityType.SHEEP, 5,2,5))
                    .addSpawn(EntityClassification.CREATURE, new MobSpawnInfo.Spawners(EntityType.PIG, 5,2,5))
                    .addSpawn(EntityClassification.CREATURE, new MobSpawnInfo.Spawners(EntityType.CHICKEN,5 , 2,3))
                    .addSpawn(EntityClassification.WATER_CREATURE, new MobSpawnInfo.Spawners(EntityType.COD, 15, 3 ,5))
                    .addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(EntityType.SPIDER, 100, 4, 4))
                    .addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(EntityType.ZOMBIE, 100, 4, 4))
                    .addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(EntityType.ZOMBIE_VILLAGER, 5, 1, 1))
                    .addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(EntityType.SKELETON, 100, 4, 4))
                    .addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(EntityType.CREEPER, 100, 4, 4))
                    .addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(EntityType.SLIME, 100, 4, 4))
                    .addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(EntityType.ENDERMAN, 10, 1, 4))
                    .addSpawn(EntityClassification.MONSTER, new MobSpawnInfo.Spawners(EntityType.WITCH, 5, 1, 1))
    .                build();
    
            BiomeAmbience ambience = new BiomeAmbience.Builder()
                    .waterColor(0x169c9d)
                    .waterFogColor(0x169c9d)
                    .fogColor(0xf7f7f7)
                    .skyColor(0x4085f5)
                    .build();
    
            return new Biome.Builder()
                    .generationSettings(generationSettings)
    
                    .specialEffects(ambience)
                    .mobSpawnSettings(mobSpawnInfo)
                    .biomeCategory(Biome.Category.BEACH)
                    .temperatureAdjustment(Biome.TemperatureModifier.NONE)
                    .depth(0.12f)
                    .scale(0.00f)
                    .precipitation(Biome.RainType.RAIN)
                    .temperature(0.5f)
                    .downfall(0.4f)
                    .build();
    
    
    
        }
    }

     

  8.    public LokiModel(float p_i1148_1_) {
            super(p_i1148_1_);
            texWidth = 64;
            texHeight = 64;
    
            Loki = new ModelRenderer(this);
            Loki.setPos(0.0F, 24.0F, 0.0F);
    
    
            cube_r1 = new ModelRenderer(this);
            cube_r1.setPos(0.0F, 0.0F, 0.0F);
            Loki.addChild(cube_r1);
            setRotationAngle(cube_r1, 0.3054F, 0.0F, 0.0F);
            cube_r1.texOffs(34, 38).addBox(-5.0F, -23.0F, 10.0F, 10.0F, 15.0F, 1.0F, 0.0F, false);
    
            Head = new ModelRenderer(this);
            Head.setPos(0.0F, -24.0F, 0.0F);
            Loki.addChild(Head);
            Head.texOffs(0, 0).addBox(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, 1.0F, false);
            Head.texOffs(32, 0).addBox(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, 1.5F, false);
    
            hornV1 = new ModelRenderer(this);
            hornV1.setPos(2.0F, 26.0F, 0.0F);
            Head.addChild(hornV1);
            setRotationAngle(hornV1, -3.1416F, -1.309F, 3.1416F);
            hornV1.texOffs(9, 0).addBox(-3.5F, -36.0F, -2.0F, 3.0F, 1.0F, 3.0F, 0.0F, false);
    
            cube_r2 = new ModelRenderer(this);
            cube_r2.setPos(3.2132F, -39.5353F, -0.5F);
            hornV1.addChild(cube_r2);
            setRotationAngle(cube_r2, 0.0F, -0.5672F, -0.6981F);
            cube_r2.texOffs(9, 0).addBox(-6.5F, -7.0F, 2.25F, 2.0F, 7.0F, 1.0F, 0.0F, false);
            cube_r2.texOffs(9, 0).addBox(-6.5F, -7.0F, 4.0F, 2.0F, 7.0F, 1.0F, 0.0F, false);
    
            cube_r3 = new ModelRenderer(this);
            cube_r3.setPos(3.075F, -40.311F, -0.5F);
            hornV1.addChild(cube_r3);
            setRotationAngle(cube_r3, 0.0F, 0.0F, 0.7854F);
            cube_r3.texOffs(9, 0).addBox(-8.875F, -1.25F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
    
            cube_r4 = new ModelRenderer(this);
            cube_r4.setPos(3.1719F, -40.3345F, -0.5F);
            hornV1.addChild(cube_r4);
            setRotationAngle(cube_r4, 0.0F, 0.0F, 0.3491F);
            cube_r4.texOffs(9, 0).addBox(-9.5F, -0.75F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
    
            cube_r5 = new ModelRenderer(this);
            cube_r5.setPos(3.2132F, -39.5353F, -0.5F);
            hornV1.addChild(cube_r5);
            setRotationAngle(cube_r5, 0.0F, 0.0F, -0.6981F);
            cube_r5.texOffs(9, 0).addBox(-7.5F, -7.0F, -1.0F, 2.0F, 7.0F, 2.0F, 0.0F, false);
    
            hornV2 = new ModelRenderer(this);
            hornV2.setPos(-3.0F, 26.0F, 0.0F);
            Head.addChild(hornV2);
            setRotationAngle(hornV2, 0.0F, -1.1781F, 0.0F);
            hornV2.texOffs(11, 0).addBox(-3.5F, -36.0F, -2.0F, 3.0F, 1.0F, 3.0F, 0.0F, false);
    
            cube_r6 = new ModelRenderer(this);
            cube_r6.setPos(3.2132F, -39.5353F, -0.5F);
            hornV2.addChild(cube_r6);
            setRotationAngle(cube_r6, 0.0F, -0.5672F, -0.6981F);
            cube_r6.texOffs(11, 0).addBox(-6.5F, -7.0F, 2.25F, 2.0F, 7.0F, 1.0F, 0.0F, false);
            cube_r6.texOffs(11, 0).addBox(-6.5F, -7.0F, 4.0F, 2.0F, 7.0F, 1.0F, 0.0F, false);
    
            cube_r7 = new ModelRenderer(this);
            cube_r7.setPos(3.075F, -40.311F, -0.5F);
            hornV2.addChild(cube_r7);
            setRotationAngle(cube_r7, 0.0F, 0.0F, 0.7854F);
            cube_r7.texOffs(11, 0).addBox(-8.875F, -1.25F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
    
            cube_r8 = new ModelRenderer(this);
            cube_r8.setPos(3.1719F, -40.3345F, -0.5F);
            hornV2.addChild(cube_r8);
            setRotationAngle(cube_r8, 0.0F, 0.0F, 0.3491F);
            cube_r8.texOffs(11, 0).addBox(-9.5F, -0.75F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
    
            cube_r9 = new ModelRenderer(this);
            cube_r9.setPos(3.2132F, -39.5353F, -0.5F);
            hornV2.addChild(cube_r9);
            setRotationAngle(cube_r9, 0.0F, 0.0F, -0.6981F);
            cube_r9.texOffs(11, 0).addBox(-7.5F, -7.0F, -1.0F, 2.0F, 7.0F, 2.0F, 0.0F, false);
    
            LeftLeg = new ModelRenderer(this);
            LeftLeg.setPos(1.9F, -12.0F, 0.0F);
            Loki.addChild(LeftLeg);
            LeftLeg.texOffs(0, 16).addBox(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, 1.0F, true);
    
            RightLeg = new ModelRenderer(this);
            RightLeg.setPos(-1.9F, -12.0F, 0.0F);
            Loki.addChild(RightLeg);
            RightLeg.texOffs(0, 16).addBox(-2.0F, 0.0F, -2.0F, 4.0F, 12.0F, 4.0F, 1.0F, false);
    
            LeftArm = new ModelRenderer(this);
            LeftArm.setPos(5.0F, -22.0F, 0.0F);
            Loki.addChild(LeftArm);
            LeftArm.texOffs(40, 15).addBox(-1.0F, -2.0F, -2.0F, 4.0F, 12.0F, 4.0F, 1.0F, true);
    
            RightArm = new ModelRenderer(this);
            RightArm.setPos(-5.0F, -22.0F, 0.0F);
            Loki.addChild(RightArm);
            RightArm.texOffs(40, 15).addBox(-3.0F, -2.0F, -2.0F, 4.0F, 12.0F, 4.0F, 1.0F, false);
    
            Body = new ModelRenderer(this);
            Body.setPos(0.0F, -24.0F, 0.0F);
            Loki.addChild(Body);
            Body.texOffs(16, 16).addBox(-4.0F, 0.0F, -2.0F, 8.0F, 12.0F, 4.0F, 1.01F, false);
            if (LokiBootsArmorItem.Head) {
                Head.visible = true;
            } else {
                Head.visible = false;
            }
            if (LokiBootsArmorItem.Body) {
              Body.visible = true;
                RightArm.visible = true;
                LeftArm.visible = true;
            } else{
                Body.visible = false;
                RightArm.visible = false;
                LeftArm.visible = false;
        }
            if (LokiBootsArmorItem.Leggings){
                LeftLeg.visible = true;
                RightLeg.visible = true;
            }else {
    
                LeftLeg.visible = false;
                RightLeg.visible = false;
            }
    
        }

     

  9. ok so I fixed this error in a bit stupid way I think... but it works. But there is still the error with the rotation and animation stuff

        public static boolean Head;
        public static boolean Body;
        public static boolean Leggings;
    
    
    @SuppressWarnings("unchecked")
        @OnlyIn(Dist.CLIENT)
        @Override
        public <A extends BipedModel<?>> A getArmorModel(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlotType armorSlot, A _default) {
    
            LokiModel model = new LokiModel(1.0f);
            switch(slot) {
                case HEAD:
                    Head = true;
                    Body = false;
                    Leggings = false;
                    break;
                case CHEST:
                    Head = false;
                    Body = true;
                    Leggings = false;
                    break;
                case LEGS:
                    Head = false;
                    Leggings = true;
                    Body = false;
                    break;
                case FEET:
                    Head = false;
                    Body = false;
                    Leggings = true;
            }
    
    
    
            model.young = _default.young;
            model.crouching = _default.crouching;
            model.riding = _default.riding;
            model.rightArmPose = _default.rightArmPose;
            model.leftArmPose = _default.leftArmPose;
    
            return (A) model;
    
        }

    and I put this in my model class:

     if (LokiBootsArmorItem.Head) {
                Head.visible = true;
            } else {
                Head.visible = false;
            }
            if (LokiBootsArmorItem.Body) {
              Body.visible = true;
                RightArm.visible = true;
                LeftArm.visible = true;
            } else{
                Body.visible = false;
                RightArm.visible = false;
                LeftArm.visible = false;
        }
            if (LokiBootsArmorItem.Leggings){
                LeftLeg.visible = true;
                RightLeg.visible = true;
            }else {
    
                LeftLeg.visible = false;
                RightLeg.visible = false;
            }

     

×
×
  • Create New...

Important Information

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