Jump to content

(SOLVED)How to go about created Directional Block? (like observer)


Recommended Posts

Posted (edited)

My block works perfectly fine until I added code to face the player when placed (similar to how the observer does when it is placed). Now the block will appear as a missing texture when placed, I messed around with the block state and the block model .json files also to no success. (I'd post the .png screenshot if I could, but it apparently would fail to attach)

 

Code for Block:

package dev.theagameplayer.visionarymod.block;

 

import javax.annotation.Nullable;

 

import net.minecraft.block.Block;

import net.minecraft.block.BlockState;

import net.minecraft.block.DirectionalBlock;

import net.minecraft.item.BlockItemUseContext;

import net.minecraft.state.DirectionProperty;

import net.minecraft.util.Rotation;

import net.minecraft.util.Mirror;

import net.minecraft.util.math.BlockPos;

import net.minecraft.world.IWorld;

 

public class SteamVent extends DirectionalBlock {

 

public static final DirectionProperty FACING = DirectionalBlock.FACING;

 

protected SteamVent(Block.Properties builder) {

super(builder);

}

 

@Nullable

    @Override

    public BlockState getStateForPlacement(BlockItemUseContext context) {

        return this.getDefaultState().with(FACING, context.getNearestLookingDirection().getOpposite());

    }

 

@Override

    public BlockState rotate(BlockState state, IWorld world, BlockPos pos, Rotation direction) {

        return state.with(FACING, direction.rotate(state.get(FACING)));

    }

 

@Override

    public BlockState mirror(BlockState state, Mirror mirrorIn) {

        return state.rotate(mirrorIn.toRotation(state.get(FACING)));

    }

 

}

 

 

 

Blockstate:

{

    "variants": {

        "facing=down":  { "model": "visionarymod:block/steamvent", "x": 180 },

        "facing=up":    { "model": "visionarymod:block/steamvent" },

        "facing=north": { "model": "visionarymod:block/steamvent" },

        "facing=south": { "model": "visionarymod:block/steamvent", "y": 180 },

        "facing=west":  { "model": "visionarymod:block/steamvent", "y": 270 },

        "facing=east":  { "model": "visionarymod:block/steamvent", "y": 90 }

    }

}

 

 

 

Model:

{

    "parent": "block/block",

    "textures": {

        "bottom": "block/netherrack",

        "side": "block/netherrack",

        "top": "block/netherrack",

        "front": "visionarymod:block/steamvent",

        "particle": "visionarymod:block/steamvent"

    }

}

 

 

I appreciate the help :)

Edited by A-Game
Posted

I registered the block properties in a "VisionaryBlocks" class under the same package (not sure if I'm supposed to move that). As for overriding the "fillStateContainer", I'll look into that.

Posted

No success, still not showing the texture for the block.

Heres the new code:

 

 

package dev.theagameplayer.visionarymod.block;

 

import javax.annotation.Nullable;

 

import net.minecraft.block.Block;

import net.minecraft.block.BlockState;

import net.minecraft.block.DirectionalBlock;

import net.minecraft.item.BlockItemUseContext;

import net.minecraft.state.DirectionProperty;

import net.minecraft.state.StateContainer;

import net.minecraft.util.Rotation;

import net.minecraft.util.Mirror;

import net.minecraft.util.math.BlockPos;

import net.minecraft.world.IWorld;

 

public class SteamVent extends DirectionalBlock {

 

public static final DirectionProperty FACING = DirectionalBlock.FACING;

 

protected SteamVent(Block.Properties builder) {

super(builder);

}

 

@Override

protected void fillStateContainer(StateContainer.Builder<Block, BlockState> builder) {

      builder.add(FACING);

}

 

@Nullable

    @Override

    public BlockState getStateForPlacement(BlockItemUseContext context) {

        return this.getDefaultState().with(FACING, context.getNearestLookingDirection().getOpposite());

    }

 

@Override

    public BlockState rotate(BlockState state, IWorld world, BlockPos pos, Rotation direction) {

        return state.with(FACING, direction.rotate(state.get(FACING)));

    }

 

@Override

    public BlockState mirror(BlockState state, Mirror mirrorIn) {

        return state.rotate(mirrorIn.toRotation(state.get(FACING)));

    }

 

 

 

}

Posted

Log:

[29Sep2019 13:56:41.880] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20190829.143755, --fml.mcVersion, 1.14.4, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 28.1.0, --version, MOD_DEV, --assetIndex, 1.14, --assetsDir, /Users/mmeans/.gradle/caches/forge_gradle/assets, --username, Dev, --accessToken, ❄❄❄❄❄❄❄❄, --userProperties, {}]
[29Sep2019 13:56:41.886] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 3.2.0+60+b86c1d4 starting: java version 1.8.0_222 by AdoptOpenJDK
[29Sep2019 13:56:42.171] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[29Sep2019 13:56:43.612] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmluserdevclient' with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, /Users/mattmeans/.gradle/caches/forge_gradle/assets, --assetIndex, 1.14, --username, Dev, --accessToken, ❄❄❄❄❄❄❄❄, --userProperties, {}]
[29Sep2019 13:56:47.205] [Client thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Dev
[29Sep2019 13:56:59.439] [Client thread/WARN] [net.minecraft.client.GameSettings/]: Skipping bad option: lastServer:
[29Sep2019 13:56:59.530] [Client thread/INFO] [net.minecraft.client.Minecraft/]: LWJGL Version: 3.2.1 build 12
[29Sep2019 13:57:01.365] [modloading-worker-1/INFO] [net.minecraftforge.common.ForgeMod/FORGEMOD]: Forge mod loading, version 28.1.0, for MC 1.14.4 with MCP 20190829.143755
[29Sep2019 13:57:01.365] [modloading-worker-1/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v28.1.0 Initialized
[29Sep2019 13:57:05.983] [Realms Notification Availability checker #1/INFO] [com.mojang.realmsclient.client.RealmsClient/]: Could not authorize you against Realms server: Invalid session id
[29Sep2019 13:57:10.127] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [visionarymod] Starting version check at http://myurl.me/
[29Sep2019 13:57:10.597] [Forge Version Check/WARN] [net.minecraftforge.fml.VersionChecker/]: Failed to process update information
java.io.IOException: Server returned HTTP response code: 400 for URL: http://myurl.me/
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_222]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_222]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_222]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_222]
    at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1950) ~[?:1.8.0_222]
    at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1945) ~[?:1.8.0_222]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_222]
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1944) ~[?:1.8.0_222]
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1514) ~[?:1.8.0_222]
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) ~[?:1.8.0_222]
    at net.minecraftforge.fml.VersionChecker$1.openUrlStream(VersionChecker.java:189) ~[?:?]
    at net.minecraftforge.fml.VersionChecker$1.process(VersionChecker.java:206) ~[?:?]
    at java.lang.Iterable.forEach(Iterable.java:75) [?:1.8.0_222]
    at net.minecraftforge.fml.VersionChecker$1.run(VersionChecker.java:157) [?:?]
Caused by: java.io.IOException: Server returned HTTP response code: 400 for URL: http://myurl.me/
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900) ~[?:1.8.0_222]
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) ~[?:1.8.0_222]
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) ~[?:1.8.0_222]
    at net.minecraftforge.fml.VersionChecker$1.openUrlStream(VersionChecker.java:173) ~[?:?]
    ... 3 more
[29Sep2019 13:57:10.617] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[29Sep2019 13:57:11.098] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Found status: UP_TO_DATE Current: 28.1.0 Target: null
[29Sep2019 13:57:12.020] [Server-Worker-1/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'visionarymod:blockstates/steamvent.json' in resourcepack: 'main' for variant: 'facing=south': Unknown blockstate property: 'facing'
[29Sep2019 13:57:12.021] [Server-Worker-1/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'visionarymod:blockstates/steamvent.json' in resourcepack: 'main' for variant: 'facing=east': Unknown blockstate property: 'facing'
[29Sep2019 13:57:12.021] [Server-Worker-1/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'visionarymod:blockstates/steamvent.json' in resourcepack: 'main' for variant: 'facing=down': Unknown blockstate property: 'facing'
[29Sep2019 13:57:12.021] [Server-Worker-1/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'visionarymod:blockstates/steamvent.json' in resourcepack: 'main' for variant: 'facing=north': Unknown blockstate property: 'facing'
[29Sep2019 13:57:12.021] [Server-Worker-1/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'visionarymod:blockstates/steamvent.json' in resourcepack: 'main' for variant: 'facing=up': Unknown blockstate property: 'facing'
[29Sep2019 13:57:12.021] [Server-Worker-1/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'visionarymod:blockstates/steamvent.json' in resourcepack: 'main' for variant: 'facing=west': Unknown blockstate property: 'facing'
[29Sep2019 13:57:12.021] [Server-Worker-1/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'visionarymod:blockstates/steamvent.json' missing model for variant: 'visionarymod:steamvent#'
[29Sep2019 13:57:13.737] [Client thread/WARN] [net.minecraft.client.GameSettings/]: Skipping bad option: lastServer:
[29Sep2019 13:57:13.895] [Client thread/INFO] [net.minecraft.client.audio.SoundSystem/]: OpenAL initialized.
[29Sep2019 13:57:13.898] [Client thread/INFO] [net.minecraft.client.audio.SoundEngine/SOUNDS]: Sound engine started
[29Sep2019 13:57:14.068] [Client thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512 textures-atlas
[29Sep2019 13:57:14.734] [Client thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256 textures/particle-atlas
[29Sep2019 13:57:14.735] [Client thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256 textures/painting-atlas
[29Sep2019 13:57:14.735] [Client thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 128x128 textures/mob_effect-atlas
[29Sep2019 13:57:20.036] [Thread-1/FATAL] [net.minecraftforge.common.ForgeConfig/CORE]: Forge config just got changed on the file system!
[29Sep2019 13:57:21.844] [Client thread/INFO] [net.minecraft.world.storage.SaveFormat/]: Deleting level Test World
[29Sep2019 13:57:21.845] [Client thread/INFO] [net.minecraft.world.storage.SaveFormat/]: Attempt 1...
[29Sep2019 13:57:30.750] [Client thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[29Sep2019 13:57:30.751] [Client thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[29Sep2019 13:57:30.752] [Client thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[29Sep2019 13:57:30.753] [Client thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[29Sep2019 13:57:30.754] [Client 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]
[29Sep2019 13:57:32.023] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Starting integrated minecraft server version 1.14.4
[29Sep2019 13:57:32.024] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Generating keypair
[29Sep2019 13:57:32.140] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Configuration file ./saves/Test World/serverconfig/forge-server.toml is not correct. Correcting
[29Sep2019 13:57:32.142] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server was corrected from null to SimpleCommentedConfig:{}
[29Sep2019 13:57:32.142] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.removeErroringEntities was corrected from null to false
[29Sep2019 13:57:32.142] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.removeErroringTileEntities was corrected from null to false
[29Sep2019 13:57:32.142] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.fullBoundingBoxLadders was corrected from null to false
[29Sep2019 13:57:32.143] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.zombieBaseSummonChance was corrected from null to 0.1
[29Sep2019 13:57:32.143] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.zombieBabyChance was corrected from null to 0.05
[29Sep2019 13:57:32.143] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.logCascadingWorldGeneration was corrected from null to true
[29Sep2019 13:57:32.143] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.fixVanillaCascading was corrected from null to false
[29Sep2019 13:57:32.143] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.dimensionUnloadQueueDelay was corrected from null to 0
[29Sep2019 13:57:32.143] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.clumpingThreshold was corrected from null to 64
[29Sep2019 13:57:32.143] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.treatEmptyTagsAsAir was corrected from null to false
[29Sep2019 13:57:32.258] [Server thread/INFO] [net.minecraftforge.registries.GameData/REGISTRIES]: Injecting existing registry data into this SERVER instance
[29Sep2019 13:57:32.566] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Found new data pack vanilla, loading it automatically
[29Sep2019 13:57:32.567] [Server thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, main, forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-recomp.jar
[29Sep2019 13:57:33.010] [Server thread/INFO] [net.minecraft.item.crafting.RecipeManager/]: Loaded 6 recipes
[29Sep2019 13:57:34.195] [Server thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 811 advancements
[29Sep2019 13:57:35.413] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Preparing start region for dimension minecraft:overworld
[29Sep2019 13:57:35.446] [Client thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[29Sep2019 13:57:36.650] [Client thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[29Sep2019 13:57:36.650] [Client thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[29Sep2019 13:57:37.102] [Client thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 1%
[29Sep2019 13:57:37.629] [Client thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 1%
[29Sep2019 13:57:38.175] [Client thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 16%
[29Sep2019 13:57:39.378] [Client thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 25%
[29Sep2019 13:57:39.378] [Client thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 25%
[29Sep2019 13:57:39.445] [Client thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 55%
[29Sep2019 13:57:40.078] [Client thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 56%
[29Sep2019 13:57:41.157] [Client thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 66%
[29Sep2019 13:57:41.157] [Client thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 66%
[29Sep2019 13:57:42.089] [Client thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 86%
[29Sep2019 13:57:42.089] [Client thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 86%
[29Sep2019 13:57:42.090] [Client thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Time elapsed: 6666 ms
[29Sep2019 13:57:42.213] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[29Sep2019 13:57:42.214] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[29Sep2019 13:57:43.776] [Netty Local Client IO #0/INFO] [net.minecraftforge.fml.network.NetworkHooks/]: Connected to a modded server.
[29Sep2019 13:57:43.963] [Server thread/INFO] [net.minecraft.server.management.PlayerList/]: Dev[local:E:44390185] logged in with entity id 1 at (233.5, 4.0, -20.5)
[29Sep2019 13:57:44.150] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev joined the game
[29Sep2019 13:57:44.400] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game...
[29Sep2019 13:57:44.423] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'Test World'/minecraft:overworld
[29Sep2019 13:57:45.201] [pool-3-thread-1/WARN] [com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService/]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@3ce0f757[id=380df991-f603-344c-a090-369bad2a924a,name=Dev,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
    at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:79) ~[authlib-1.5.25.jar:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:180) ~[authlib-1.5.25.jar:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) ~[authlib-1.5.25.jar:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) ~[authlib-1.5.25.jar:?]
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716) ~[guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424) ~[guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298) ~[guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211) ~[guava-21.0.jar:?]
    at com.google.common.cache.LocalCache.get(LocalCache.java:4154) ~[guava-21.0.jar:?]
    at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158) ~[guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147) ~[guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5153) ~[guava-21.0.jar:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) ~[authlib-1.5.25.jar:?]
    at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:1950) ~[?:?]
    at net.minecraft.client.resources.SkinManager.lambda$loadProfileTextures$1(SkinManager.java:111) ~[?:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_222]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_222]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_222]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_222]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
[29Sep2019 13:57:45.564] [Client thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 0 advancements
[29Sep2019 13:58:01.025] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game...
[29Sep2019 13:58:01.029] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'Test World'/minecraft:overworld
[29Sep2019 13:58:01.931] [Server thread/INFO] [net.minecraft.network.play.ServerPlayNetHandler/]: Dev lost connection: Disconnected
[29Sep2019 13:58:01.932] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev left the game
[29Sep2019 13:58:01.935] [Server thread/INFO] [net.minecraft.network.play.ServerPlayNetHandler/]: Stopping singleplayer server as player logged out
[29Sep2019 13:58:01.977] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Stopping server
[29Sep2019 13:58:01.977] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving players
[29Sep2019 13:58:01.977] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving worlds
[29Sep2019 13:58:01.977] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'Test World'/minecraft:overworld
[29Sep2019 13:58:02.024] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (Test World): All chunks are saved
[29Sep2019 13:58:02.033] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (Test World): All chunks are saved
[29Sep2019 13:58:02.869] [Client thread/INFO] [net.minecraft.client.Minecraft/]: Stopping!
 

Posted
1 hour ago, A-Game said:

Exception loading blockstate definition: 'visionarymod:blockstates/steamvent.json' in resourcepack: 'main' for variant: 'facing=east': Unknown blockstate property: 'facing'

Does your blockstate.json file have the facing property in it?

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

Yes

 

{

    "variants": {

        "facing=down":  { "model": "visionarymod:block/steamvent", "x": 180 },

        "facing=up":    { "model": "visionarymod:block/steamvent" },

        "facing=north": { "model": "visionarymod:block/steamvent" },

        "facing=south": { "model": "visionarymod:block/steamvent", "y": 180 },

        "facing=west":  { "model": "visionarymod:block/steamvent", "y": 270 },

        "facing=east":  { "model": "visionarymod:block/steamvent", "y": 90 }

    }

}

Posted

The VisionaryBlocks file where the block is registered:

 

package dev.theagameplayer.visionarymod.block;

import dev.theagameplayer.visionarymod.VisionaryMod;
import net.minecraft.block.Block;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraftforge.event.RegistryEvent.Register;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;
import net.minecraftforge.registries.ObjectHolder;

@ObjectHolder("visionarymod")
@EventBusSubscriber(bus=Bus.MOD)
public class VisionaryBlocks extends VisionaryMod {
    
    public static final Block steamvent = null;
    
    @SubscribeEvent
    public static void registerBlocks(Register<Block> event) {
        event.getRegistry().registerAll(
                new Block(Block.Properties.create(Material.ROCK).hardnessAndResistance(4.0f, 0.4f).lightValue(4).sound(SoundType.STONE)).setRegistryName("steamvent")
        );
    }

}
 

Posted

Well it was not just that actually, I forgot to add the "elements:" of the observer model .json file into the steam vent model .json file, thanks for the help, I'm very much appreciating it ;)

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • i have just made a modpack and i accidentally added a few fabric mods and after deleting them i can no longer launch the pack if any one could help these are my latest logs [22:42:24] [main/INFO]:additionalClassesLocator: [optifine., net.optifine.] [22:42:25] [main/INFO]:Compatibility level set to JAVA_17 [22:42:25] [main/ERROR]:Mixin config epicsamurai.mixins.json does not specify "minVersion" property [22:42:25] [main/INFO]:Launching target 'forgeclient' with arguments [--version, forge-43.4.0, --gameDir, C:\Users\Mytht\curseforge\minecraft\Instances\overseer (1), --assetsDir, C:\Users\Mytht\curseforge\minecraft\Install\assets, --uuid, 4c176bf14d4041cba29572aa4333ca1d, --username, mythtitan0, --assetIndex, 1.19, --accessToken, ????????, --clientId, MGJiMTEzNGEtMjc3Mi00ODE0LThlY2QtNzFiODMyODEyYjM4, --xuid, 2535469006485684, --userType, msa, --versionType, release, --width, 854, --height, 480] [22:42:25] [main/WARN]:Reference map 'insanelib.refmap.json' for insanelib.mixins.json could not be read. If this is a development environment you can ignore this message [22:42:25] [main/WARN]:Reference map 'corpsecurioscompat.refmap.json' for gravestonecurioscompat.mixins.json could not be read. If this is a development environment you can ignore this message [22:42:25] [main/WARN]:Reference map 'nitrogen_internals.refmap.json' for nitrogen_internals.mixins.json could not be read. If this is a development environment you can ignore this message [22:42:25] [main/WARN]:Reference map 'arclight.mixins.refmap.json' for epicsamurai.mixins.json could not be read. If this is a development environment you can ignore this message [22:42:25] [main/WARN]:Reference map 'simplyswords-common-refmap.json' for simplyswords-common.mixins.json could not be read. If this is a development environment you can ignore this message [22:42:25] [main/WARN]:Reference map 'simplyswords-forge-refmap.json' for simplyswords.mixins.json could not be read. If this is a development environment you can ignore this message [22:42:25] [main/WARN]:Reference map '${refmap_target}refmap.json' for corgilib.forge.mixins.json could not be read. If this is a development environment you can ignore this message [22:42:25] [main/WARN]:Reference map 'MysticPotions-forge-refmap.json' for mysticpotions.mixins.json could not be read. If this is a development environment you can ignore this message [22:42:26] [main/WARN]:Reference map 'packetfixer-forge-forge-refmap.json' for packetfixer-forge.mixins.json could not be read. If this is a development environment you can ignore this message [22:42:26] [main/WARN]:Error loading class: atomicstryker/multimine/client/MultiMineClient (java.lang.ClassNotFoundException: atomicstryker.multimine.client.MultiMineClient) [22:42:26] [main/WARN]:@Mixin target atomicstryker.multimine.client.MultiMineClient was not found treechop.forge.compat.mixins.json:MultiMineMixin [22:42:26] [main/WARN]:Error loading class: com/simibubi/create/content/contraptions/components/fan/AirCurrent (java.lang.ClassNotFoundException: com.simibubi.create.content.contraptions.components.fan.AirCurrent) [22:42:26] [main/WARN]:Error loading class: shadows/apotheosis/ench/table/ApothEnchantContainer (java.lang.ClassNotFoundException: shadows.apotheosis.ench.table.ApothEnchantContainer) [22:42:26] [main/WARN]:@Mixin target shadows.apotheosis.ench.table.ApothEnchantContainer was not found origins_classes.mixins.json:common.apotheosis.ApotheosisEnchantmentMenuMixin [22:42:26] [main/WARN]:Error loading class: se/mickelus/tetra/blocks/workbench/WorkbenchTile (java.lang.ClassNotFoundException: se.mickelus.tetra.blocks.workbench.WorkbenchTile) [22:42:26] [main/WARN]:@Mixin target se.mickelus.tetra.blocks.workbench.WorkbenchTile was not found origins_classes.mixins.json:common.tetra.WorkbenchTileMixin [22:42:27] [main/WARN]:Error loading class: tfar/davespotioneering/blockentity/AdvancedBrewingStandBlockEntity (java.lang.ClassNotFoundException: tfar.davespotioneering.blockentity.AdvancedBrewingStandBlockEntity) [22:42:27] [main/WARN]:@Mixin target tfar.davespotioneering.blockentity.AdvancedBrewingStandBlockEntity was not found itemproductionlib.mixins.json:davespotioneering/AdvancedBrewingStandBlockEntityMixin [22:42:27] [main/WARN]:Error loading class: fuzs/visualworkbench/world/inventory/ModCraftingMenu (java.lang.ClassNotFoundException: fuzs.visualworkbench.world.inventory.ModCraftingMenu) [22:42:27] [main/WARN]:@Mixin target fuzs.visualworkbench.world.inventory.ModCraftingMenu was not found itemproductionlib.mixins.json:visualworkbench/ModCraftingMenuMixin [22:42:27] [main/WARN]:Error loading class: fuzs/easymagic/world/inventory/ModEnchantmentMenu (java.lang.ClassNotFoundException: fuzs.easymagic.world.inventory.ModEnchantmentMenu) [22:42:27] [main/WARN]:@Mixin target fuzs.easymagic.world.inventory.ModEnchantmentMenu was not found skilltree.mixins.json:easymagic/ModEnchantmentMenuMixin [22:42:27] [main/WARN]:Error loading class: shadows/apotheosis/ench/table/ApothEnchantmentMenu (java.lang.ClassNotFoundException: shadows.apotheosis.ench.table.ApothEnchantmentMenu) [22:42:27] [main/WARN]:@Mixin target shadows.apotheosis.ench.table.ApothEnchantmentMenu was not found skilltree.mixins.json:apotheosis/ApothEnchantContainerMixin [22:42:27] [main/WARN]:Error loading class: shadows/apotheosis/adventure/affix/socket/SocketingRecipe (java.lang.ClassNotFoundException: shadows.apotheosis.adventure.affix.socket.SocketingRecipe) [22:42:27] [main/WARN]:@Mixin target shadows.apotheosis.adventure.affix.socket.SocketingRecipe was not found skilltree.mixins.json:apotheosis/SocketingRecipeMixin [22:42:27] [main/WARN]:Error loading class: shadows/apotheosis/adventure/affix/socket/gem/bonus/AttributeBonus (java.lang.ClassNotFoundException: shadows.apotheosis.adventure.affix.socket.gem.bonus.AttributeBonus) [22:42:27] [main/WARN]:@Mixin target shadows.apotheosis.adventure.affix.socket.gem.bonus.AttributeBonus was not found skilltree.mixins.json:apotheosis/AttributeBonusMixin [22:42:27] [main/WARN]:Error loading class: shadows/apotheosis/adventure/affix/socket/gem/bonus/EnchantmentBonus (java.lang.ClassNotFoundException: shadows.apotheosis.adventure.affix.socket.gem.bonus.EnchantmentBonus) [22:42:27] [main/WARN]:@Mixin target shadows.apotheosis.adventure.affix.socket.gem.bonus.EnchantmentBonus was not found skilltree.mixins.json:apotheosis/EnchantmentBonusMixin [22:42:27] [main/WARN]:Error loading class: shadows/apotheosis/adventure/client/AdventureModuleClient (java.lang.ClassNotFoundException: shadows.apotheosis.adventure.client.AdventureModuleClient) [22:42:27] [main/WARN]:@Mixin target shadows.apotheosis.adventure.client.AdventureModuleClient was not found skilltree.mixins.json:apotheosis/AdventureModuleClientMixin [22:42:27] [main/WARN]:Error loading class: me/shedaniel/rei/RoughlyEnoughItemsCoreClient (java.lang.ClassNotFoundException: me.shedaniel.rei.RoughlyEnoughItemsCoreClient) [22:42:27] [main/WARN]:Error loading class: com/replaymod/replay/ReplayHandler (java.lang.ClassNotFoundException: com.replaymod.replay.ReplayHandler) [22:42:27] [main/WARN]:Error loading class: net/coderbot/iris/pipeline/newshader/ExtendedShader (java.lang.ClassNotFoundException: net.coderbot.iris.pipeline.newshader.ExtendedShader) [22:42:27] [main/WARN]:Error loading class: net/irisshaders/iris/pipeline/programs/ExtendedShader (java.lang.ClassNotFoundException: net.irisshaders.iris.pipeline.programs.ExtendedShader) [22:42:27] [main/INFO]:Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.3.6).
    • My Mohist server crashed as well but all it says in logs is " C:\Minecraft Mohist server>java -Xm6G -jar mohist.jar nogul  Error: Unable to access jarfile mohist.jar   C:\Minecraft Mohist server>PAUSE press any key to continue  .  .  . " Any ideas? i have the server file that its looking for where its looking for it.
    • It is an issue with Pixelmon - maybe report it to the creators
  • Topics

×
×
  • Create New...

Important Information

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