Jump to content

Recommended Posts

Posted

Hello,

 

i have only a little problem. I will use some Items and Blocks in my own mod. I will not write an mod for an mod. How can i simply use other mods items and blocks?

 

I will only check if the mod in the modpack is present and then use items and blocks.

 

Is there an easy installation guide out there. The old wiki links from forge are gone and in the new Docs i dont find any information about that.

 

Is it so simple that i only must define an respository in gradle.build?

 

I want to use some Blocks from the newest build of Forestry but only want an depencies on the minecraft version only (the block is in all 1.12 versions). But copy all .class from forestry_1.12-5.4.3.146-api to the forge-dev-dir are crappy or?

 

Thx

 

Posted

I'm just taking a stab at this.

 

I think you're talking more about packaging an existing mod for use, this is what a ModPack is. Try searching for custom ModPack creation and configuration.

Posted

Hello,

 

no i don't want a modpack, i want the possibility to use other blocks and items from other mods, that other guys use with my mod. I think i have forgot to say that i have written my own mod,or?

 

I search only a tip how i can 2 functions implement with the new forge 1.12 version.

 

1. Check if a mod is present at build-  and runtime in a modpack. When i build my mod no other mod are present and this will i simulate and i want that my mod functioned without the other mods.

 

2. When the check was true, i want make a condition and implement new functions in my own mod, but only when the other mod is present.

 

At the moment i can only use Vanilla-Mods at buildtime.

 

Actually i only want to use and interact with the Raincollector from Forestry in my mod as a simple Block.cauldron, as an example.

 

Interoperability with other mods are the next thing in my mod and need a little bit help how i can implement this in a Gradle-Forge-Enviroment.

 

thx

Posted

Cool, but how can i use this at buildtime? I mean how can i set up my enviroment to use a mod at buildtime? Is this a simple ClassPath-Thing? When i have the jar of the mod in my ClassPath?

Posted (edited)

Cool i have set this in my build.gradle

 

repositories
{
        maven
        {
            name 'Forestry Repo'
            url "http://maven.ic2.player.to/"
        }
}

 

And after a setupDecompWorkspace i have the api in my build dir, wonderful. Now can dive deep in the forestry api, fuh:) very complex things there for an right click on an raincollector:).

 

thx

 

Sorry was my own copy of forestry in the build folder oh ...

but he has definitivly download something after running ...

was this the right build.gradle options?

Edited by CyberPunkBln
Posted

Yes thx a good Overview. Now i gradle load the forestry-api. Now i can look in the api, where i can get the block raincollector:).

 

Hmm i think about the fact, that i must code for every mod that brings an tank with, give it no forge special dictonary for tanks that hold water as an fluid? An tank dictonary?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello , when I try to launch the forge installer it just crash with a message for 0,5 secondes. I'm using java 17 to launch it. Here's the link of the error :https://cdn.corenexis.com/view/?img=d/ma24/qs7u4U.jpg  
    • You will find the crash-report or log in your minecraft directory (crash-report or logs folder)
    • Use a modpack which is using these 2 mods as working base:   https://www.curseforge.com/minecraft/modpacks/life-in-the-village-3
    • inicie un mundo donde instale Croptopia y Farmer's Delight, entonces instale el addon Croptopia Delight pero no funciona. es la version 1.18.2
    • Hello all. I'm currently grappling with the updateShape method in a custom class extending Block.  My code currently looks like this: The conditionals in CheckState are there to switch blockstate properties, which is working fine, as it functions correctly every time in getStateForPlacement.  The problem I'm running into is that when I update a state, the blocks seem to call CheckState with the position of the block which was changed updated last.  If I build a wall I can see the same change propagate across. My question thus is this: is updateShape sending its return to the neighbouring block?  Is each block not independently executing the updateShape method, thus inserting its own current position?  The first statement appears to be true, and the second false (each block is not independently executing the method). I have tried to fix this by saving the block's own position to a variable myPos at inception, and then feeding this in as CheckState(myPos) but this causes a worse outcome, where all blocks take the update of the first modified block, rather than just their neighbour.  This raises more questions than it answers, obviously: how is a different instance's variable propagating here?  I also tried changing it so that CheckState did not take a BlockPos, but had myPos built into the body - same problem. I have previously looked at neighbourUpdate and onNeighbourUpdate, but could not find a way to get this to work at all.  One post on here about updatePostPlacement and other methods has proven itself long superceded.  All other sources on the net seem to be out of date. Many thanks in advance for any help you might offer me, it's been several days now of trying to get this work and several weeks of generally trying to get round this roadblock.  - Sandermall
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.