Git Product home page Git Product logo

crafttweaker's Introduction

                    GitHub issues GitHub license Jenkins Discord

Table of Contents

Introduction

CraftTweaker is a Minecraft mod which allows modpacks and servers to customize the game. With CraftTweaker you can change recipes, script events, add new commands and even change item properties! When used with other mods the possibilities become endless! Ranging from custom machine recipes to entirely new blocks and items!

Feedback

If you're looking for help with the mod, or just want to come hang out, we have a Discord server.
If you're running into a bug or have a feature request, please don't be afraid to make an issue on the tracker.

License

Distributed under the MIT License. See the LICENSE file for more information.

Setup

To set up the CraftTweaker development environment you must clone the repo and initialize the submodule.

git clone --recurse-submodules https://github.com/CraftTweaker/CraftTweaker.git

After the project has been cloned and initialized you can directly import it into your IDE of choice.

Build

Building the project is as easy as running a Gradle command! Simply run:

gradlew build

and the outputted .jar files will be put in build/libs/ folder of each subproject (Common/build/libs/, Fabric/build/libs/ and Forge/build/libs/).

CraftTweaker also has automated markdown documentation, the output of that will be in the docsOut/ folder.

Maven

Every push to this repository is built and published to the BlameJared maven, to use these builds in your project, first add the BlameJared maven to your repositories block in your build.gradle file like so:

repositories {
    maven { 
        url = 'https://maven.blamejared.com'
        name = 'BlameJared Maven'
    }
}

Then, depending on what modloader you are using, you can use the following snippets, just replace [VERSION] with the latest version for each artifact.

Fabric Maven

dependencies {
    modCompileOnly('com.blamejared.crafttweaker:CraftTweaker-fabric-1.20.4:[VERSION]')
    // Example:
    // modCompileOnly('com.blamejared.crafttweaker:CraftTweaker-fabric-1.20.4:17.0.0')
}

Forge Maven

    compileOnly(fg.deobf('com.blamejared.crafttweaker:CraftTweaker-forge-1.20.4:[VERSION]'))
    // Example:
    // compileOnly(fg.deobf('com.blamejared.crafttweaker:CraftTweaker-forge-1.20.4:17.0.0'))
}

Common Maven

If you are in a multi-modloader environment (Such as MultiLoader), you can bring the Common artifact (code that does not depend on any specific mod loader but rather just the vanilla game) into your Common project like so:

dependencies {
    compileOnly('com.blamejared.crafttweaker:CraftTweaker-common-1.20.4:[VERSION]')
    // Example:
    // compileOnly('com.blamejared.crafttweaker:CraftTweaker-common-1.20.4:17.0.0')
}

crafttweaker's People

Contributors

al132 avatar baughn avatar bculkin2442 avatar bloodworkxgaming avatar darkhax avatar fluffle avatar friendlyhj avatar gorymoon avatar hubry avatar jaredlll08 avatar kindlich avatar mezz avatar mohron avatar mr-ao-dragon avatar noobanidus avatar pupnewfster avatar renovate[bot] avatar skaviouz avatar skydark avatar skysom avatar tawling avatar techlone avatar the-arcanian avatar the-eater avatar thesilkminer avatar tommytt avatar witixin1512 avatar xfel avatar yulife avatar zendarva avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crafttweaker's Issues

Is this mine Tweaker for 1.8+

Will be any more mine tweaker for minedraft 1.10 or will Stan be just work on stuff like zen script from now one also if what i read is this works the same as mine tweaker but craft tweaker is customised, how, does it more.

Also what mods are support right know

Recipes don't sync to client until /mt reload is ran

I'm using 1.10 and Sponge on the server. Removing Sponge fixes the sync issue.

If you put in the old recipe, the item shows up in the output but you can't craft it.

If you put the new recipe in, nothing shows but clicking the output gives you the item.

transformReplace to "give back" empty bucket is not working

Using the following command:

// Make an ink sac from charcoal + water bucket (return bucket)
recipes.addShapeless(minecraft:dye:0, [minecraft:coal:1, minecraft:water_bucket.transformReplace(minecraft:bucket)]);

Causes 2 empty buckets to appear in the crafting window and "zero" charcoals (i.e. the charcoal appears with a red zero on it.

2016-08-21_12 09 03

No such valid member: nei/ ic2 error

So I updated to the latest 1.7.10 version from curseforge (CraftTweaker-Customized-1.7.10-3.0.7)

Sadly apparently something may have broken between 3.0.1 and 3.0.7 because suddenly I get 202 stuck script modifications, up from 4... and it says "no such valid member: nei" and "no such valid member: ic2" which both worked flawlessly before updating.

I don't know how to fix it and didn't find anything by googling so I thought I'd open a new issue about it.

Thanks in advance for the help.

Armor not adjusting properly when using AttributeModifier

I have an interesting problem that may be CraftTweaker related. Here is the script I am running:

recipes.remove(minecraft:iron_helmet);
recipes.addShapeless(minecraft:iron_helmet.withTag({AttributeModifiers:[{AttributeName:"generic.armor",Name:"generic.armor",Amount:30,Operation:0,UUIDLeast:176584,UUIDMost:798203,Slot:"head"}]}), [minecraft:stick, minecraft:stick, minecraft:stick]);

So, as you can guess, I am making an iron helmet with 30 armor. Now, it works. It creates the helmet, but when I put it on, I get no shields and a fall test verifies that I am not protected. Any ideas? I used MCStacker to create the attribute modifier command.

minetweakerlog.txt

Error 32767

I get this error with the ore dictionary when I reload, some of the entries I add will work, but others will not
1.1.10.2 Forge 2075

[Question] remove single NBT items

My Question is can I remove single items with nbt data in Craft Tweaker? I know in Minetweaker it isn't possible to remove single nbt items it will remove all items with the same id.
Mean if you have maybe 32 trees or woods items with nbt data only on one ID and you want to remove only one recipe not all.

Suggestion: Mob Drops

You should add a new feature to customize mob drops.

For example, a script something like

mobdrops.add(mob, item, min, max)
mobdrops.add(Villager, minecraft:emerald, 0, 1) //Drops 0-1 emerald when villager is killed.

mobdrops.remove(mob, item)
mobdrops.remove(Witch, minecraft:redstone) //Removes redstone from Witch drops.

mobdrops.removeall(mob)
mobdrops.removeall(Witch) //Removes all Witch drops.

Minetweaker Log almost empty without reloading the recipes

If you just start and run the game without doing /mt reload the minetweaker log is empty except for these two lines:

INFO: MineTweaker: Building registry
INFO: MineTweaker: Sucessfully built item registry

However when you reload the recipes, it actually logs all the changes made in the scripts folder.

tooltips command in client/server environment

I have noticed that the /minetweaker tooltips command doesn't actually show tooltips when in the client/server environment. It works in the single player environment. I have found that I have to jump through hoops to get the item:meta references to use in scripts on my private server.

Is this intended behavior? Limited by OP level (currently using OP level 2)?
MC 1.8.9; forge-1.8.9-11.15.1.1808

Reload JEI automatically after /mt reload is done

<BBoldt> I have a suggestion, automatically reload JEI when the /mt reload command is done
<Jared> ugh
<Jared> it does?
<Jared> in my tests, jei reloaded fine
<BBoldt> it has to be done manually as far as I know
<Jared> or well the changes were implemented without needing to reload jei or anyinth
<BBoldt> yes
<BBoldt> but jei doesn't show the changed recipes until you reload it
<BBoldt> which can be done by turning on and turning off "dev mode"
<Jared> ah, I'll look more into it
<Jared> could you actually make an issue on the github
<BBoldt> yeah
<Jared> makes me feel special :3

I talked to @mezz about this, but I don't remember what he said.

Serverplay /mt reload necessary

Hello,

I have some difficulties to use the CraftTweaker in 1.7.10 (3.0.1). On our modpack ProjectRETv8 we have to do a /mt reload to get the added recipes. The script folder is 100% the same on client and server side.

Can you help us? Do you need more information?

Modpack informations are located here: https://github.com/BakermanLP/ProjectRETv8

Thank you

Michael (aka BakermanLP)

Forge refuses to detect craftTweaker exists

Im in the midst of making a 1.8.9 vers of my pack, however when loading, it erros saying it cant find any version of CraftTweaker, when the profile on curse sais its there and it shows in the mods folder. Ihave removed the mod and re-installed it via curse as well as manually d/l from curse and placed it into the mods folder to which has made no difference.

Inconsistent recipe cache with IC2

When i loading my scripts the stops and throw out the following errors as an example.

[10:21:42] [Server thread/WARN] [IC2.Recipe/MineTweaker3]: Inconsistent recipe cache, the entry for the item net.minecraft.item.Item@7ad75216 is missing.
[10:22:56] [Server thread/WARN] [IC2.Recipe/MineTweaker3]: Inconsistent recipe cache, the entry for the item net.minecraft.item.Item@40191f6 is missing.
[10:24:10] [Server thread/WARN] [IC2.Recipe/MineTweaker3]: Inconsistent recipe cache, the entry for the item net.minecraft.item.Item@5a155b87 is missing.

Using Craftweaker 3.0.10 in a ModPack
Mc 1.7.10
Forge 1614

Modpack GT New Horizons:
https://github.com/GTNewHorizons/NewHorizons

@jaredlll08
I will try version 3.0.1 and let you know if it works without errors.

3.0.1 have the same issues.
Same with Minetweaker 3.0.10B

Scripts loading order issues

Quoting from stanhebben/MineTweaker3#341 :

  1. Per-world scripts are supposed to override global scripts. (Currently they are executed first, thus their changes are voided by global scripts.)
  2. The script execution order should be enforced. Many modpacks foolishly assume that scripts are executed in certain order (usually alphabetical), and such assumption have certain grounds, as tools like GNU run-parts and similar do so. But currently the only way to ensure orderly execution is to blob the scripts into one file.

Thank you in advance.

[1.10.2] [Bug] Recipes don't work. . . Literally.

Hello,

I believe to have found a bug in CraftTweaker for Minecraft 1.10.2. Here are the details. . .

Important Information

  • Minecraft 1.10.2
  • Minecraft Forge 12.18.1.92
  • CraftTweaker 3.0.11
  • Additional Mods:
    • Mod Tweaker 2 2.0.3

Issue Description

Recipes on either /mt reload or world load give a error.

Issue Media

Issue Screenshot #1

recipe.addShaped(<minecraft:diamond>, [[<minecraft:stone>, <minecraft:stone>, <minecraft:stone>]]);

Loot changes not working

Modlist: http://blog.terpo.org/upload/mc/modlist.txt
Minecraft: 1.10.2
Forge: 1.10.2 - 12.18.1.2011
CraftTweaker: CraftTweaker-1.10.2-3.0.10
ModTweaker: ModTweaker2-2.0.0

I tried to add or remove some items to loot chests but it seems that the command and script function does not work in the current version.

/mt loot give me an error

Adding something to the script file will result in the following error.

ERROR: executing myScript.zs: null

I followed the tutorial here: http://minetweaker3.powerofbytes.com/wiki/Tutorial:Loot

Changing mob loots too, would be awesome :D

Build fails in brand new fork

I'd like to make a contribution to CraftTweaker, but I'm having trouble even getting things to build. I've forked the repository, cloned a local copy, and installed gradle (Gradle v2.3 on MacOS X Yosemite using Java v1.8.0_31). However, when I run any of the gradle commands specified in readme.md, I wind up with the following error and no build artifacts:

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/andrew/Documents/Source/CraftTweaker/build.gradle' line: 12

* What went wrong:
A problem occurred evaluating root project 'MineTweaker3'.
> A problem occurred configuring project ':MineTweaker3-MC1102-Mod-JEI'.
   > Failed to notify project evaluation listener.
      > org.gradle.api.artifacts.ResolvedArtifact.getId()Lorg/gradle/api/artifacts/component/ComponentArtifactIdentifier;

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

There's nothing obviously wrong that I can tell, and I'm afraid I'm not familiar enough with Gradle to diagnose the problem any further. Can you provide any assistance?

Null Error

Hello , before using Craft Tweaker was all right , now when I go to use it at the time of loading of Error : null the file format is: .zs the file is called JEI.zs and looks like this:

http://pastebin.com/WUUS4Vhi

Client-side crash with Crafttweaker on Server and Client

I recently installed Crafttweaker on my server and had no issues with the server. Once I installed Crafttweaker on my client and launched it the client crashes.

The crash log is here: http://pastebin.com/0pXPrhJ4

I am running about 100 mods and all of them work fine without Crafttweaker in. It looks like there is some sort of issue with Enchiridion from what I can tell.

Any help would be greatly appreciated.

Primitive Configurable Items

There have been several mods that do this, but they all fall behind or get unused. It would make sense for CraftTweaker to do this, since it's already all about tweaking.

Basic usage would be similar to how things are already tweaked. Register an item, give it a texture and a name. The item wouldn't do anything on it's own, but would be configurable to be used in other things as an intermediary product. Would be great for modpack creators which are already the major users of tweaking mods.

minetweaker cannot cast any[] to minetweaker.item.Ingredient

This seems to be in contradiction to what MineTweaker 3 claims (and I have used in the past) the correct syntax to be for this. I get this error from the following:

recipes.addShaped(automation:wireC * 8, [ [ null, null, null ], [ null, null, null ], [ [ore:ingotCopper], [ore:ingotCopper], [ore:ingotCopper] ] ] );

Or:

import minetweaker.item.IIngredient;
var blankLine = [ ] as IIngredient[];
recipes.addShaped(automation:wireC * 8, [ blankLine, blankLine, [ [ore:ingotCopper], [ore:ingotCopper], [ore:ingotCopper] ] ] );

Possibly a bug in the 1.9.4 port?

Can't rename grassless dirt

In 1.7.10, I tried to do the following to make grassless dirt distinguishable from regular dirt:

<minecraft:dirt:1>.displayName = "Grassless Dirt";

However, when I did this, both regular and grassless dirt got renamed. I note that podzol kept its name, so the problem seems to be related to items with shared names, rather than to metadata handling. Also, NEI.overrideName works right, but its effects are only visible while the inventory screen is open.

Loop won't work

I got this code

which doesn't output error in chat, but in minetweaker.log

I tried with import minetweaker.item.IItemStack; as stated on the wiki, bt I got a chat error with that

better support for Flaxbeard Steam Power Mod?

I noticed Flaxbeard Steam Power Mod is been always half supported and at the same time half broken . Some versions have support adding liquids but no melt or drop recipes, other versions support adding melt recipes or drop but not new liquids and other versions don't work at all.

I am interested in the ability to add new alloy liquids and the ability to add new clay molds and create new items in different shapes .

Crash with Draconic Evolution

All i need to say is there; and i've successfuly edited a lot of other recipes already so its not my scripting errors.
Draconic-Inc/Draconic-Evolution#362

recipes.remove(draconicevolution:toolUpgrade:1);
recipes.addShaped(draconicevolution:toolUpgrade:1,
[[ore:gemLapis, draconicevolution:draconicCore, ore:gemLapis],
[ore:ingotDraconium, tconstruct:pick_head.withTag({Material:"electrum"}), ore:ingotDraconium],
[ore:gemLapis, draconicevolution:draconicCore, ore:gemLapis]]);

Edit:
github doesn't display the angular brackets but they are there in the file.

modtweaker? NEI error with crafttweaker

hello, i have some items hidden in nei in script, like this:

import mods.nei.NEI;
//
NEI.hide(NuclearCraft:nuke);

but now it say this when i log to SP or MP:

[18:36:38] [Client thread/INFO]: [CHAT] ERROR: ?:1 > No such member: nei
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: ?:1 > Not a valid type
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:3 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:4 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:5 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:6 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:7 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:8 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:9 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:10 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:11 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:12 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:13 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:14 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:15 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:16 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:17 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:18 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:19 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:20 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:21 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:22 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:23 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:24 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:27 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:30 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:31 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:32 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:33 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:34 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:35 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:36 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:37 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:38 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:39 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:40 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:41 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:42 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:43 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:44 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:45 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:46 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:47 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:48 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:49 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:50 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:51 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: nei.zs:52 > could not find NEI
[18:36:38] [Client thread/INFO]: [CHAT] ERROR: Error executing nei.zs: minetweaker/api/item/IItemStackAny

i have CraftTweaker-1.7.10-3.0.8 and ModTweaker2-0.9.5
some incompatibility or else?

thanks in advance

Duplicate mod id

Updated to latest version of Minetweaker. Seems crafttweaker is also has the mod id of "Minetweaker 3"

So when loading this on forge we get this error:
error

Cannot set block hardness

I am unable to use .hardness to set a block's hardness value, this causes a error to show in the chat:
net.minecraftforge.fml.relauncher.ReflectionHelper$UnableToFindFieldException: java.lang.NoSuchFieldException: blockHardness
Since I dont know if it matters or not, I will add that this happens on a dedicated SMP server.

In-Game recipe editor [dooable]

<Jared> So any other bus / suggstions
<BBoldt> make an ingame recipe editor like that third party mod that made one a while back
<BBoldt> that is the key to world domination
<Jared> ugh
<Jared> That means gui's
<BBoldt> you asked for it!
<Jared> dooable though
<Jared> it would be SSP only though
<BBoldt> not a problem
<BBoldt> shall I github that issue?
<Jared> uh yea
<Jared> I guess

Mod Support

Currently the only mod that has any kind of support in CraftTweaker is JEI, I was wondering if you are going to port the other mod supports or if you are going to put them into ModTweaker. Specifically IC2 at this time, and Mekanism as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.