• 0

    posted a message on [Question] How to make huge models
    Quote from kwerti»

    Sorry, 2x2x2 blocks in size.

    for example, if i want to make a bedroll, 2 squares on X axis, i center it on the center block or i just put the 'second' block on the right or left?
    Posted in: Modification Development
  • 2

    posted a message on WizardFarm Mod

    WIZARDFARM MOD

    Version 1.0


    Hello guys!


    So i finally finished my first mod. This mod add new trees, crops, machines and foods.

    I dont have a better name for the mode so i just added 'farm' to my net nick.


    Guys i need a good Coder to help me on Beta version! anyone?


    NEW TREES!!!

    -Cherry

    -Orange

    -Pear

    -Banana


    NEW CROPS!!!

    -Strawberry

    -Coffe

    -Corn

    -Grapes


    ALL THE NEW SEEDS AND SAPPLINGS ARE OBTAINED BY BREAKING GRASS, THEY ARE A LITTLE RARE THOU, BREAK PLENTY!


    (See video for spoilers)


    Some Types of Juices



    Stairs, Slabs and Doors can be made of the New Woods:

    Stairs


    Slabs


    Door


    JUICES and BLENDER: You can make juices of all the fruits like on the recipes below, or you can right click with a fruit on the Blender, it will make the Juice, then with a Empty Bottle, rightclick the Blender with Juice to get the juice bottle. Each fruit make a different color of texture on the blender, i made my own model but was inspired on MCrayFisher one.


    FLAVORED MILK: I added some new uses for Milk. You can flavor milk now with strawberry or chocolate, making very nutricious source of food.



    Juice


    blender


    Milks


    NEW MACHINES!!!

    -Coffe Machine

    -Pop Corn Machine

    -Fermenter

    -Blender

    -Butter Bucket


    COFFE: To create a coffe cup, first you need the Cup (recipes below), then fill it with water by clicking a water block bottom part, then put the water cup on the furnace, then you can make the coffe cup. If you have a Coffe Machine, you right click on it with the Roasted Graing to make some coffe (wait for the machine to make the coffe then click to get it).

    CORN: Corn will grow like Sugar Cane, but will drop seeds (corn grains) and corn. Corn can be used for corn soup and Pop Corn, if you have a Pop Corn Machine (just right click it with a Corn).



    Cup


    Coffe


    Coffe Machine


    Corn Soup


    Pop Corn Machine


    GRAPES: To plant grapes you need the Grape Support, after this you place then (with Shift+Click) on at least 3 high on a post, then you add Vines on them, after they grow right click to collect Grapes, you can make juice or ice cream with them.


    WINE: Put a Grape Juice Bottle on the Fermenter.



    Grape Suport


    fermenter


    CHOCOLATE: Can be made with Butter, do make Butter you need to craft a Butter Bucket, fill it with a Milk Bucket and wait, when it turn into butter, right click on it to get the Butter item. You can also make buttered bred with butter.



    butterbucket


    chocolate


    butterbread


    REFRIGERATOR: Inspired on MCrayFisher, mine is a multi-block structure, the bottom part is a container with custom sound, the upper part, if you right click with a Water Bottle, it will consume it and give you 2 Snowballs, witch you can use for Ice Creams.


    ICE CREAM: Can be made of all Juice types plus chocolate, they give more hungry bars than Juice. First you need to make the eatable cones, than the Ice Cream itself. All ice creams are made with Juice except chocolate witch is made with chocolate bars instead, but gives more hungry bars.



    Refrigerator


    cone


    icecreams


    OLD CLOCK: that old clock.. eveybody loves it.. This clock have a animated texture on the time (but not sync with minecraft time yet, only passes at the same speed) + custom sounds each tick rate cycle. Enjoy it!


    LAMP POST: Its a gas lamp post to turn it on right click it with a Flint and Steel, to turn it off right click on it.


    BARREL: just a new container block, match farms designs. (texture and number of slots will change on Beta)



    oldclock


    lamppost


    barrel


    This Mod is Beta version and contain some minor glitches (list below). I doubt it will make a world crash thou.

    Please report me extra errors and features for final release!


    Im looking for someone to give that final touch to this mod, removing its errors, that would help the comunitity and you would get a easy credit on this mod forever!


    DOWNLOAD BETA VERSION!!!

    https://minecraft.curseforge.com/projects/wizard-s-farming-mod


    http://www.mediafire.com/file/t3q9lauzj20de0a/WizardFarmAlpha.jar


    VIDEO PRESENTATION:


    Know Errors:

    -As far as i know, Bonemeal wont work on any of my plants.

    -Coffe Machine and Fermenter upper blocks will face the player side when update (ex, from grape to wine) however all you have to do, its this happen is click it again, it will face your side or the correct side.

    -Stairs dont make Corners/Connections yet


    SPECIAL THANKS:

    -Mcreator Team (where i made this mod)

    -MCrayFisher (for ideas)

    -Decorcraft Mod (for ideas)

    -Nuparu00 (For code helping)

    -ArcaneMortis (For code helping)

    Posted in: Minecraft Mods
  • 0

    posted a message on A couple of questions about moding.

    the best way to start is using MCreator... try it out and tell me what you think... GL! ;)

    Posted in: Modification Development
  • 0

    posted a message on [Question] How to make huge models
    Quote from kwerti»

    Block models are limited to 2x2 blocks in size at the maximum. To make larger models, you have to use other rendering capabilities.


    2x2 on Y and X axis or Y and Z axis?
    Posted in: Modification Development
  • 0

    posted a message on Exporting Animated Model from Blender

    Hey guys!


    So im able to put my animated model from Blender into minecraft, but its not animated.. i know i need to export it on the right way..


    i export it with Triangulated Faces, but when i click the Animation box it export 100 files! lol each frame. so i have no idea how to use this.. :D


    im using MCreator btw

    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Making A Block Face A Certain Direction Based On Player Rotation

    here is how my block code is now (i removed the constructor line):



    package mod.mcreator;

    import net.minecraftforge.fml.relauncher.SideOnly;
    import net.minecraftforge.fml.relauncher.Side;
    import net.minecraftforge.fml.common.registry.GameRegistry;
    import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
    import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
    import net.minecraftforge.fml.common.event.FMLInitializationEvent;

    import net.minecraft.world.World;
    import net.minecraft.world.IBlockAccess;
    import net.minecraft.util.math.BlockPos;
    import net.minecraft.util.math.AxisAlignedBB;
    import net.minecraft.util.SoundCategory;
    import net.minecraft.util.ResourceLocation;
    import net.minecraft.util.EnumHand;
    import net.minecraft.util.EnumFacing;
    import net.minecraft.util.BlockRenderLayer;
    import net.minecraft.item.ItemStack;
    import net.minecraft.item.Item;
    import net.minecraft.init.Items;
    import net.minecraft.init.Blocks;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.client.renderer.block.model.ModelResourceLocation;
    import net.minecraft.client.Minecraft;
    import net.minecraft.block.state.IBlockState;
    import net.minecraft.block.material.Material;
    import net.minecraft.block.SoundType;
    import net.minecraft.block.Block;

    import java.util.Random;

    public class mcreator_radioOff {

    public mcreator_radioOff() {
    }

    public static BlockRadioOff block;

    public static Object instance;

    public static final PropertyDirection FACING = PropertyDirection.create("facing", EnumFacing.Plane.HORIZONTAL);

    public int addFuel(ItemStack fuel) {
    return 0;
    }

    public void serverLoad(FMLServerStartingEvent event) {
    }

    public void preInit(FMLPreInitializationEvent event) {
    }

    public void registerRenderers() {
    }

    public void load(FMLInitializationEvent event) {
    if (event.getSide() == Side.CLIENT) {
    Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
    .register(Item.getItemFromBlock(block), 0, new ModelResourceLocation("TestEnvironmentMod:RadioOff", "inventory"));
    }

    GameRegistry.addRecipe(
    new ItemStack(block, 1),
    new Object[]{"012", "345", "678", Character.valueOf('0'), Blocks.STONE, Character.valueOf('1'), Blocks.STONE_BUTTON,
    Character.valueOf('2'), Blocks.STONE, Character.valueOf('3'), Blocks.PLANKS, Character.valueOf('4'), Blocks.JUKEBOX,
    Character.valueOf('5'), Blocks.PLANKS, Character.valueOf('6'), Blocks.STONE, Character.valueOf('7'), Items.REDSTONE,
    Character.valueOf('8'), Blocks.STONE,});
    }

    static {

    block = (BlockRadioOff) (new BlockRadioOff().setHardness(2.0F).setResistance(10.0F).setLightLevel(0.0F).setUnlocalizedName("RadioOff")
    .setLightOpacity(0).setCreativeTab(mcreator_wizardMinePlus.tab));
    block.setHarvestLevel("pickaxe", 0);
    }

    public void generateSurface(World world, Random random, int chunkX, int chunkZ) {
    }

    public void generateNether(World world, Random random, int chunkX, int chunkZ) {
    }

    static class BlockRadioOff extends Block {

    int a1 = 0, a2 = 0, a3 = 0, a4 = 0, a5 = 0, a6 = 0;

    boolean red = false;

    protected BlockRadioOff() {
    super(Material.WOOD);

    GameRegistry.registerBlock(this, "RadioOff");
    setSoundType(SoundType.WOOD);

    }

    @Override
    public void onBlockAdded(World world, BlockPos pos, IBlockState state) {
    int i = pos.getX();
    int j = pos.getY();
    int k = pos.getZ();
    EntityPlayer entity = Minecraft.getMinecraft().thePlayer;
    world.scheduleUpdate(new BlockPos(i, j, k), this, this.tickRate(world));

    }

    @Override
    public int getWeakPower(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) {
    return red ? 15 : 0;
    }

    @Override
    public int getStrongPower(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) {
    return red ? 15 : 0;
    }

    @Override
    public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer entity, EnumHand hand, ItemStack heldItem,
    EnumFacing side, float hitX, float hitY, float hitZ) {
    int i = pos.getX();
    int j = pos.getY();
    int k = pos.getZ();
    if (true) {
    world.playSound((EntityPlayer) null, (double) i + 0.5D, (double) j + 0.5D, (double) k + 0.5D,
    (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation(
    ("block.stone_button.click_on"))), SoundCategory.NEUTRAL, 1.0F, 1.0F);
    }

    if (true) {
    world.setBlockToAir(new BlockPos(i, j, k));
    }

    if (true) {
    world.setBlockState(new BlockPos(i, j, k), mcreator_radio.block.getDefaultState(), 3);
    }

    if (true) {
    world.playSound((EntityPlayer) null, (double) i + 0.5D, (double) j + 0.5D, (double) k + 0.5D,
    (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation(
    ("TestEnvironmentMod:mod.radio.one"))), SoundCategory.NEUTRAL, 1.0F, 1.0F);
    }

    return true;
    }

    @Override
    public boolean isOpaqueCube(IBlockState state) {
    return false;
    }

    @SideOnly(Side.CLIENT)
    @Override
    public BlockRenderLayer getBlockLayer() {
    return BlockRenderLayer.SOLID;
    }

    @Override
    public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) {
    return new AxisAlignedBB(0.0D, 0.0D, 0.0D, 1.0D, 1.0D, 1.0D);
    }

    @Override
    public int tickRate(World world) {
    return 10;
    }

    @Override
    public int quantityDropped(Random par1Random) {
    return 1;
    }

    @Override
    public IBlockState getStateForEntityRender(IBlockState state) {

    return getDefaultState().withProperty(FACING, EnumFacing.SOUTH);
    }

    @Override
    public IBlockState getStateFromMeta(int meta) {
    EnumFacing facing = EnumFacing.getFront(meta);

    if(facing.getAxis()==EnumFacing.Axis.Y) {
    facing=EnumFacing.NORTH;
    }

    return getDefaultState().withProperty(FACING, facing);
    }

    @Override
    public int getMetaFromState(IBlockState state) {
    return ((EnumFacing) state.getValue(FACING)).getIndex();
    }

    @Override
    protected BlockState createBlockState() {
    return new BlockState(this, new IProperty[]{FACING});
    }

    }
    }

    Posted in: Modification Development
  • 0

    posted a message on Making A Block Face A Certain Direction Based On Player Rotation

    dang i add those lines and change that file and got errors:



    warning: [options] bootstrap class path not set in conjunction with -source 1.6
    D:\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_radioOff.java:44: error: illegal start of type
    this.setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
    ^
    D:\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_radioOff.java:44: error: ';' expected
    this.setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
    ^
    D:\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_radioOff.java:44: error: invalid method declaration; return type required
    this.setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
    ^
    D:\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_radioOff.java:44: error: <identifier> expected
    this.setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
    ^
    D:\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_radioOff.java:44: error: ';' expected
    this.setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
    ^
    D:\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_radioOff.java:44: error: illegal start of type
    this.setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
    ^
    D:\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_radioOff.java:44: error: <identifier> expected
    this.setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
    ^
    D:\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_radioOff.java:44: error: <identifier> expected
    this.setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
    ^
    D:\MCreator170\forge\build\sources\main\java\mod\mcreator\mcreator_radioOff.java:44: error: ';' expected
    this.setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
    ^
    9 errors
    1 warning




    im not sure if i put each part of the code on the right part thou... btw how i paste the code 'the right way' as people talk here?

    Posted in: Modification Development
  • 0

    posted a message on Making A Block Face A Certain Direction Based On Player Rotation

    what about this part :


    and in constructor define default state:
    this.setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));



    what is constructor? is this on the block file too?


    thanks!

    Posted in: Modification Development
  • 0

    posted a message on .Java files of Mobs
    Quote from LightningEA»

    Let's use creepers as an example for this:

    type //EntityCreeper in a random place then control click it, then you should be in the creeper modfile area


    type that where? i need those files for moddeling i cant code yet :(
    Posted in: Modification Development
  • 0

    posted a message on .Java files of Mobs
    Quote from UpcraftLP»

    Do you mean the models or the entity files? Former ones are located in net.minecraft.client.model, the latter ones in net.minecraft.entity. You can fint the main Minecraft jar file in your referenced libraries, named ForgeSrc-<yourMinecraftVersion>-<yourForgeVersion>.jar.


    inside that net/minecrat folder i just see client, server and realm folders... no mob files there :(
    Posted in: Modification Development
  • 0

    posted a message on [Question] How to make huge models

    i solve that by making a Item that when clicked on the land create 2 blocks (your model) - just divive your model in 2models (bottom and up part) then you can do it - i had this problem with the Lamp Post i made with 3 blocks high...

    Posted in: Modification Development
  • 0

    posted a message on .Java files of Mobs

    Hello guys!


    Working on my first mod here.. i could use the Vanilla .java files of the mobs, but i cant extract/find them nowhere on my minecraft files.

    where i can download them? (for minecraft 1.10)


    thanks!

    Posted in: Modification Development
  • 0

    posted a message on [Tool] Tabula/Techne to obj model converter.

    hello,


    can tabula work for minecraft 1.10? also what kind of files it exports /imports?

    Posted in: Minecraft Tools
  • 0

    posted a message on Making A Block Face A Certain Direction Based On Player Rotation
    Quote from Nuparu00»

    In older version of MCreator it was at forge\build\tmp\recompSrc\net\minecraft\client\model , I am not sure how it is in current versions. In case that you are not able to find it here you need setup manully MDK workspace for Eclipse , then you should be able to find it in sources that it decompile.


    such a diffence here.. you are such a gentleman man.. thank you very much for your support, and dont listen to those people i aint stole codes, the MCreator auto-generate them (im sure u know that), im sure you dont use it, but i have too, cause my brain only learn new stuff when i look the code ready, edit it, change it, learn it.. i cant help it its the way i operate. i try to learn Java from 0 and i have no patience... :D
    Posted in: Modification Development
  • 0

    posted a message on Making A Block Face A Certain Direction Based On Player Rotation
    Quote from Nuparu00»

    Everything except the last part is in your block class. The last part is in .json file in blockstates folder.


    dude i start to mod 3 days ago,, what hell is wrong with this 'bright spark'guy :/ anyway.. could you tell me where i can find the .java files of the Vanilla Mobs? i really need the chicken model to fix some MCreator errors, i look so much on the internet and cant find it :(
    Posted in: Modification Development
  • To post a comment, please .