Sunday, July 3, 2011

r882 - Map Download (More than 6+ maps supported now) plus some Scripting Additions

I've been mainly looking at the past few days about setting up a new website for maps with additional features to be added (like ratings & stats).  More details on that over the next week or so.  Hopefully MCP will be updated for 1.7 here shortly and I will then update AdventureCraft to 1.7.

Anyways update list for r882!

  • Adds getLightValue to world for scripting
  • Adds the ability to trigger with world
    • triggerBlock(int blockX, int blockY, int blockZ) - Quick trigger on and off for the specified block coords
    • triggerArea(int minX, int minY, int minZ, int maxX, int maxY, int maxZ) - Quick trigger on and off for the specified area.
    • setTriggerArea(int blockX, int blockY, int blockZ, int minX, int minY, int minZ, int maxX, int maxY, int maxZ) - Enables an active trigger for the specified area from a specified block. Trigger area will remain active till its removed.
    • setTriggerArea(int blockX, int blockY, int blockZ, int areaID, int minX, int minY, int minZ, int maxX, int maxY, int maxZ) - Enables an active trigger for the specified area from a specified block with a specified areaID. Trigger area will remain active till its removed.
    • removeTriggerArea(int blockX, int blockY, int blockZ, int areaID) - Removes a trigger for a specified block coord and areaID.
    • removeTriggerAreas(int blockX, int blockY, int blockZ) - Removes all triggers for a specified block coord.
  • Map download screen supports more than 6 maps now at the normal resolution
  • Simple variables in scripting get saved out now (includes strings, booleans, and number variables).
  • onInteraction is now accessible from scripts for EntityLivingScript

8 comments:

  1. Please,help me!When I try to install adventure craft on my computer, appears the following error:"The minecraft.jar is not from a fresh install".

    ReplyDelete
  2. Is that why there is no start button when I open my adventurecraft.exe?

    ReplyDelete
  3. Yep, till it's installed correctly it won't allow you to run AC.

    ReplyDelete
  4. Can you post a download to a 1.6.6 version of minecraft if you have it? I cant find a torrent of it.

    ReplyDelete
  5. You should know that he won't. Plus, I doubt pirated versions work with AC anymore.

    Cryect, I have a question about scripting. I want an NPC to start walking when I arrive at a certain area. I already used entity.setVelocity, and I know that works, but how can I manipulate the new trigger param to work with the NPC?

    ReplyDelete
  6. Yeah, pirated versions aren't likely to work due to JAR validation.

    @SN777, First I would have the NPC on its load put it self into a global variable. Then have a script block that gets triggered by a trigger block that tells that NPC from the global variable to path using either pathToEntity(Entity e) or pathToBlock(x, y, z)

    ReplyDelete
  7. @Cryect:Can't seem to get the script to function properly.
    I have globalOnLoad as:
    var e = 0
    Then I have a variable activation script as:
    var e = 1
    Then the NPC onUpdate script as:
    if(e = 1) {
    entity.pathToBlock(-228, 120, -314);
    } else {
    entity.pathToBlock(-228, 120, -302);
    }
    It seems that the NPC always thinks variable e is 1, even when I deactivated the script. Plus, even though used merely as a revertion param, the else arguement doesn't seem to be recognized.

    ReplyDelete