Everything posted by Draco18s
-
[Solved] [1.10.2] How to load OBJ models?
I don't know because you haven't shown me which direction you're facing in Minecraft.
-
[Solved] [1.10.2] How to load OBJ models?
Well. That second one is the same as your first attempt. The first one there is much closer. You fixed on axis and got the other one wrong. Seriously, not that hard. I can't tell you which axis you need to set to having a different value because your result images don't contain which direction your facing (X positive, Z negative...)
-
[1.10.2] [Unsolved] Updating mod results in broken models
Unless your mod ID is "nlxdodge/universalcache" then your blockstate files all of your assets are in the wrong place. $10 says your mod ID is "universalcache" and that you've added an extra subdirectory you don't need.
-
[SOLVED][1.9] HOW TO CHANGE PLAYER MODEL?
Do you still have a problem? If so, what is it?
-
[1.10.2] Logging
Or get a logger from the FML events: public static final Logger logger; preInit(FMLPreInitializationEvent event) { logger = event.getModLog(); }
-
[Solved] [1.10.2] How to load OBJ models?
That's because the origin point for all blocks in Minecraft isn't the center of the block, its the corner. You notice how you have it correctly aligned on the Y axis (in your modeling program the bottom edge of the cube is at Y0)? Do the same thing for the X and Z.
-
[1.10.2] [Unsolved] Updating mod results in broken models
You didn't specify an inventory variant in your blockstate file.
-
[1.9.4] Extended Blockstates, how do they work?
You need a TileEntity in order to store more than 4 bits of data.
-
1.10 cant set texture for item?
You need to create a json model resource which refers to the texture.
-
Is there a way to have multiple block states on one block?
bool1 | bool2 << 1 | bool3 << 2 | bool4 << 3
-
[Solved] [1.10.2] How to metadata?
No. You need a json file in the blockstates folder that is named "red_ribbon_present.json" and it contains a variant named "color" with a valie of "black." "variants": { "color": { "black: { "textures": { ... } } } } The "..." here is where you tell the game where to find the new texture to use. You can name it whatever you want.
-
[Solved] [1.10.2] How to metadata?
Metadata. And it really isn't that hard: 1) Override BlockStateContainer : This is where you define what properties your block has @Override protected BlockStateContainer createBlockState() { //These properties can be whatever, here you can see a custom one and a Directional return new BlockStateContainer(this, new IProperty[] {Props.AXEL_ORIENTATION, BlockHorizontal.FACING}); } 2) Override getStateFromMeta and getMetaFromState : This is how you tell your block to convert between States/Properties and metadata (you're still limited to 4 bits) @Override public int getMetaFromState(IBlockState state) { int axel = state.getValue(Props.AXEL_ORIENTATION).getOrdinal()<<2; int face = state.getValue(BlockHorizontal.FACING).getIndex() - 2; //bitwise magic to not make UP and DOWN take up an extra bit //I actually get 'UP' back in the axel orientation property, because it would be mutually exclusive //with the other values,and I don't need 'DOWN' if(face < 0) face = 0; return axel | face; } @Override public IBlockState getStateFromMeta(int meta) { int face = (meta & 3) + 2; //reverse bitwise magic return this.getDefaultState().withProperty(Props.AXEL_ORIENTATION, Props.AxelOrientation.values()[meta>>2]).withProperty(BlockHorizontal.FACING, EnumFacing.VALUES[face]); } 3) Create a variants file. Look how I even handle two different variants: { "forge_marker": 1, "defaults": { "textures": { "particle": "blocks/log_oak" }, "model": "harderores:axel", "uvlock": true }, "variants": { "normal": [{ }], "inventory": [{ }], "axel_orientation": { "none": { }, "gears": { "model": "harderores:frame" }, "hub": { }, "up": { "x": 270 } }, "facing": { "north": { "y": 0 }, "east": { "y": 90 }, "south": { "y": 180 }, "west": { "y": 270 } } } }
-
[1.10.2] CreativeTab says itemGroup.BlacksmitheryTab
TheThingYouSeeOnScreen=TheThingYouWantToSee Really, is it that hard?
-
[Solved] [1.10.2] How to metadata?
Go look at any of the Minecraft blocks that have a directional facing or are colored (e.g. wool, carpets)
-
[1.10] Two Layered Block
Yes. You'll have to lookup how to do fullbright yourself (that's what it's called, but Mojang decided to use the keyword "shade" or "shading" or somesuch nonsense in the json files) but two layers is easy. Here's a block I did: Model: { "parent": "block/block", "elements": [ { "from": [ 0, 0, 0 ], "to": [ 16, 16, 16 ], "faces": { "down": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "down" }, "up": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "up" }, "north": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "north" }, "south": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "south" }, "west": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "west" }, "east": { "uv": [ 0, 0, 16, 16 ], "texture": "#all", "cullface": "east" } } }, { "from": [ 0, 0, 0 ], "to": [ 16, 16, 16 ], "faces": { "down": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "cullface": "down" }, "up": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "cullface": "up" }, "north": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "cullface": "north" }, "south": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "cullface": "south" }, "west": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "cullface": "west" }, "east": { "uv": [ 0, 0, 16, 16 ], "texture": "#overlay", "cullface": "east" } } } ] }
-
[1.7.10] PlaceEvent doesn't actually take metadata into account
Something something something update to the new BlockState methods so this won't happen again.
-
[1.7.10] Detect if player is in a cave
In 1.10 the method is called "getLightFor(EnumSkyBlock, BlockPos)" (that's the environemtn I have open at the moment). I can't recall the 1.7.10 name off the top of my head ("getSavedLightValue?"), but it's named pretty similarly and takes an EnumSkyBlock parameter (which has two values: BLOCK meaning torches, etc. and SKY meaning the sun). It doesn't check day/night (that's "getSkylightSubtracted"). But yeah, any "cave" location is going to have 0 sunlight.
-
[Solved] Are there any json model makers?
- [1.9.4]Stuck On Game Regisrty
public static Item Red_Dyed_Water_Bottle; Oh good! We have a spot in memory for an Item ! It is currently null. ^..^ public void preinit(FMLPreInitializationEvent event) { Ooh! This got called! Yay! CRSoda.register(Red_Dyed_Water_Bottle); Lets register an item! GameRegistry.register(i.setUnlocalizedName(i.getRegistryName().toString())); OH GOD, THE ITEM WAS NULL! D: The code never gets here: CRSoda.init(); Red_Dyed_Water_Bottle = new Item_Red_Dyed_Water_Bottle().setRegistryName(CRSoda.MODID, "Red Dyed Water Bottle");- I can't mod
Was your first thread insufficient?- [1.8] Crop Texture not loading?
Your blockstate json file is misnamed. It should be "cropTomato.json" Also: Don't use GameRegistry.registerBlock, use GameRegistry.register Don't use getUnlocalizedName().substring(5), use .setRegistryName and .getRegistryName Don't use Minecraft.getMinecraft().getRenderItem().getItemModelMesher(), use ModelLoader.setCustomModelResourceLocation Don't use any client side code (the entire ModelMesher, ModelLoader system) in common code, use a proxy or you'll crash the dedicated server Do setUnlocalizedName(getRegistryName), then your block has your modID prefixed to the unlocalized name, preventing conflicts Make sure: That either ModItems either runs after ModBlocks or that your tomato seed doesn't take your tomato crop block as a parameter ModBlocks (and ModItems) have their init() method called during FMLPreInitialization (preInit) not FMLInitialization (init) or nothing will work right (models and such must be registered during preInit)- Eclipse Error
MDKexample contains inside it, many things. For it is a folder. Inside that folder you will find a list of referenced libraries. One of those is called "forgeSrc-xxx-yyy.jar" (where xxx is a Minecraft version and yyy is a forge version) Inside that is the Minecraft source.- RenderAPI and PlayerAPI crashing game
Good job following directions.- [1.10] Best time to sync capabilites
That's not the problem: Does the class get loaded at all server side? If yes, you can't use Minecraft.getMinecraft at all, ever, zero nadda, zip zilch.- [1.10.2] How do you make conduits in minecraft
http://mcforge.readthedocs.io/en/latest/blockstates/forgeBlockstates/#sub-models - [1.9.4]Stuck On Game Regisrty
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.