Problem Ban items and increase number of claimed chunks

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord
S

Scaenti

Guest
Hi,

as the title says, I have to questions

a) How to ban an item as admin?

b) How to increase number of claimable chunks as admin: from 1000 -> 10000

FTB Beyond 1.2.1
 
E

eobie

Guest
Hi,

as the title says, I have to questions

a) How to ban an item as admin?

b) How to increase number of claimable chunks as admin: from 1000 -> 10000

FTB Beyond 1.2.1

To adjust the claimable chunks you must edit the following file... Minecraft/local/ftbu/ranks.json
Below is an example from mine...

Code:
"op": {
      "parent": "builtin_op",
      "syntax": "<&2$name&r> ",
      "permissions": [],
      "config": {
        "ftbu.chunkloader.max_chunks": 200,
        "ftbu.claims.max_chunks": 10000
      }

In order to remove the ability to craft a recipe you will have to modify Minecraft/modpack/normal/scripts/normal.zs

Hope that helps!
 
S

Scaenti

Guest
Hi,
thanks that realy helped! What is the exact syntax to ban e.g., portal frame? I figured out where the file is, but not hw to ban an item, or recipe.
All the best,
 
E

eobie

Guest
Hi,
thanks that realy helped! What is the exact syntax to ban e.g., portal frame? I figured out where the file is, but not hw to ban an item, or recipe.
All the best,

I haven't tested this, but it should work. Add before the last line in the file. Let me know!

Code:
#aroma1997s mining dimension
recipes.remove(<aroma1997sdimension:portalFrame>);

As info, this isn't going to remove what has already been crafted, this will prevent users from crafting it in the future. To remove what has already been crafted you will need to use worldedit or something similar.
 
S

Scaenti

Guest
Hi, I tried to ban shape card:

recipes.remove(<rftools:shape_card:9219/0>);

Unfortunately it is not working.

maybe I am doing something wrong with the number at the end?
 
K

kristi71111

Guest
Hi, I tried to ban shape card:

recipes.remove(<rftools:shape_card:9219/0>);

Unfortunately it is not working.

maybe I am doing something wrong with the number at the end?
It's
Code:
recipes.remove(<rftools:shape_card>);
I'l give you a quick example on how you should do this correctly:
Let's say you wanted to ban an item with the id 9000 or any other id. The way I do this is that I go under nei options and then click tools and dumps and I dump the items using that. And then I go to where I have my modpack installed and open the dumps folder and open item.csv with notepad++ then I search for that id.
Now let's say that I searched for the shape_card which in my servers case the id is 9156. I would search for 9156 and get something like this as an output:
Code:
rftools:shape_card,9156,false,mcjty.rftools.items.builder.ShapeCardItem
I would then only copy the thing that is in front of the actual id in this case that's rftools:shape_card and then you just remove the recipe using recipes.remove as I've shown above.
Now let's say that the id is 9156 and the meta is 10 so the item in game would have the id and meta of 9156:10
In this case we would specify the removal as such
Code:
recipes.remove(<rftools:shape_card:10>);
I hope this explains how to do this correctly. Alternately you could also make a val and do it like this for example.
Code:
val shapecard = <rftools:shape_card:>;
recipes.remove(shapecard);

Now let's say that you wanted to put some sort of tooltip saying that this item is banned in nei or jei as in if the user scrolled over it he would see why the item is banned we can do this like so:
Code:
<rftools:shape_card>.addTooltip(format.red(format.italic("This item is banned due reason here")));
If you have anymore questions feel free to ask