Antique Atlas CraftTweaker API Adapter Mod (1.12.2) – Pin Rare Ores
Antique Atlas CraftTweaker API Adapter Mod links CraftTweaker ZenScripts to the Antique Atlas MarkerAPI. This mod requires both CraftTweaker and Antique Atlas so scripts can place or delete regular markers and global markers on in-game atlases. It gives modpacks a simple way to add custom map tools, such as marking certain ores automatically when clicked, without writing a brand new mod. Players who know ZenScript can also use it to add handy quality-of-life tweaks to their local games.

Features:
- ZenScript MarkerAPI Access: Opens the Antique Atlas MarkerAPI to CraftTweaker ZenScripts through the
mods.AAMarkerAPIandmods.AAMarkerimports. - Regular and Global Markers: Lets scripts place and remove both single-atlas markers and global markers on in-game atlases.
- Integer and Double Coordinates: Supports both integer and double-precision X and Z coordinates, automatically rounding double values (such as player coordinates from
crafttweaker.api.player.IPlayer) to integers. - Returns either an
AAMarkerobject usingputMarkerandputGlobalMarker, or a marker ID integer usingputMarkerIandputGlobalMarkerI. - Deletes existing markers from a specific atlas with
deleteMarkeror removes global markers withdeleteGlobalMarkerusing their marker IDs. - Accepts custom parameters for each marker, including the world,
visibleAheadsetting, marker type, label, and coordinates. - Supports custom block interactions in scripts, such as left-clicking or right-clicking a mob spawner or diamond ore while holding an Antique Atlas to place a skull or diamond icon on the map.
- Gives modpacks and ZenScript users a simple way to build custom map marker tools and local tweaks without writing a separate mod.
Configuration:
Add these two lines at the top of your ZenScript file to import the adapters:
import mods.AAMarkerAPI;
import mods.AAMarker;
Available ZenScript 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 versions round off double-precision coordinates (like those from crafttweaker.api.player.IPlayer) to integers and work the exact same way as the integer versions.
Example ZenScript that adds markers when you left-click or right-click specific blocks while holding an Antique Atlas (adding a skull icon for a mob spawner, a diamond icon for diamond ore, or adding and deleting a marker on dirt):
import crafttweaker.events.IEventManager;
import crafttweaker.player.IPlayer;
import mods.AAMarkerAPI;
import mods.AAMarker;
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();
}
}
}
});
How to Install:
New to Minecraft? Follow our step-by-step guide to install Mods on your PC.View Guide
Antique Atlas CraftTweaker API Adapter Mod Download Links
For Minecraft 1.12.2
Forge version: Download from Server 1 – Download from Server 2
Have you ever used connector mods (like Sinytra Connector) to run Fabric mods on Forge/NeoForge?
44 responses · See the full results →
0
























This post has no comments yet. Be the first — your comment will appear here.