Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

getting class type error when using gamerule script #3

Open
Nathan22211 opened this issue Mar 27, 2020 · 2 comments
Open

getting class type error when using gamerule script #3

Nathan22211 opened this issue Mar 27, 2020 · 2 comments

Comments

@Nathan22211
Copy link

Nathan22211 commented Mar 27, 2020

[LibCD] Error executing tweaker script enchant:gamerule.js: TypeError: class com.martmists.libgamerule.compat.libcd.GameruleTweaker has no such function "addGamerule" in <eval> at line number 2 Is the error I'm talking about. and it's with this in the script, which is from your documentation. var GameruleTweaker = libcd.require("libgamerule.GameruleTweaker"); GameruleTweaker.addGamerule("DoCustomMobSpawning", "boolean", true); GameruleTweaker.addGamerule("CustomRegen", "boolean", true); this is in 20w11a

@LemmaEOF
Copy link

that's probably on me, I'll look into it soon.

@Nathan22211
Copy link
Author

same issue in 20w13b

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants