tAPI [Discontinued] tAPI - A Mod To Make Mods

Status
Not open for further replies.
Hi = (Can you write a script to create a work bench or anvil and show it, I just do not understand what I did wrong = (?

PBVhVtl.png
52NUL42.png
 
Hi = (Can you write a script to create a work bench or anvil and show it, I just do not understand what I did wrong = (?

PBVhVtl.png
52NUL42.png
I already told you that "tiles" is for items that need the station, not for the station itself.
Stations are just ordinary tiles, here's an example of one from my mod.
Code:
{
    "displayName": "Purium Anvil",
    "width": 2,
    "height": 1,
    "drawOffsetY": 2,
    "solid": false,
    "solidTop": true,
    "frameImportant": true,
    "placementOrigin": [0, 0],
    "breaksFast": true,
    "breaksByPick": true,
    "obsidianKill": true,
    "noAttach": true,
    "adjTile": [16, 134],
    "sound": 1,
    "soundGroup": 0,
    "dust": 128,
    "mapColor": [100, 210, 100],
    "drop": "Bluemagic:PuriumAnvil"
}
Then here's an example of an item that needs the station to be crafted:
Code:
{
    "displayName": "Purium Slicer",
    "width": 40,
    "height": 40,
    "scale": 1.2,
    "useStyle": 1,
    "useAnimation": 20,
    "useTime": 38,
    "maxStack": 1,
    "damage": 130,
    "knockback": 4,
    "autoReuse": true,
    "useTurn": false,
    "rare": 9,
    "melee": true,
    "value": [0, 30, 0, 0],
    "useSound": 1,
    "shoot": "Bluemagic:PuriumSlice",
    "shootSpeed": 0.4,
    "recipes":
    [{
        "items": {"Bluemagic:PuriumBar": 12},
        "tiles": ["Purium Anvil"],
        "creates": 1
    }]
}
 
[Цитата="мистер Андерхилл, должность: 504097, член: 24205"]Спасибо![/Цитата]

=)
 
I already told you that "tiles" is for items that need the station, not for the station itself.
Stations are just ordinary tiles, here's an example of one from my mod.
Code:
{
    "displayName": "Purium Anvil",
    "width": 2,
    "height": 1,
    "drawOffsetY": 2,
    "solid": false,
    "solidTop": true,
    "frameImportant": true,
    "placementOrigin": [0, 0],
    "breaksFast": true,
    "breaksByPick": true,
    "obsidianKill": true,
    "noAttach": true,
    "adjTile": [16, 134],
    "sound": 1,
    "soundGroup": 0,
    "dust": 128,
    "mapColor": [100, 210, 100],
    "drop": "Bluemagic:PuriumAnvil"
}
Then here's an example of an item that needs the station to be crafted:
Code:
{
    "displayName": "Purium Slicer",
    "width": 40,
    "height": 40,
    "scale": 1.2,
    "useStyle": 1,
    "useAnimation": 20,
    "useTime": 38,
    "maxStack": 1,
    "damage": 130,
    "knockback": 4,
    "autoReuse": true,
    "useTurn": false,
    "rare": 9,
    "melee": true,
    "value": [0, 30, 0, 0],
    "useSound": 1,
    "shoot": "Bluemagic:PuriumSlice",
    "shootSpeed": 0.4,
    "recipes":
    [{
        "items": {"Bluemagic:PuriumBar": 12},
        "tiles": ["Purium Anvil"],
        "creates": 1
    }]
}

n4ekKBR.png


-_________________-
 
You need to create a tile with the displayName "Magic Work Bench". Similar to how I created my Purium Anvil. Make sure to put it in the Tiles folder.

How i can craft magic workbench, if he hasn't recipe?
GV5xfJu.png


With this script, and I have it for one magical workbench I just get an error:

n4ekKBR.png
 
How i can craft magic workbench, if he hasn't recipe?
GV5xfJu.png


With this script, and I have it for one magical workbench I just get an error:

n4ekKBR.png
For that error, you probably need to rebuilt your mod then reload your mods.
To craft your magic workbench, you'll have to make an item form of it, so that you have a magic workbench both in the Tiles folder and in the Items folder.
 
For that error, you probably need to rebuilt your mod then reload your mods.
To craft your magic workbench, you'll have to make an item form of it, so that you have a magic workbench both in the Tiles folder and in the Items folder.

FanWOsT.jpg

RwO90CU.jpg
w7DNUdi.jpg

V16CBdO.jpg

7xpjJfj.jpg

iOdJ7KH.jpg

FvTEchP.jpg


HOW IT'S MAKE!!!!!!!! IT'S IMPOSSIBLE!!!!!!
 
Status
Not open for further replies.
Back
Top Bottom