• 0

    posted a message on Using an /items texture for a block?

    So I've successfully ported the barriers from 1.8 to 1.7, the only problem is that the barrier texture is in /items.png and while that works for the item icon, it doesn't work at all for the block icon. This matters due to the breaking particles.


        @SideOnly(Side.CLIENT)
        public String getItemIconName()
        {
            return "barrier";
        }

        @SideOnly(Side.CLIENT)
        public void registerBlockIcons(IIconRegister p_149651_1_)
        {
            this.blockIcon = Item.getItemFromBlock(ModBlocks.barrier).getIconFromDamage(0);
        }
    
    
    

    This is the code I'm using. When in-game, the barrier's block texture is all wonky and a glitched version of the stitched blocks texture with weird UVs. How can I fix this?

    Posted in: Modification Development
  • 0

    posted a message on CodeChicken errors when used as dependency [Solved]

    Ah, nuts. I forgot to update this to state I resolved it. It turns out I needed both CodeChickenLib AND CodeChickenCore!

    Posted in: Modification Development
  • 0

    posted a message on CodeChicken errors when used as dependency [Solved]

    So hey, I'm trying to continue Et Futurum, and I noticed it uses NEI and CodeChickenCore as dependencies for its API. Okay, no problem. I imported the latest downloadable versions (He uses newer dev versions but those ones are no longer available and so I had to use the latest stable builds instead, even though I doubt this is the issue I felt it should be mentioned anyways.) and then try running the workspace, but it'll crash with this error before the game window can even open.

    [11:50:26] [main/INFO] [GradleStart]: Extra: [][11:50:26] [main/INFO] [GradleStart]: Extra: [][11:50:26] [main/INFO] [GradleStart]: Found and added coremod: codechicken.core.launch.CodeChickenCorePlugin[11:50:26] [main/INFO] [GradleStart]: Found and added coremod: codechicken.nei.asm.NEICorePlugin[11:50:26] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Roadh/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker][11:50:26] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker[11:50:26] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker[11:50:26] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker[11:50:26] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker[11:50:26] [main/INFO] [FML]: Forge Mod Loader version 7.99.40.1614 for Minecraft 1.7.10 loading[11:50:26] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_231, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_231[11:50:26] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation[11:50:26] [main/INFO] [FML]: Found a command line coremod : codechicken.nei.asm.NEICorePlugin[11:50:26] [main/WARN] [FML]: The coremod codechicken.nei.asm.NEICorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: java.lang.NoClassDefFoundError: codechicken/lib/asm/ASMInit[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at codechicken.nei.asm.NEICorePlugin.<init>(NEICorePlugin.java:18)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Constructor.newInstance(Unknown Source)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.Class.newInstance(Unknown Source)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.relauncher.CoreModManager.loadCoreMod(CoreModManager.java:501)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:219)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:90)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:67)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:34)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:126)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:115)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at GradleStart.main(Unknown Source)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: Caused by: java.lang.ClassNotFoundException: codechicken.lib.asm.ASMInit[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.ClassLoader.loadClass(Unknown Source)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.ClassLoader.loadClass(Unknown Source)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: ... 16 more[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: Caused by: java.lang.NullPointerException[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: ... 18 more[11:50:26] [main/ERROR] [FML]: An error occurred trying to configure the minecraft home at C:\Users\Roadh\Documents\MCMods\ModdingDevelopment\1710\etfuturum\eclipse\. for Forge Mod Loaderjava.lang.NoClassDefFoundError: codechicken/lib/asm/ASMInit at codechicken.nei.asm.NEICorePlugin.<init>(NEICorePlugin.java:18) ~[NotEnoughItems-1.7.10-1.0.5.120-universal.jar:?] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_231] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_231] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_231] at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_231] at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_231] at cpw.mods.fml.relauncher.CoreModManager.loadCoreMod(CoreModManager.java:501) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?] at cpw.mods.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:219) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?] at cpw.mods.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:90) [forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?] at cpw.mods.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:67) [forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?] at cpw.mods.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:34) [forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?] at cpw.mods.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:126) [forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?] at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?]Caused by: java.lang.ClassNotFoundException: codechicken.lib.asm.ASMInit at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_231] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_231] ... 16 moreCaused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_231] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_231] ... 16 moreException in thread "main" [11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: java.lang.NoClassDefFoundError: codechicken/lib/asm/ASMInit[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at codechicken.nei.asm.NEICorePlugin.<init>(NEICorePlugin.java:18)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Constructor.newInstance(Unknown Source)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.Class.newInstance(Unknown Source)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.relauncher.CoreModManager.loadCoreMod(CoreModManager.java:501)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:219)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:90)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:67)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:34)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at cpw.mods.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:126)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:115)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at GradleStart.main(Unknown Source)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: Caused by: java.lang.ClassNotFoundException: codechicken.lib.asm.ASMInit[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.ClassLoader.loadClass(Unknown Source)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.ClassLoader.loadClass(Unknown Source)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: ... 16 more[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: Caused by: java.lang.NullPointerException[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)[11:50:26] [main/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: ... 18 more

    Sorry for the wall of text, I'm under the impression spoilers were removed as they are completely absent from the editing toolbar. But yeah, here's the error. I'm not sure what I did wrong at all.

    Posted in: Modification Development
  • 0

    posted a message on Colour picker?

    Hey, is there any kind of tool that takes a colour HEX code, and shows me blocks that most closely match the hex code I gave? I'm trying to build some pixel art and I want to know the absolute best blocks to craft for the job.

    Posted in: Discussion
  • 0

    posted a message on [SOLVED!!] Checking if two scores are equal to values I want

    So, I managed to set up a command block contraption that sends a command if a score is a value, but for the life of my can't figure out how to make it do that only if two scores are equal.
    Doing @a[scores={Died=1,Hunter=1}] doesn't work, it's only one score or the other can be in the curly brackets. What am I doing wrong? I want the command to execute if Hunter and Died are both 1. Thanks in advance for any response, or even just reading.

    If anyone's curious, the command is give @a[scores={Died=1}] compass 1. This works correctly for just the 'Died' scoreboard value. Adding the above 'Hunter=1' variable doesn't work, I can only allow one.

    EDIT Solved!
    I thought a score not being there would count as 0, but it didn't, I'm very sorry for the pointless post, but I'll leave this here, as future people might want to be aware about this for anyone new to scoreboard trickery like myself.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Weird issue on Thermos server

    Hello, I'm running my modpack with Thermos 1.7.10. I've ran into this weird issue that's causing some items to break their functionality, especially in my own code. So basically, items like the cauldron, or fence usually cancel the interaction of other items, like clicking on a fishing rod to a fence won't cast it, etc. This seems to be the case on the vanilla Forge server ran during testing, but upon loading up Thermos, this does not happen, and instead the item is used even if clicked on a block like a fence that should cancel it. This is worrysome as I rely on this cancellation for some things I've implemented, causing them to not function correctly or duplicate blocks. (E.G. I added lava-filled cauldrons, and because of this, on the Thermos server the lava will also be placed next to the cauldron as well as in it, effectively duplicating the lava)
    Is there any way to fix this? This is really frustrating as it breaks fishing farms, some other contraptions, and causes problems for some items including my own. I run the absolute latest version of Thermos, the last version before it was abandoned.

    Posted in: Server Support and Administration
  • 0

    posted a message on Willing to make 3D models

    I sent you a friend request a few days but you didn't respond to it, is this still open?

    Posted in: Modification Development
  • 0

    posted a message on In Need Of Modeller and Coder!!!

    "I do not offer pay, a Minecraft mod doesn't require money so don't ask." This makes you seem a little sharp, good luck getting help with that attitude.

    Posted in: Modification Development
  • 0

    posted a message on How is the sign GUI opened?

    Hey, the title is my issue here. I'm creating custom signs which extend all of the default sign classes, but I can't find anywhere in the vanilla code that causes the sign GUI to open, so I can change the GUI on my own signs. However, I have been unable to find where the sign gets the GUI open and thus have been stuck using the default oak sign GUI on my signs. I really am confused here as I've combed through every single class and other classes the sign references, but could not find any trace of any code that opens the GUI. I can find the .java file for the GUI easily, but I'm at a complete loss as to what causes that code to run. Any help is appreciated, as I really want to change the GUI look for my own custom signs, so they can all match and not just have the same oak GUI that does not match. Thanks.

    Posted in: Modification Development
  • 0

    posted a message on SOLVED!! - Check what the player is holding in a block class

    I managed to solve it while waiting. If anyone else was wondering, I was checking if getCurrentItem().getItem() was null, instead of if getCurrentItem was null, so by that time the game would already be running null code and crashing when I held nothing.


    Here's how I fixed it:

        	EntityPlayer player = Minecraft.getMinecraft().thePlayer;
        	Item heldItem;
        	
        	if (Minecraft.getMinecraft().thePlayer.inventory.getCurrentItem() != null) {
        		heldItem = Minecraft.getMinecraft().thePlayer.inventory.getCurrentItem().getItem();
            	if(player.capabilities.isCreativeMode && heldItem == barrier) {
                    world.spawnParticle(particle, d0, d1, d2, 255.0D, -255D, 0.0D);
                    world.spawnParticle(particle, d0, d1, d2, 255.0D, -255D, 0.0D);
            	}
        	} 


    As you can see, I don't let heldItem ever be set if getCurrentItem() is null unlike the old code, instead of going to .getItem(), since by then the getCurrentItem() will be null.

    Posted in: Modification Development
  • 0

    posted a message on SOLVED!! - Check what the player is holding in a block class

    UPDATE: Okay, so I found out that Minecraft.getMinecraft() has thePlayer which is nothing new, but I learned that this allows me to basically do the same thing as EntityPlayer. (I was under the impression it was missing a few things.) However...

        	EntityPlayer player = Minecraft.getMinecraft().thePlayer;
        	boolean holdingBarrier;
        	
        	if(player.getCurrentEquippedItem().getItem() == Item.getItemFromBlock(VanillaEnhanced.blockBarrier) && player.getCurrentEquippedItem().getItem() != null) {
        		holdingBarrier = true;
        	} else {
        		holdingBarrier = false;
        	}
    		if(player.capabilities.isCreativeMode == true && holdingBarrier == true) {



    (If you're wondering why there's a variable for checking what's in the hand instead of it just being where the last if statement is, I did this just as a placeholder to see what sets the holdingBarrier to true or false for testing. Once I get things working, I'll be cleaning this up.)
    So, here's a little snippet of code I'm having trouble with. The if statement with checking the item crashes the game. If I remove the .getItem() part, and the item.getItemFromBlock parts, instead of crashing, it will just ignore what the player is holding and always return false. If I remove the holding check completely, it'll successfully check the player's game mode but that's only half of what I want.

    If it helps, the block of code this is in, is in onDisplayTick in a block's code, and is marked with @SideOnly(Side.CLIENT). Please go easy on me if I'm missing something obvious; I'm new to code, but I want to get better.

    Posted in: Modification Development
  • 0

    posted a message on SOLVED!! - Check what the player is holding in a block class

    Hey, I'm trying to find out, within my block's class, if the player is holding the block, so that way a variable can be set for use in other areas in that block's class if that is true. I already know where I want to use this, and how I'll implement it, (I'm going to be using it to determine if the code in onDisplayTick will run by if checking if the player is holding the block, be it directly or through a variable, however I can get this done) just my only roadblock is getting that crucial held item check.
    Will I need to create a class for its ItemBlock and modify that, or can this be done solely within the block class? Any help is appreciated.


    On a slightly less important note, is there a way to get a block's texture from the items folder or vice versa? (I didn't make this a separate thread to avoid double posting, and also this isn't big enough of an issue to me to make a new thread, so I just slapped this extra question right here.)

    Posted in: Modification Development
  • 0

    posted a message on Remove default mob drop

    Me again.
    I've tried adding a new withered bones for wither skeletons. For the most part this works just fine but I can't remove just bones from their drops.

    		if(event.entity instanceof EntitySkeleton) {
    			
    			Random random = new Random();
    			int j = random.nextInt(4) + 1;
    			
    			ItemStack itemDrop = new ItemStack(VanillaEnhanced.itemWitheredBone, j);
    
    			if (((EntitySkeleton)event.entityLiving).getSkeletonType() == 1){
    				event.drops.remove(Items.bone); // LINE THAT WON'T WORK
    			}
    			
    			if (((EntitySkeleton)event.entityLiving).getSkeletonType() == 1 && random.nextInt(100) <= 75){
    				event.drops.add(new EntityItem(event.entity.worldObj, event.entity.posX, event.entity.posY, event.entity.posZ, itemDrop));
    			}
    			
    			}


    I've wrote a comment on the line that's SUPPOSED to make it not drop bones, but it doesn't seem to work.

    Posted in: Modification Development
  • 0

    posted a message on [Beta 1.7.3] Basic FOV Slider Mod

    Actually I'm good. New Frontier Craft adds its own FOV slider and doesn't scale the hand, which was added after I made my post.

    Posted in: Minecraft Mods
  • To post a comment, please .