Everything posted by Draco18s
-
[1.10.02][SOLVED] onBlockActivated running twice with !world.isRemote check
Check which hand the method has been called for.
-
Help with custom GUI's and Tile Entities [SOLVED]
Custom recipe stuff is pretty advanced, as you have to do matching of multiple items (in a specific placement!) to a single output. I suggest starting off (especially considering you haven't been modding for both a long time, or with Forge at all) with simple blocks and items. They aren't exactly trivial to create properly right now.
-
[1.10.2] [Solved] Give ItemStack containing properties
ItemStacks don't deal with blockstates, they deal with metadata. You probably want: new ItemStack(ModBlocks.compressedBlock, 1, ModBlocks.compressedBlock.damageDropped(ModBlocks.compressedBlock.getDefaultState().withProperty(BlockCompressed.VARIANT, Type.GRAVEL));
-
[1.10.2] How to set up keybindings?
A final method parameter is just one that you agree not to modify. It's perfectly safe to make cxt final. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/networking/ServerOreCartHandler.java#L30
-
[Forge 1.10.2] Block Metadata not working
Exception loading model for variant avaritia:resource_block#type=infinity for blockstate "avaritia:resource_block[type=infinity]" and for item "avaritia:resource_block", blockstate location exception: Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException Exception loading model for variant avaritia:resource_block#type=infinity for blockstate "avaritia:resource_block[type=infinity]" and for item "avaritia:resource_block", normal location exception: Caused by: java.io.FileNotFoundException: avaritia:models/item/resource_block.json
-
[1.10.2] Changing render "origin" of a baked model...
translate(-0.5,-0.5,-0.5) rotate(x,y,z,w) translate(0.5,0.5,0.5)
-
(Solved) [1.11] Replacing block with another block
Mind that will only work for things like pumpkins. If you wanted to replace--say--cobblestone in villages, you'd have a much harder time.
-
[1.10.2] How to set up keybindings?
Minecraft is a client side only class, you CANNOT use it on the server, not even in a packet handler. The code in the example is a server side packet handler, which is what you want. The comment is for going the other way.
-
[1.10.2] How to set up keybindings?
"Use Minecraft.getMinecraft() on the client." "Minecraft is a Client-Side-Only class." Hmmmmmmmm
-
[1.10.2 | 1.11.2] [UNSOLVED] Forge Energy
How does a text display name in a GUI affect getCapability()?
-
[1.10.2] Model baking crash
Don't set the registry name. The registry name gets set by addSubstitutionAlias
-
[SOLVED] How to build mod with dependencies?
... compile 'libs/ru.ivansteklow.isdev:1.0.0:dev' where 'libs/' is the folder path you're using?
-
[1.11] Defined Capability Does Not Exist.
Uh? public IEnergyStorage getEnergyStorage(EnumFacing facing){ return null; } You never override this.
-
[SOLVED] How to build mod with dependencies?
Then--surprise surprise--you need to tell gradle the subfolder.
-
[SOLVED] How to build mod with dependencies?
Does the file "ru.ivansteklow.isdev:1.0.0:dev" exist adjacent to the gradle.build file, or is it in a subfolder?
-
[SOLVED] How to build mod with dependencies?
- [1.11 - Solved] Changing an ItemStack's display name using NBT
Its easy. https://mcforge.readthedocs.io/en/latest/networking/simpleimpl/- [1.11 - Solved] Changing an ItemStack's display name using NBT
This is because you've edited the client-side object, and as soon as you open the player's inventory again, the server's version overwrites your changes. You need to send a packet to the server and make the change there.- [SOLVED] How to build mod with dependencies?
Hmm... dependencies { // you may put jars on which you depend on in ./libs // or you may define them like so.. //compile "some.group:artifact:version:classifier" //compile "some.group:artifact:version" // real examples //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime. //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided, // except that these dependencies get remapped to your current MCP mappings //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev' //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // for more info... // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/dependency_management.html }- [1.10.2] Help with crash
SpawnMobs line 164: Caused by: java.lang.NoSuchMethodError: net.minecraft.entity.monster.EntityGuardian.setElder()V at com.mramericanmike.irishluck.outputs.SpawnMobs.init(SpawnMobs.java:164) ~[spawnMobs.class:?]- [1.11] Converting .OBJ files to .JSON?
The Json format only handles quads. It can't handle triangles, so not all obj models can be converted.- [1.11] Gui Synchronization
Or an inventory one https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/entities/TileEntityMillstone.java#L174- [1.10.2] [Solved] Sending Vanilla Title Packet to Player
Look for all existing usages of SPacketTitle and take a looksee where it's used.- [Solved][1.10] Get Meta from Block for ItemStack
No. Absolutely not. "Flags" is documented quite well.- [1.11] Gui Synchronization
Aww for fuck's sake, haven't you see anything on these forums about Capabilities? - [1.11 - Solved] Changing an ItemStack's display name using NBT
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.