Git Product home page Git Product logo

loottabletweaker's Introduction

LootTableTweaker

An addon for CraftTweaker which provides scripts with a way to interface with the LootTable system in Minecraft.

Nodecraft This project is sponsored by Nodecraft. Use code Darkhax for 30% off your first month of service!

Source Code

The latest source code can be found here on GitHub. If you are using Git, you can use the following command to clone the project: git clone git:github.com/Darkhax-Minecraft/LootTableTweaker.git

Building from Source

This project can be built using the Gradle Wrapper included in the project. When the 'gradlew build' command is executed, a compiled JAR will be created in ~/build/libs. Sources and Javadocs will also be generated in the same directory. Alternatively the latest builds of Dark-Utilities along with Sources and Javadocs can be found here.

Contributing

This project is open to contributions. If you would like to report an issue, create a pull request, offer advice or provide translations for other languages, they would be more than welcome.

Dependency Management

If you are using Gradle to manage your dependencies, add the following into your build.gradle file. Make sure to update the version from time to time.

repositories {

    maven { url 'http://maven.epoxide.org' }
}

dependencies {

    compile "net.darkhax.lttweaker:LootTableTweaker:1.10.2-1.0.0.2"
}

Credits

  • Darkhax - Lead developer of the mod.

loottabletweaker's People

Contributors

darkhax avatar jriwanek avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

loottabletweaker's Issues

Removed items from all loottables but enchanted versions still in chests

Hi,

i removed all kind of stuff from all loottables, but it seems a lot enchanted versions are still to be found in dungeon chests.

Script:
mods.ltt.LootTable.removeGlobalItem("minecraft:iron_pickaxe");
mods.ltt.LootTable.removeGlobalItem("minecraft:iron_shovel");
mods.ltt.LootTable.removeGlobalItem("minecraft:iron_axe");
mods.ltt.LootTable.removeGlobalItem("minecraft:iron_sword");
mods.ltt.LootTable.removeGlobalItem("minecraft:iron_hoe");
mods.ltt.LootTable.removeGlobalItem("minecraft:iron_ingot");

Log:
[INITIALIZATION][CLIENT][INFO] [crafttweaker | SIDE_CLIENT]: Loading Script: {[0:crafttweaker]: LootTableTweaker\removevanilla.zs}
[INITIALIZATION][CLIENT][INFO] Added loot removal for Global Item: minecraft:iron_pickaxe
[INITIALIZATION][CLIENT][INFO] Added loot removal for Global Item: minecraft:iron_shovel
[INITIALIZATION][CLIENT][INFO] Added loot removal for Global Item: minecraft:iron_axe
[INITIALIZATION][CLIENT][INFO] Added loot removal for Global Item: minecraft:iron_sword
[INITIALIZATION][CLIENT][INFO] Added loot removal for Global Item: minecraft:iron_hoe
[INITIALIZATION][CLIENT][INFO] Added loot removal for Global Item: minecraft:iron_ingot

Is this a bug or do i need to specify more parameters in the script ?

edit: Or could it be that these chests from roguelike dungeons mod don't use the loottable system ?

Is this supposed too happen ?

in console -------
[16:31:29] [main/INFO]: [CHAT] ERROR: [crafttweaker | SIDE_CLIENT]: Error parsing LootTableTweaker\Loottable.zs:13 -- ; expected
Script up too erroring line----------
import mods.ltt.LootTable;
//examples
//mods.ltt.LootTable.removeTable("table"); - Removes a specific table.
//mods.ltt.LootTable.removePool("table", "pool"); - Removes a specific pool.
//mods.ltt.LootTable.removeEntry("table", "pool", "entry"); - Removes a specific entry.
//mods.ltt.LootTable.removeItem("table", "pool", "itemid"); - Removes a specific item.
//mods.ltt.LootTable.removeModEntry("modid"); - Removes all entries added by a mod.
//mods.ltt.LootTable.removeModItem("modid"); - Removes all items added by a mod.
//mods.ltt.LootTable.removeModTable("modtable"); - Removes all tables added by a mod.
//mods.ltt.LootTable.removeGlobalItem("itemid"); - Removes this item from all tables.

//Tools
mods.ltt.LootTable.removeGlobalItem("extrautils2:sickle_stone");

Item still spawning after being removed from loot tables.

LTT version:1.1.17
Forge: 2795
Minecraft 1.12.2

This is the script https://pastebin.com/ykQzdAqJ , now as the wiki says i named my script "LootTableTweaker"

and some of the items still spawn like the ender io gears and the capacitors etc, also i still get the ic2 ingots to spawn. i tested this spawning dungeon chests to see what loot to remove and it still spawns over and over and over. i even tried removing the ore using the oredict method as you can see in the script.

New items

Hi! How can I add new item to the End City chests? Is it possible?

LootTable print command?

Is there chat command or a script command, for my .zs file, that can output all the loot tables to a log? I want to remove specific items but not sure the loot table format to remove the specific entities.

Removing items from all loot tables ?

Hi,

i'm just trying to get behind on how to tweak my loottables, works great so far.
But there's one thing i'm not sure if there would be an easier way of doing it.
For example i want to remove all minecraft:iron_sword from ALL loottables. Is there any way to define the table i'm altering to be all loot tables or is the only way by calling every single loottable and removing it seperatly from each table ?

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.