-
Posts
852 -
Joined
-
Last visited
Everything posted by Bektor
-
There is just one problem. A boolean is NEVER null. If it has no value, it gets assigned I think true.
-
Hi, I've got a small problem. I want to have a random boolean in my tile entity which get's saved, but I don't know where to initialize the random boolean. It could be done in the constructor, but the constructor get's called when an object get's created. So wouldn't then be a new random boolean created when for example MC get's restarted instead of using the saved one? Thx in advance. Bektor
-
Hi, I've got a small problem. I want to have a random boolean in my tile entity which get's saved, but I don't know where to initialize the random boolean. It could be done in the constructor, but the constructor get's called when an object get's created. So wouldn't then be a new random boolean created when for example MC get's restarted instead of using the saved one? Thx in advance. Bektor
-
Ok, thx. Just took some time to reply cause of lag of time.
-
Ok, thx. Just took some time to reply cause of lag of time.
-
This with the load time is really the best change. The first thing I noticed, the second thing were the changes made to the theme. If the forum software was written in 2006 and if it is so bad, why not changing to a more modern one and a good one? Wouldn't that help alot?
-
So if I'm doing this with gradle, how can I do this? What do I need to add for this? Currently I've got a small file which saves all the values, like the forge version, minecraft version, mod build number etc., so gradle just puts them into the right place from this file out. And I'm using the latest build of Forge for 1.9.4.
-
Hi, I'm wondering if there is a way to automatically increase the build number of my mod and reset it and if so, what do I need to do to do this. Thx in advance. Bektor EDIT: What I've currently got: task incrementBuildNumber() { dependsOn "reobf" doLast { config.primeval_build = (config.primeval_build.toString().toInteger()) + 1 configFile.withWriter { config.toProperties().store(it, "") } } } jar { appendix = 'universal' } task releaseJars(type: Copy) { from incrementBuildNumber from jar // not sure if this is correct } This is the line in the build.properties: primeval_build=1 So why is it not working?
-
Thx. Works fine.
-
Ok, thx.
-
Hi, I'm wondering how I can let a entity, for example a falling block play a sound. So when the block get's removed and replaced with the falling entity a custom falling sound will be played until the entity reaches the ground. It would also be nice to have the sound quieter when the distance between the player and the block is larger and the sound. And is there a method for letting the sound play later when the player is farer away like in RL? Just to mention, I have the Falling entity instance, but I don't have access to any player... In I think 1.8.9 was it, I did it that way: entityFallingBlock.worldObj.playSoundAtEntity(entityFallingBlock, ModSounds.FALLINING_ROCK_SHORT, .8f, .5f); I'm now using 1.9.4. Thx in advance. Bektor
-
Hi, I'm wondering what happens to onNeighborBlockChange(World worldIn, BlockPos pos, IBlockState state, Block neighborBlock) in Minecraft 1.9.4 cause I can't find it. Thx in advance. Bektor
-
Well, I don't have specifyed them all now. I've got just the one variant in my blockstate.json and it's working!
-
Ah, yeah. Now it's working. So it seems to be that the "defaults": { }, caused the problem. Thx.
-
If you post a log here in the forums the editor begins to lag after you pasted it in. I don't know how long the log needs to be to let the editor lag, but I had the problems with a 500 lines log in a spoiler. Besides that, nice forum update. Finally something better then before with this forum. For me the old one had really long loading times compared to other websites... Keep up the good work.
-
ok, that worked.
-
Ok... how should I add it, for some reason it still shows the error when I set it to 30 and add it under program arguements in the run configuration...
-
Oh, yeah, removed this field while testing more But it does not fix the problem to add this line again. Still the same problem. EDIT: Added the line again: stone.json { "forge_marker": 1, "variants": { "stone": { "andesite": { "model": "minecraft:stone" } } } }
-
Here is the full log. As you can see, there are serveral other json files which give an error, just ignore them.... They are from 1.8.9 or are missing because I haven't implemented them yet.... (rather doing a few hundreds lines of Java code then doing one line json code) Just to mention, this is the code which works without blockstates: { "variants": { "normal": { "model": "minecraft:sand" } } } This works fine and uses the Minecraft model and texture, but when I'm trying to do this with my blockstates it's not working liked described above in the first post. So what's wrong that this is working fine without custom blockstates but not with custom blockstates (which are used as metadata like in 1.7--)...
-
Is there no way to just use the Minecraft model until I've got my own texture done? For one of my blocks its already working that way, but they have just the default block state and no custom ones which the one which is not working has.
-
[21:00:24] [Client thread/ERROR] [FML]: Exception loading model for variant primevalforest:stone#stone=andesite for blockstate "primevalforest:stone[stone=andesite]" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model primevalforest:stone#stone=andesite with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:134) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:222) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:144) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:210) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:127) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:120) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:535) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:381) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:75) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1159) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:130) ~[ModelLoaderRegistry.class:?] ... 21 more [21:00:35] [Client thread/ERROR] [FML]: Exception loading blockstate for the variant primevalforest:stone#stone=andesite: java.lang.Exception: Could not load model definition for variant primevalforest:stone at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:255) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:120) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:210) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:127) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:130) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:111) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:792) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:332) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:554) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:381) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: java.lang.RuntimeException: Encountered an exception when loading model definition of 'primevalforest:stone' from: 'primevalforest:blockstates/stone.json' in resourcepack: 'FMLFileResourcePack:Primeval Forest 2' at net.minecraft.client.renderer.block.model.ModelBakery.loadModelBlockDefinition(ModelBakery.java:222) ~[ModelBakery.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:199) ~[ModelBakery.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:184) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:251) ~[ModelLoader.class:?] ... 23 more
-
Hi, I've got a small problem: I've got a block which has no texture. So I want to use the vanilla texture just for testing until I'm able to get some textures done... (not that good at pixel art) So what am I doing wrong? blockstates.json { "forge_marker": 1, "defaults": { }, "variants": { "stone": { "andesite": { "model": "minecraft:stone" } } } } Java code BlockStates: public static PropertyEnum<StoneType> META_PROPERTY = PropertyEnum.create("stone", StoneType.class); This results in a block with the "missing texture" texture. Thx in advance. Bektor