CurseForge · Minecraft mod
Antique Atlas/CraftTweaker API Adapter
A simple API adapter to allow CraftTweaker scripts to add markers to Antique Atlas maps
Quick answer
Which Antique Atlas/CraftTweaker API Adapter release should I use?
Antique Atlas/CraftTweaker API Adapter aactadapter-1.12.2-0.1.0.jar targets 1.12.2. The project page does not say whether it belongs on the client. The project page does not say whether it belongs on the dedicated server. 1 required mod needs a matching file.
Where it goes
Is Antique Atlas/CraftTweaker API Adapter required on the client, server, or both?
The project page does not say whether it belongs on the client. The project page does not say whether it belongs on the dedicated server.
The source does not explicitly classify this release as client-only or server-only.
What else does Antique Atlas/CraftTweaker API Adapter aactadapter-1.12.2-0.1.0.jar need?
aactadapter-1.12.2-0.1.0.jar. Change the file and its required mods may change too.
Install CraftTweaker, Antique Atlas first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add Antique Atlas/CraftTweaker API Adapter without breaking your instance.
Built for Antique Atlas/CraftTweaker API Adapter aactadapter-1.12.2-0.1.0.jar. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use aactadapter-1.12.2-0.1.0.jar. It targets 1.12.2; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install CraftTweaker, Antique Atlas first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.
- 03
Put it on the correct side
The project page does not say whether it belongs on the client. The project page does not say whether it belongs on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside aactadapter-1.12.2-0.1.0.jar. It opens that exact file at the source.
About this project
What does Antique Atlas/CraftTweaker API Adapter add?
A simple API Adapter to allow CraftTweaker ZenScripts to access the Antique Atlas MarkerAPI methods to add markers and global markers to in-game Atlases. This is primarily a tool for modpack makers who wish to use the MarkerAPI without having to write a new mod - for example, to add a tool that automatically adds map markers when clicked on certain ores (see example), though Zenscript-savvy players may find it useful to add quality-of-life tweaks to their own local games.
Requires:
CraftTweaker (12.2-4.1.13)
Antique Atlas (1.12.2-4.5.0)
You will probably need to import the adapters into your ZenScript
import mods.AAMarkerAPI;
import mods.AAMarker;
Methods
AAMarker mods.AAMarkerAPI.putMarker(IWorld w, boolean visibleAhead, int atlasID, String markerType, String label, int x, int z)
AAMarker mods.AAMarkerAPI.putMarker(IWorld w, boolean visibleAhead, int atlasID, String markerType, String label, double x, double z)
AAMarker mods.AAMarkerAPI.putGlobalMarker(IWorld w, boolean visibleAhead, String markerType, String label, int x, int z)
AAMarker mods.AAMarkerAPI.putGlobalMarker(IWorld w, boolean visibleAhead, String markerType, String label, double x, double z)
int mods.AAMarkerAPI.putMarkerI(IWorld w, boolean visibleAhead, int atlasID, String markerType, String label, int x, int z)
int mods.AAMarkerAPI.putMarkerI(IWorld w, boolean visibleAhead, int atlasID, String markerType, String label, double x, double z)
int mods.AAMarkerAPI.putGlobalMarkerI(IWorld w, boolean visibleAhead, String markerType, String label, int x, int z)
int mods.AAMarkerAPI.putGlobalMarkerI(IWorld w, boolean visibleAhead, String markerType, String label, double x, double z)
void mods.AAMarkerAPI.deleteMarker(IWorld w, int atlasID, int markerID)
void mods.AAMarkerAPI.deleteGlobalMarker(IWorld w, int markerID)
The "double" overloads round off the given double-precision coordinates (such as those retrievable from crafttweaker.api.player.IPlayer) to integers, but otherwise function identically.
For more details on markerTypes and labels, see The Antique Atlas wiki
A Quick and Dirty Example ZS
import crafttweaker.events.IEventManager;
import crafttweaker.player.IPlayer;
import mods.AAMarkerAPI;
import mods.AAMarker;
//Clicking (left- or right-) on a the specified blocks with an Antique Atlas item in-hand will add a marker to that atlas
//Clicking on a spawner will add a marker with the "skull" icon, and the diamond ore will use the "diamond" icon
events.onPlayerInteract(function(event as crafttweaker.event.PlayerInteractEvent){
if (<antiqueatlas:antique_atlas:*>.matches(event.player.currentItem)) {
var atlasID as int;
var x as double;
var z as double;
var mkI as int;
var mkAAM as AAMarker;
if (!event.world.isRemote()){
atlasID = event.player.currentItem.metadata;
x = event.player.x;
z = event.player.z;
if ((<minecraft:mob_spawner>.asBlock()) in (event.block)){
mods.AAMarkerAPI.putMarker(event.world, false, atlasID, "skull", event.block.displayName , x, z);
event.player.sendMessage("Marker added");
event.cancel();
}
if ((<minecraft:diamond_ore>.asBlock()) in (event.block)){
mkI = mods.AAMarkerAPI.putMarkerI(event.world, false, atlasID, "diamond", event.block.displayName , x, z);
event.player.sendMessage("Marker added");
event.cancel();
}
if ((<minecraft:dirt>.asBlock()) in (event.block)){
mkAAM = mods.AAMarkerAPI.putMarker(event.world, false, atlasID, "google", event.block.displayName , x, z);
event.player.sendMessage("Marker added");
event.player.sendMessage("Nah, nevermind");
mods.AAMarkerAPI.deleteMarker(event.world, atlasID, mkAAM.getId());
event.player.sendMessage("Marker Deleted");
event.cancel();
}
}
}
});
Project description from CurseForge.
Pick your setup
Antique Atlas/CraftTweaker API Adapter by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.12.2
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Antique Atlas/CraftTweaker API Adapter versions and loaders
aactadapter-1.12.2-0.1.0.jar
16 Jan 2019
aactadapter-0.0.1.jar
26 May 2018
Looking for an older file? The official CurseForge project page is in Resources.