Stardew Valley
0 of 0

File information

Last updated

Original upload

Created by

DemonBigj781

Uploaded by

DemonBigj781

Virus scan

Some files not scanned

Tags for this mod

About this mod

This mod adds a tree to all the games items from index 0 to 65535. so if its out there there is a tree of it.

Requirements
Permissions and credits
Donations
This mod adds a tree to all the games items from index 0 to 65535. so if its out there there is a tree of it. The texture are testing textures so a true texture submission is appreciated. i only need a universal sapling and a tree texture due to me using automated software to update all the files. 

use debug getindex "item name" to find the Item ID of the tree so...

Wheat is "262" so the tree name is "Item Id Number 262 Sapling"

Json Assets is required and you need more than 65535 items in the game to make this work.

it is Not a Virus because I used https://json-generator.com/ with this code.

['{{repeat(65535)}}',
  {
    Name: function (tags ,x) {
      if (this.Name === null) {
        x = 0 ;}
      else if ( x !==0) {
       x += 1;
      }
      else if ( x === 0) {
        x = 1;
      }
      x = x- 1;
    return x.toString();
    },
    Product: '{{index()}}',
    SaplingName: function(tags, y){
      if (this.Name === null) {
       y  = 0 ;}
      else if ( y !==0) {
      y+= 1;
      }
      else if ( y === 0) {
        y = 1;
      }
     y = y- 1;
      return "Item Id Number " + y.toString() + " Tree Sappling";
    },
    SaplingDescription:
    function(tags, z){
      if (this.Name === null) {
       z  = 0 ;}
      else if (z !==0) {
      z+= 1;
      }
      else if ( z === 0) {
        z = 1;
      }
     z = z- 1;
      return "Takes 28 days to produce a mature Item Id Number " + z.toString() + " Tree Sappling. Ready to harvest in the fall. Only grows if the 8 surrounding tiles are empty.";
    },
    Season: "fall",
    saplingPurchasePrice: 3750    
}]
and used this python code to split the result.

import json
import os
import shutil
docs = json.load(open('in.json'))
mode = 0o666
for ii, doc in enumerate(docs):
    path= 'C:\\Users\\Owner\\Desktop\\py\\FruitTrees\\Item ID Number '+ str(ii)
    os.mkdir(path, mode)
    os.chdir(path)
    shutil.copy(r'C:\Users\Owner\Desktop\py\img\sapling.png', path)
    shutil.copy(r'C:\Users\Owner\Desktop\py\img\tree.png', path)
    with open('tree.json', 'w') as out:
        json.dump(doc, out, indent=2)