Compatibility
Minecraft: Java Edition
1.12.2
Platforms
Supported environments
Links
Creators
Details
Licensed AGPL-3.0-only
Published last month
Updated 4 days ago
This mod is an extension of CraftTweaker and currently has the following features:
Set/Get the player's perspective.
import crafttweaker.player.IPlayer;
IPlayer.viewType as int
IPlayer.togglePlayerView(viewType as int) as void;
Expose ProjectE's IKnowledgeProvider and onPlayerAttemptLearn to crt.
import mods.crtadd.projecte.PlayerAttemptLearnEvent;
import mods.crtadd.projecte.KnowledgeProvider;
events.onPlayerAttemptLearn(function(event as PlayerAttemptLearnEvent){
var player as IPlayer = event.player;
player.knowledge.emc = 10000000;
if (!player.knowledge.hasKnowledge(<minecraft:lapis_block>)) {
var success = player.knowledge.addKnowledge(<minecraft:lapis_block>);
} else {
player.knowledge.hasFullKnowledge = true;
}
});



