ContentTweaker

ContentTweaker

27M Downloads

Not working on 1.7.10?

sigvaldr opened this issue ยท 1 comments

commented

Game version: 1.7.10
Mod versions:
ContentTweaker 1.0.5
CraftTweaker 3.0.13
ModTweaker2 0.9.6

My Script called "CustomContent.zs":

##### Imports
#loader contenttweaker
import mods.contenttweaker.VanillaFactory;
import mods.contenttweaker.Item;


### ITEMS:

# Ancient Token Item
var token = VanillaFactory.createItem("iwan_token");
iwan_token.maxStackSize = 16;
iwan_token.rarity = "epic";
iwan_token.itemUseAction = "block";


### ITEM REGISTRATION
iwan_token.register();

And here's the error I get in the log:

[19:57:18] [Client thread/INFO]: [CHAT] ERROR: ?:3 > No such member: contenttweaker
[19:57:18] [Client thread/INFO]: [CHAT] ERROR: ?:3 > Not a valid type
[19:57:18] [Client thread/INFO]: [CHAT] ERROR: CustomContent.zs:4 > No such member: contenttweaker
[19:57:18] [Client thread/INFO]: [CHAT] ERROR: CustomContent.zs:4 > Not a valid type
[19:57:18] [Client thread/INFO]: [CHAT] ERROR: CustomContent.zs:10 > could not find VanillaFactory
[19:57:18] [Client thread/INFO]: [CHAT] ERROR: CustomContent.zs:11 > could not find iwan_token
[19:57:18] [Client thread/INFO]: [CHAT] ERROR: CustomContent.zs:11 > not a valid lvalue
[19:57:18] [Client thread/INFO]: [CHAT] ERROR: CustomContent.zs:12 > could not find iwan_token
[19:57:18] [Client thread/INFO]: [CHAT] ERROR: CustomContent.zs:12 > not a valid lvalue
[19:57:18] [Client thread/INFO]: [CHAT] ERROR: CustomContent.zs:13 > could not find iwan_token
[19:57:18] [Client thread/INFO]: [CHAT] ERROR: CustomContent.zs:13 > not a valid lvalue
[19:57:18] [Client thread/INFO]: [CHAT] ERROR: CustomContent.zs:17 > could not find iwan_token
[19:57:18] [Client thread/INFO]: [CHAT] ERROR: Error executing CustomContent.zs: Bad type on operand stack
Exception Details:
  Location:
    CustomContent.__script__()V @23: invokestatic
  Reason:
    Type 'stanhebben/zenscript/value/IAny' (current frame, stack[4]) is not assignable to 'java/lang/String'
  Current Frame:
    bci: @23
    flags: { }
    locals: { }
    stack: { null, '[Lstanhebben/zenscript/value/IAny;', '[Lstanhebben/zenscript/value/IAny;', integer, 'stanhebben/zenscript/value/IAny' }
  Bytecode:
    0x0000000: 0112 0abd 000c 5912 0d12 0f59 c700 0857
    0x0000010: 01a7 0006 b800 15b8 001b 53b9 001f 0200
    0x0000020: 4c01 01b9 001f 0200 57b1               
  Stackmap Table:
    full_frame(@20,{},{Null,Object[#33],Object[#33],Integer,Object[#35]})
    full_frame(@23,{},{Null,Object[#33],Object[#33],Integer,Object[#12]})

Looks like it isn't recognizing that ContentTweaker is even a thing....Am I missing a mod or are things different in 1.7.10 than they are in 1.12?

commented

100% different. The 1.7.10 ContentTweaker docs are on the old MineTweaker wiki.