on player breaks block: - if ]> || !]> { - determine cancelled } - determine passively cancelled - define item - if { - ^run s@BonusPoints_Stealthy d: instantly - if ! { - flag player bonuspoints.madrush:1 } - flag player score:+:1 - define earnedxp ]>]> - yaml set id: Lobby.currencies.xp:+: - narrate "<&b><&l>Scored Point!<&r><&a> + XP" - yaml set id: Shift.gamestats.solo.solopoints:++ - yaml set id: Shift.gamestats.general.alltimepoints:++ - playsound sound:BLOCK_NOTE_PLING volume:1.2 pitch:2 - queue clear } - modifyblock bedrock - flag player bonuspoints.minimalist:0 - define bonus - define materials - if { - define quantity ].to[]>]> - give quantity: - if { - give quantity:1 } else { - define quantity .minq]>].to[.maxq].add_int[]>]> - give .reward]> quantity: - if ].contains[bonus]> { - give .bonus]> quantity:1 } } } - yaml set id: Shift.gamestats.general.alltimeblocksmined:++ - define MinerUnlock li@|| - define mined ].read[Shift.gamestats.general.alltimeblocksmined]> - if ]> { - narrate "<&a><&k>!!<&r> <&b><&l>You<&sq>ve just unlocked the <&3><&l>Miner Level ]> <&b><&l>class! <&a><&k>!!<&r>" targets: - yaml set id: Shift.classes.Miner:]> } - if { - flag player alltimegoldoremined:+:1 - define CapitalistUnlock li@|| - define goldmined ].read[Shift.gamestats.general.alltimegioldblocksmined]> - if ]> { - narrate "<&a><&k>!!<&r> <&b><&l>You<&sq>ve just unlocked the <&3><&l>Capitalist Level ]> <&b><&l>class! <&a><&k>!!<&r>" targets: - yaml set id: Shift.classes.Capitalist:]> } } - run s@ToolDamage d: instantly - wait ]> - modifyblock