• 0

    posted a message on How does repeater determine what side power is input?

    BlockPos allows me to set the input side as shown below, however I need multiple input sides. Any ideas?


    BlockPos blockpos = pos.offset(enumfacing);

    if (enumfacing == EnumFacing.DOWN)
    {
    blockpos = pos.offset(EnumFacing.UP);
    }

    if (enumfacing == EnumFacing.NORTH)
    {
    blockpos = pos.offset(EnumFacing.SOUTH);
    }




    EDIT:


    I should note that I am trying to limit the input so a block on or in front of the face of the block does not power it, but a block on all other sides does power it

    Posted in: Modification Development
  • 0

    posted a message on How does repeater determine what side power is input?

    I tried this before but didn't have it implemented into updateTick, thanks. However it brings me back around to either needing EnumFacing side, or figuring out some other way to tell the block what sides can be powered.


    At the moment it's only accepting power from the Front of the block in all orientations which looks like this:


    It's only accepting power from that one side. Could I use BlockPos blockpos = pos.offset(enumfacing); to set the sides I want??

    Posted in: Modification Development
  • 0

    posted a message on Brand New to Modding. Seeking Mentor.

    The best thing to do is watch some tutorials, and try a lot of things. Do not start with one big idea, just like learning art or really anything its a usually bad idea if you don't know what you're doing to make big goals right away. Remember to ask for help no mater how basic the issue might seem. :)


    I started off with Modloader, then Forge, and now mod only in the code MCP spits out without using APIs and I've made a lot of different blocks using things I find in the "default code". I still don't properly know Java, but I can tell what I'm doing enough to make things I like. You should defiantly take the time to learn Java first.

    If you know of a feature that already exist you can use as a reference, USE IT. I see a lot of people trying to make their own features without realizing its either already part of the game somewhere else, or its possible to copy and edit existing code to fit your needs.


    Also, use OneDrive or something to backup your mod source files, textures, everything, and backup often. I needed to reference some of my old mods and found out the backups on my storage HDD have gone corrupt. If I had backups setup properly it would have been avoided.


    Best of luck modding. :)

    Posted in: Modification Development
  • 0

    posted a message on How can I use EnumFacing side in a different way?

    The example code below this is designed to output Redstone to a certain side based on what orientation the block is in.

    public int getWeakPower(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side)
        {
        	EnumFacing enumfacing = blockState.getValue(FACING);
        	
        	
        	if (this.isPowered(blockState))
        	{
        		if ((enumfacing == EnumFacing.DOWN && side == EnumFacing.UP)) return 15;
        		if ((enumfacing == EnumFacing.UP && side == EnumFacing.DOWN)) return 15;
        		if ((enumfacing == EnumFacing.NORTH && side == EnumFacing.SOUTH)) return 15;
        		if ((enumfacing == EnumFacing.SOUTH && side == EnumFacing.NORTH)) return 15;
        		if ((enumfacing == EnumFacing.WEST && side == EnumFacing.EAST)) return 15;
        		if ((enumfacing == EnumFacing.EAST && side == EnumFacing.WEST)) return 15;
        	}
        	return 0;
        }




    In the example code list (... ,EnumFacing side), and I want to use this in canProvidePower but I don't know how to modify it to work with the side code.

    Here is my current code for it thats needing the EnumFacing side


    /**
         * Can this block provide power. Only wire currently seems to have this change based on its state.
         * @return 
         */
        public boolean canProvidePower(IBlockState blockState)
        {
        	EnumFacing enumfacing = blockState.getValue(FACING);
        	EnumFacing side = ;
        	
        	/**
        	 * Side set to false will not allow redstone dust to connect to the block.
        	 */
        	if (enumfacing == EnumFacing.DOWN && side == EnumFacing.UP) return true;
    		if (enumfacing == EnumFacing.UP && side == EnumFacing.DOWN) return true;
    		if (enumfacing == EnumFacing.NORTH && side == EnumFacing.SOUTH) return true;
    		if (enumfacing == EnumFacing.SOUTH && side == EnumFacing.NORTH) return true;
    		if (enumfacing == EnumFacing.WEST && side == EnumFacing.EAST) return true;
    		if (enumfacing == EnumFacing.EAST && side == EnumFacing.WEST) return true;
        	
    		return false;
        }



    Any ideas? :)

    Posted in: Modification Development
  • 0

    posted a message on How does repeater determine what side power is input?

    I figured it out in 1.6.4, however since the mass change in code I can't seem to find what I'm looking for as easily.


    The Repeater and Comparator take input from behind, and does not allow input from any other sides. What part(s) of the code controls this?

    Posted in: Modification Development
  • 1

    posted a message on MCP for 1.11???

    I keep seeing post about it, but can't find any releases. Is there a release for 1.11 yet?


    http://www.minecraftforge.net/forum/index.php?topic=43296.0


    ____

    EDIT

    I've found a forge thing for 1.11. I'm not interested in Forge, just MCP for 1.11

    Posted in: Modification Development
  • 0

    posted a message on Inconsistent results in test?

    Found a new version of Eclipse on http://portableapps.com/ and installed it into the MCP folder.

    The initial test showed the same results, but after I close and reopened it, ran the game in debug mode as usual.

    It works correctly now.



    Portable Version

    Eclipse Standard/SDK

    Version: Kepler Service Release 2
    Build id: 20140224-0627

    Posted in: Modification Development
  • 0

    posted a message on Inconsistent results in test?

    MCPMCP 9.30

    Minecraft 1.10

    Eclipse Neon.1

    No Mod API


    I'm remaking one of my mods and things have recently started not working right whatsoever.

    The block is a direction based block like a Piston or Dispenser. The block was being placed in orientations correctly, however it's now being placed facing Down no mater what.


    This started in the 5th recoding of the block file where I strip everything and start from scratch again to eliminate bugs and useless code. This would not be an issue as I backup all of my progress every time I go to recode the block, however the issue is now persisting in my backups. The block was working correctly before, but no mater what I change there is no new outcome to the behavior of the block placement.


    Immediately I think of Eclipse to be the issue as I've gone from using very convenient and easy to replace Portable Versions of an older Eclipse to using an installed Eclipse Neon.1. But I don't want to jump to conclusions here.


    Is anyone else having issues like this? How can I fix this?




    This screenshot was taken during recode #3

    Posted in: Modification Development
  • 0

    posted a message on Block not rendering right in GUI

    (right click & open in new tab)


    The block is also not showing up in the menus after i changed all codes from redstone_directional to redstone_director, not sure why

    (item class)

    Posted in: Modification Development
  • 0

    posted a message on Block not rendering right in GUI
    Item
    {
        "parent": "block/redstone_director"
    }

    Block

    {
    	"parent": "block/orientable",
        "textures": {
            "top": "blocks/redstone_director",
            "front": "blocks/redstone_director_unpowered",
            "side": "blocks/redstone_director"
        }
    }



    Block Vertical

    {
    	"parent": "block/orientable_vertical",
        "textures": {
            "front": "blocks/redstone_director_unpowered",
            "side": "blocks/redstone_director"
        }
    }
    Posted in: Modification Development
  • 0

    posted a message on Block not rendering right in GUI
    Quote from UpcraftLP»

    actually it uses 3 (one for the inventory). it's located in the item model folder (assets/minecraft/models/item/dispenser.json)



    [Edit]

    I copied & edited that file as well and it's still not working.

    Posted in: Modification Development
  • 0

    posted a message on Block not rendering right in GUI

    Can you give an example of what you mean?


    The dispenser uses two model files, one that's for horizontal and the other for vertical. My block copies those files.

    Posted in: Modification Development
  • 0

    posted a message on [1.11 Mod] Redstone Director

    Hello everyone! I am posting to show off a mod I am currently remaking for 1.11

    Contact: @Rogue_Sid


    The official name for this mod is "Redstone Director", and it does what you think!

    This block allows players to direct Redstone signals to where they need it. The block also has the unique feature of not affecting the Redstone Torches placed on it, allowing for some truly amazing devices! This will not be your answer to InstaWire. There is a 1 tick delay on the block.


    Here is a short video on YouTube showing a small bit of usage of the block,


    And, Here is some pictures from previous versions showing how you can use the block!

    (Features of older versions do may be changed in newer versions)


    Basic Feature

    Smallest Possible Cobblestone Generator

    Amazingly Compact Displays & Clocks!

    The versatility of this block allows for limitless designs. These are just some ideas I had for pulse clocks that don't burn out!

    The block allows for such compact designs!


    Thank you for checking this mod out, I hope you like it and support me in the development! :)

    Posted in: WIP Mods
  • 0

    posted a message on Block not rendering right in GUI

    Minecraft Version: 1.10

    MCP: 931

    Textures & model tested via Resourcepacks.

    No Forge, NO API.

    I prefer modding without APIs, please respect that.


    Hey there! I've been recreating a mod I made in 1.6.4 but the new Json file system seems to be trolling me, or maybe its the game. As seen in my screenshot, my block isn't rendering right in the GUI.



    Now I know what you're in the comments about to type away. Yes, I tried making a Cubik model, and no it doesn't work. For some reason the cubik model doesn't work whatsoever and will not render at all.


    I thought that borrowing code from the Dispenser was the issue, the model for the Dispenser uses "block/orientable". However changing the Json model file doesn't seem to change no mater what I change it to. This is including "block/cube" or "block/cube_all".


    Any ideas?

    Posted in: Modification Development
  • 0

    posted a message on Launcher not allowing modded versions?

    You could also try MagicLauncher.


    I seen this after researching the issue, I'm not too partial to launchers, but I may look into one later to keep me from logging in every time I copy my Portable version.
    Posted in: Modification Development
  • To post a comment, please .