• 1

    posted a message on [1.13] Minecraft functions/datapacks

    I wrote a very basic datapack to get people started that loops a function (or functions) every tick

    https://github.com/Veritas83/minecraft-1.13-function-loop

    Simply add further function calls in /veritas0923/data/v0923/functions/gameloop.mcfunction


    To remove my branding simply rename the 2 folders and edit the ticks.json to reference your new folder.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Genetics in Minecraft via Commands

    If you were to use an armor stand as your fixed point of reference, call it as an entity and use relative coordinates to it to check for blocks.

    /execute as @e[name=fixed] if block ~1 ~ ~ minecraft:pink_concrete run say "pink concrete detected"


    And you can chain them together.

    /execute as @e[name=fixed] if block ~1 ~ ~ minecraft:pink_concrete if block ~2 ~ ~ minecraft:blue_concrete_powder run say "pink concrete detected beside blue"

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Genetics in Minecraft via Commands

    The very latest versions of Minecraft (1.13 SNAPSHOT, Currently 17w50a) have added a bunch of conditional executions.


    execute align  -> execute
    execute as  -> execute
    execute at  -> execute
    execute if block   -> execute
    execute if blocks    all
    execute if blocks    all -> execute
    execute if blocks    masked
    execute if blocks    masked -> execute
    execute if entity 
    execute if entity  -> execute
    execute if score   <  
    execute if score   <   -> execute
    execute if score   <=  
    execute if score   <=   -> execute
    execute if score   =  
    execute if score   =   -> execute
    execute if score   >  
    execute if score   >   -> execute
    execute if score   >=  
    execute if score   >=   -> execute
    execute offset  -> execute
    execute run ...
    execute store result block   byte  -> execute
    execute store result block   double  -> execute
    execute store result block   float  -> execute
    execute store result block   int  -> execute
    execute store result block   long  -> execute
    execute store result block   short  -> execute
    execute store result entity   byte  -> execute
    execute store result entity   double  -> execute
    execute store result entity   float  -> execute
    execute store result entity   int  -> execute
    execute store result entity   long  -> execute
    execute store result entity   short  -> execute
    execute store result score   -> execute
    execute store success block   byte  -> execute
    execute store success block   double  -> execute
    execute store success block   float  -> execute
    execute store success block   int  -> execute
    execute store success block   long  -> execute
    execute store success block   short  -> execute
    execute store success entity   byte  -> execute
    execute store success entity   double  -> execute
    execute store success entity   float  -> execute
    execute store success entity   int  -> execute
    execute store success entity   long  -> execute
    execute store success entity   short  -> execute
    execute store success score   -> execute
    execute unless block   -> execute
    execute unless blocks    all
    execute unless blocks    all -> execute
    execute unless blocks    masked
    execute unless blocks    masked -> execute
    execute unless entity 
    execute unless entity  -> execute
    execute unless score   <  
    execute unless score   <   -> execute
    execute unless score   <=  
    execute unless score   <=   -> execute
    execute unless score   =  
    execute unless score   =   -> execute
    execute unless score   >  
    execute unless score   >   -> execute
    execute unless score   >=  
    execute unless score   >=   -> execute
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Minecraft 1.13 mcfunction Essentials v0.0.2-r14 (Updated: 06-04-2018)

    Changelog:


    v0.0.2-r14 6/3/2018 9:08:51 AM


    Added Nether Quartz Ore AP/Money reward
    Updated Melon harvesting per latest block changes
    Added Elytra, Shulker Boxes and Tridents to the Shop
    Added Many new Warps (World specific)
    Added Page 2 to Warp Book
    Added TDF /trigger to allow players to stop rain.


    v0.0.2-r13 XX/XX/2018 8:07:46PM


    Internal


    v0.0.2-r12 2/16/2018 7:32:21AM


    Updated entity selector syntax per latest snapshot
    CustomName NBT tag now using JSON
    Warp/Shop Book now given during setup.

    Development Server mc.nigeltodman.com using new seed. Testing new World
    Generator


    v0.0.2-r11 1/19/2018 4:24:02PM


    Sidebar display now defaults to off
    Added rewards (AP/$) for mining emerald ore


    v0.0.2-r10 12/15/2017 8:33:49AM


    Added rewards (AP/$) for harvesting planting red/brown mushrooms
    Added rewards (AP/$) for harvesting pumpkins
    Added Compass and Bed to shop
    Made setup.mcfunction less verbose.
    setup.mcfunction now displays trigger instructions instead.


    v0.0.1-r09 12/14/2017 8:08:10PM


    Fixed initial setup logic for new players
    Sets scoreboard objective ‘one’ to 1 every tick.
    Compares setupinit to one. If setupinit not at least one. setup
    All values are 0 for new players. until 1 tick and one is set.


    v0.0.1-r08 12/14/2017 8:51:30AM

    Rank and AP system working.
    Regular XP/Level is depleted via various game mechanisms…
    But your Rank will never decrease 🙂
    AP is awarded for various tasks. Killing, Planting, Mining, etc
    AP for Rank 2 is 300. Doubles every Rank.
    Added rankup.mcfunction
    Added Rank, AP and AP req to Rank Up to action bar
    Tab List now displays Rank
    Added placeholders to Shop. Added Shop Page 2

    v0.0.1-r07 12/14/2017 4:00:50AM


    Cleaned up gameloop.mcfunction
    Added triggers.mcfunction
    Added resettriggers.mcfunction
    Swapped filenames setup and setup2.
    Removed sidebar completely in favor of ‘actionbar’
    Action Bar now displays elevation (y coord) and character balance.
    Players can toggle sidebar with /trigger sidebar set 2 (2=off, 1=on)
    Added XP Bottle to shop $100
    Added Enchanting Table to shop $2000


    v0.0.1-r06 12/13/2017 9:07:01PM


    Added rewards for farming/harvesting
    Added farmcount.mcfunction
    Added harvestcount.mcfunction
    Added orecount.mcfunction
    Moved TotalKills display to Tab List
    Moved Money display to Side Bar
    Added Village Warp #1
    Added Redstone to Shop
    Added Reward for Lapis Mining
    Updated Warp Book
    Updated Shop Book
    Conditional Bug: If you travel too far away from your ‘home’ – The marker (entity) is no longer returned by target selectors. Preventing TP.


    v0.0.1-r05 12/13/2017 7:10:46AM


    Improved home teleport logic


    v0.0.1-r04 12/13/2017 12:20:34AM


    Added home and sethome functions/triggers!
    Tested working with non-ops + multiple players
    Use /trigger sethome and /trigger home
    Home warp added to warpbook. sethome only by typed trigger
    Added script revision to shop/warp book name.


    v0.0.1-r03 12/12/2017 4:32:08AM


    Rewrote the shop
    Script now actually works for non-opped players too!
    Added getshopbook and getwarpbook triggers.
    Script is now tested with a non-op player.


    v0.0.1-r02 12/12/2017 1:54:05AM


    Moved setup.mcfunction into setup2.mcfunction
    Server now runs setup.mcfunction for every player. setup2 is skipped if
    setup already ran. Otherwise call setup2
    Enabled some config values.
    Timed events coming soon.

    v0.0.1-r01 12/11/2017 11:12:51PM


    Added shopbook
    Players obtain with /function v0923:shopbook
    Added gold to the shop
    Money now rewarded for planting trees.
    Added treecount function
    Removed extra woodcount function call


    v0.0.1-r00 12/11/2017 8:52:11PM


    First release, Published to GitHub
    Infinite Game Loop, Attached to TickCount
    Basic Economy
    Money rewarded from killing mobs, mining ores, chopping trees, breaking stones
    Basic Shop, Uses /trigger buy 1-10 to buy preset items.
    (1 bread, 2 torch, 3 coal, 4 iron. So far.)
    Warps to Spawn and RandomTP
    Teleport Book with clickable links for both.
    Player HP on Tab List
    Sidebar display with Kill Count and Player Balance

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on [1.13] Teleport player to entity if scoreboard values match

    Anyone running 17w50a, Feel free to come test this out for me :P

    Server: MC.NIGELTODMAN.COM

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on [1.13] Teleport player to entity if scoreboard values match

    I've been trying to figure this out for a few days now. These commands aren't working consistently


    Update: I've got the commands to work consistently. The trick was to call the entire function as the entity ... forever

    Update2: consistently... so long as the entity can be returned by target selectors. Move too far away and @e doesn't find it anymore :(

    These are commands from my .mcfunction files. not command_block or console. They all execute within a single tick


    'unique' is a scoreboard value I created that is common to the entity and the player that summoned it. I'm trying to tp the player to the entity (with the entity doing the tp to itself) if the scoreboard values match.

    Here is my current command, called via execute as @e[name=home] run function v0923:home

    execute if score @s unique = @p[scores={home=1..},limit=1] unique as @s run tp @p[scores={home=1..},limit=1] @s




    This is how I'm summoning the entity and setting unique, tickcount is the global # of ticks the server has ever been running

    execute as @s at @s run summon minecraft:armor_stand ~ ~ ~ {CustomName:"home",NoGravity:1b,Marker:1b,PersistenceRequired:1}
    execute as @s at @s run scoreboard players operation @e[name=home,sort=nearest,limit=1] unique = @s tickcount
    execute as @s run scoreboard players operation @s unique = @s tickcount
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Home in vanilla? [1.9]

    I might try this ender portal trick with a trigger and a loop resetting it in 1.13 (17w50a)

    Update: Didn't work. tp to end causes bedrock to be generated. Can't just preset another ender portal at its arrival point.

    Not sure how to identify which players are in the end with .mcfunctions yet. The old way of {Dimension:1} doesnt work.

    Update2: I ended up doing this.

    called by trigger sethome, goes to sethome.mcfunction

    #say sethome fired!
    scoreboard players set @s sethome 1
    execute as @s at @s run summon minecraft:armor_stand ~ ~ ~ {CustomName:"home",NoGravity:1b,Marker:1b,PersistenceRequired:1}
    execute as @s at @s run scoreboard players operation @e[name=home,sort=nearest,limit=1] unique = @s tickcount
    execute as @s run scoreboard players operation @s unique = @s tickcount


    called by trigger home, goes to home.mcfunction

    #say home fired!
    #below works for 1st sethome only....
    execute as @e[name=home] if score @a[scores={home=1..},limit=1] unique = @e[name=home,limit=1] unique run tp @a[scores={home=1..},limit=1] @e[name=home,limit=1]
    ##I suspect below works for the last sethome only...
    execute as @e[name=home,sort=furthest] if score @a[scores={home=1..},limit=1] unique = @e[name=home,limit=1,sort=furthest] unique run tp @a[scores={home=1..},limit=1] @e[name=home,limit=1,sort=furthest]

    In my testing so far, this works for 2 players at once. one is op, other is not op.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on 1.13 Data pack

    I made a thread with all the 1.13 info I found that got me started. Tried to post it in this sub forum, but it just would not. :(

    http://www.minecraftforum.net/forums/minecraft/redstone-commands-and-mechanisms/2876487-1-13-minecraft-functions-datapacks

    Posted in: Recent Updates and Snapshots
  • 0

    posted a message on 17w45b target selectors scoreboard variables

    While the way I was doing it yesterday works, this way is better. (17w50a)

    execute as @a[scores={killcounter=1..}] run scoreboard players add @s money 10


    In your case the line would be

    execute as @a[scores={wet=1..}] run scoreboard players set @s iswet 1

    Posted in: Recent Updates and Snapshots
  • 0

    posted a message on Minecraft 1.13 mcfunction Essentials v0.0.2-r14 (Updated: 06-04-2018)

    Minecraft 1.13 .mcfunction Essentials v0.0.2-r14 GitHub


    Written by Nigel Todman (www.NigelTodman.com)


    Development Server: MC.NIGELTODMAN.COM





    Config:


    Line 6 of triggers.mcfunction, Specify your world spawn coords after the line

    World Specific Coords Start

    Lines 17/18 of setup.mcfunction

    Start_Config
    Set to 0 to disable the following options
    scoreboard players set @a basicincomeamt 1200
    scoreboard players set @a freeshulkerbox 1
    scoreboard players set @a usebasicincome 1


    Usage:


    Copy the contents of /datapacks/ into your own /datapacks/ folder

    /reload or restart your server.

    Run /function v0923:setup

    That’s it.


    Notes:


    Players can obtain a Warp Book with /trigger getwarpbook

    Players can obtain a Shop Book with /trigger getshopbook

    Players can enable All Player Balances with /trigger sidebar

    Disable with /trigger sidebar set 2


    Homepage GitHub

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on 17w45b target selectors scoreboard variables

    I'm using the following with a trigger value. comparing it to a scoreboard value i set to 'one' with 1 as a value.

    This is on 17w49b

    execute as @a run execute if score @s spawn >= @s one run tp @s -167 72 256
    execute as @a run execute if score @s spawn >= @s one run scoreboard players set @s spawn 0
    scoreboard players enable @a spawn
    Posted in: Recent Updates and Snapshots
  • 0

    posted a message on 1.13 Data pack

    I actually just made a datapack skeleton with a gameloop function


    http://www.nigeltodman.com/2017/12/10/minecraft-1-13-function-loop-skeleton/

    Posted in: Recent Updates and Snapshots
  • 0

    posted a message on Minecraft 1.13 Function Loop skeleton

    Minecraft 1.13 Function Loop skeleton


    Usage



        Simply drop veritas0923 into your 'datapacks' folder



        Run /function v0923:setup




    Implemented



        gameloop function



        looping with game ticks



        ticks counted to 100 then reset.



        stores player coords



        displays tickcount on sidebar




    To use a skeleton for your own project. Simply rename v0923 in ticks.json and rename the v0923 to your own namespace.


    Written for/tested on Snapshot 17w49b


    Homepage

    GitHub

    Posted in: Commands, Command Blocks and Functions
  • To post a comment, please or register a new account.