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 want to understand how complex mods with ASM transformation and coremods work, such as Xray or AntiXray. Why do they break when you simply rename packages? What features of their architecture make refactoring difficult? And what techniques are used to protect these mods? I am interested in technical aspects in order to better understand the bytecode and Forge loader system."
    • I can't figure out if you're looking for help trying to steal someone elses work, or cheat at the game....
    • Title: Why Is It So Hard to Rename and Restructure Mods Like Xray or AntiXray? 🤔 Post text: Hey everyone! I’ve been digging into Minecraft modding for a while and have one big question that I can’t figure out on my own. Maybe someone with more experience could help or give me some advice. Here’s the issue: When I take a “normal” Minecraft mod — for example, one that just adds some blocks or new items — I can easily change its structure, package names, or even rebrand it entirely. It’s straightforward. But as soon as I try this with cheat-type mods like XrayMod or AntiXray, everything falls apart. Even if I just rename the classes, refactor the packages, or hide its identity somehow, the mod either breaks or stops working properly. XrayMod in particular is proving to be a nightmare to modify without losing its core function. So my question is — why is this so much harder with cheat mods like Xray? Is there something fundamentally different about how they’re coded, loaded, or protected that prevents simple renaming or restructuring? And if so, how can I actually learn to understand someone else’s cheat mod enough to safely refactor it without breaking the core features? I’ve already been spending over two months trying to figure this out and haven’t gotten anywhere. It feels like there must be some trick or knowledge I’m missing. Would really appreciate any thoughts, tips, or references — maybe there are guides or techniques for understanding cheat-mod internals? Or if you’ve successfully “disguised” a cheat mod like Xray before, I’d love to hear how you did it. Thanks in advance for any help or discussion. ✌️
    • just started making cinamatic contect check it out on my channel or check out my facebook page    Humbug City Minecraft Youtube https://www.youtube.com/watch?v=v2N6OveKwno https://www.facebook.com/profile.php?id=61575866982337  
    • Where did you get the schematic? Source/Link? And do use an own modpack or a pre-configured from curseforge? If yes, which one On a later time, I can make some tests on my own - but I need the schematic and the modpack name
  • Topics

×
×
  • Create New...

Important Information

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