Skip to content

Commit 181084a

Browse files
committed
version 2.1
1 parent 97ba6b8 commit 181084a

38 files changed

+193
-35
lines changed

LICENCE renamed to LICENSE

File renamed without changes.

bundles/bundle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mod.cheat.description = [royal]Adds different things for cheats\n\n\n[#8A8A8A]Links:\n[royal]https://vk.com/mindustry_cheat\nhttps://github.com/paulieg626/Cheat\n\n[#8A8A8A]Translations:\n[white]Ру[#1871E8]сск[#CC2716]ий\n[#cc2716]En[white]gli[#1871e8]sh\n[yellow]Укр[#1871e8]аїна

bundles/bundle_ru.properties

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
mod.cheat.description = [royal]Добавляет разные штуки для читов\n\n\n[#8A8A8A]Ссылки:\n[royal]https://vk.com/mindustry_cheat\nhttps://github.com/paulieg626/Cheat\n\n[#8A8A8A]Переводы:\n[white]Ру[#1871E8]сск[#CC2716]ий\n[#cc2716]En[white]gli[#1871e8]sh\n[yellow]Укр[#1871e8]аїна
2+
block.cheat-skip.name = [#999900]Скип волн [#ff0000][Чит]
3+
block.cheat-value.name = [#999900]Мега контейнер [#ff0000][Чит]
4+
block.cheat-power.name = [#999900]Источник энергии [#ff0000][Чит]
5+
block.cheat-cc.name = [#999900]Заполнялка [#ff0000][Чит]
6+
block.cheat-boost.name = [#999900]Мега проектор [#ff0000][Чит]
7+
block.cheat-item.name = [#999900]Источник предметов [#ff0000][Чит]
8+
block.cheat-conv.name = [#999900]Ультра конвеер [#ff0000][Чит]
9+
block.cheat-liquid.name = [#999900]Источник жидкости [#ff0000][Чит]
10+
block.cheat-magic.name = [#999900]Магический верстак [#ff0000][Чит]
11+
block.cheat-turret.name = [#999900]Смертельная турель [#ff0000][Чит]
12+
block.cheat-shield.name = [#999900]Супер защита [#ff0000][Чит]
13+
block.cheat-drill.name = [#999900]Скоростной бур [#ff0000][Чит]
14+
liquid.cheat-x250.name = [red]x250 [green]Ускорение

bundles/bundle_uk_UA.properties

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
mod.cheat.description = [royal]Додає різні штуки для читов\n\n\n[#8A8A8A]Посилання:\n[royal]https://vk.com/mindustry_cheat\nhttps://github.com/paulieg626/Cheat\n\n[#8A8A8A]Переклади:\n[white]Ру[#1871E8]сск[#CC2716]ий\n[#cc2716]En[white]gli[#1871e8]sh\n[yellow]Укр[#1871e8]аїна
2+
block.cheat-skip.name = [#999900]Скіп хвиль [#ff0000][Чит]
3+
block.cheat-value.name = [#999900]Мега контейнер [#ff0000][Чит]
4+
block.cheat-power.name = [#999900]Джерело енергії [#ff0000][Чит]
5+
block.cheat-cc.name = [#999900]Заполнялка [#ff0000][Чит]
6+
block.cheat-boost.name = [#999900]Мега проектор [#ff0000][Чит]
7+
block.cheat-item.name = [#999900]Джерело предметів [#ff0000][Чит]
8+
block.cheat-conv.name = [#999900]Ультра конвеєр [#ff0000][Чит]
9+
block.cheat-liquid.name = [#999900]Джерело рідини [#ff0000][Чит]
10+
block.cheat-magic.name = [#999900]Магічний верстак [#ff0000][Чит]
11+
block.cheat-turret.name = [#999900]Смертельна турель [#ff0000][Чит]
12+
block.cheat-shield.name = [#999900]Супер захист [#ff0000][Чит]
13+
block.cheat-drill.name = [#999900]Швидкісна дриль [#ff0000][Чит]
14+
liquid.cheat-x250.name = [red]x250 [green]Прискорення [#ff0000][Чит]

content/blocks/boost.hjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "[#999900]Мега проектор [#ff0000][Чит]"
1+
name: "[#999900]Mega projector [#ff0000][Cheat]"
22
size: 1
33
range: 500
44
reload: 5

content/blocks/cc.hjson

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: "[#999900]Заполнялка [#ff0000][Чит]"
1+
name: "[#999900]Filler [#ff0000][Cheat]"
22
alwaysUnlocked:true
3-
category:distribution
3+
category: effect
44
requirements:[
55
copper/0
66
]

content/blocks/conv.hjson

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
name: "[#999900]Ультра конвеер [#ff0000][Чит]"
1+
name: "[#999900]Ultra conveyor [#ff0000][Cheat]"
22
alwaysUnlocked:true
33
category:distribution
4-
requirements:[
5-
copper/0
6-
]
4+
requirements:[ copper/0 ]

content/blocks/drill.hjson

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name:"[#999900]Speed ​​drill [#ff0000][Cheat]"
2+
type:"Drill"
3+
size:1
4+
health:9999999
5+
tier:90
6+
drillTime:1
7+
itemCapacity:300
8+
rotateSpeed:1
9+
requirements:[copper/0]
10+
category:production
11+
hardnessDrillMultiplier: 0

content/blocks/item.hjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "[#999900]Источник предметов [#ff0000][Читы]"
1+
name: "[#999900]Item source [#ff0000][Cheat]"
22
size: 1
33
hasItems: true
44
update: true

content/blocks/liquid.hjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "[#999900]Источник жидкости [#ff0000][Чит]"
1+
name: "[#999900]Liquid source [#ff0000][Cheat]"
22
size: 1
33
hasLiquids: true
44
update: true

content/blocks/magic.hjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "[#999900]Магический верстак [#ff0000][Чит]"
1+
name: "[#999900]Magic workbench [#ff0000][Cheat]"
22
alwaysUnlocked:true
33
category:effect
44
requirements:[

content/blocks/power.hjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "[#999900]Источник энергии [#ff0000][Читы]"
1+
name: "[#999900]Energy source[#ff0000][Cheat]"
22
size: 1
33
maxNodes: 300
44
outputsPower: true

content/blocks/shield.hjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "[#999900]Супер защита [#ff0000][Чит]"
1+
name: "[#999900]Super protection [#ff0000][Cheat]"
22
consumes: {
33
items: {
44
booster:true

content/blocks/skip.hjson

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: "[#999900]Skip wave [#ff0000][Cheat]"
2+
alwaysUnlocked:true
3+
category: effect
4+
requirements:[
5+
copper/0
6+
]

content/blocks/turret.hjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "[#999900]Убийственная турель [#ff0000][Чит]"
1+
name: "[#999900]Killing turret [#ff0000][Cheat]"
22
targetAir: true
33
targetGround: true
44
size: 1

content/blocks/value.hjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "[#999900]Бесконечный контейнер [#ff0000][Чит]"
1+
name: "[#999900]Mega container [#ff0000][Cheat]"
22
size: 2
33
alwaysUnlocked:true
44
category:effect

content/liquids/x250.hjson

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
name:"[red]x250 [green]BOOST"
2-
description:"[red]Супер ускорялка!"
3-
temperature:0
4-
flammability: 0
1+
name:"[red]x250 [green]Acceleration"
2+
temperature:249
3+
flammability: 249
54
heatCapacity:249
6-
viscosity:0
7-
explosiveness:0
8-
color:"#25128D"
5+
viscosity:249
6+
explosiveness:249
7+
color:"#ff25128D"

content/units/unit2.hjson

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Unit CHEATS
2+
type: naval
3+
targetAir: true
4+
targetGround: true
5+
speed: 5
6+
flying: true
7+
hitSize: 1
8+
armor: 500000
9+
health: 99999999
10+
rotateSpeed: 12
11+
commandLimit: 20
12+
range: 100
13+
weapons:[
14+
{
15+
name: weapon1
16+
x: 0
17+
y: 0
18+
reload: 1
19+
ejectEffect: none
20+
shootSound: laser
21+
rotate: true
22+
shots:1
23+
bullet: {
24+
type: ShrapnelBulletType
25+
damage: 40000
26+
shootEffect: teleport
27+
despawnEffect: lava
28+
width: 0.5
29+
lifetime: 50
30+
knockback: 0.1
31+
splashDamageRadius: 25
32+
splashDamage: 33
33+
serrations: 70
34+
length: 1000
35+
}}
36+
]

icon.png

273 KB
Loading

mod.hjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ displayName:"Читерский мод"
22
name:"cheat"
33
description:"Добавляет разные штуки для читов\nhttps://vk.com/mindustry_cheat"
44
author:"paulieg626"
5-
version:"2.0.2"
5+
version:"2.1"
66
dependencies:[]
77
minGameVersion: 122

scripts/blocks/magic.js

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ const m = extendContent(Block, "magic",{
1111

1212
m.buildType = prov(() => extend(Building,{
1313
pint: 0,
14+
rX: 0,
15+
rY: 0,
16+
spawnX: 0,
17+
spawnY: 0,
1418
unitAll: [],
1519
addButtonTeam(i, table){
1620
table.button(new TextureRegionDrawable(Core.atlas.find(m.name + "-" + i)), Styles.clearFulli, 30, run(() => {
@@ -36,28 +40,53 @@ m.buildType = prov(() => extend(Building,{
3640
};
3741
table.row();
3842
table.button(new TextureRegionDrawable(Core.atlas.find(m.name + "-" +"kill")), Styles.clearFulli, 30, run(() => {
39-
Groups.unit.each(cons(unit => unit.kill()))
43+
Groups.unit.each(cons(unit => {if(unit!=null&&unit!=undefined){unit.kill()}}))
44+
})).size(40);
45+
//Верх
46+
table.button(new TextureRegionDrawable(Core.atlas.find(m.name + "-up")), Styles.clearFulli, 30, run(() => {
47+
if(this.rY<39){this.spawnY=this.spawnY+8;this.rY=this.rY+8}
4048
})).size(40);
4149
table.button(new TextureRegionDrawable(Core.atlas.find(m.name + "-" +"clear")), Styles.clearFulli, 30, run(() => {
4250
this.unitAll = [];
4351
})).size(40);
52+
table.row();
53+
//Лево
54+
table.button(new TextureRegionDrawable(Core.atlas.find(m.name + "-left")), Styles.clearFulli, 30, run(() => {
55+
if(this.rX>-39){this.spawnX=this.spawnX-8;this.rX=this.rX-8}
56+
})).size(40);
4457
table.button(new TextureRegionDrawable(Core.atlas.find(m.name + "-" +"play")), Styles.clearFulli, 30, run(() => {
4558
for(var b = 0; b < this.unitAll.length; b++){
4659
unitsGroup.get(this.unitAll[b]).spawn(this.team, this.spawnX, this.spawnY);
4760
}
4861
this.unitAll = [];
4962
})).size(40);
50-
},
51-
loadTex(){
52-
this.spawnX = this.x;
53-
this.spawnY = this.y;
63+
//Право
64+
table.button(new TextureRegionDrawable(Core.atlas.find(m.name + "-right")), Styles.clearFulli, 30, run(() => {
65+
if(this.rX<39){this.spawnX=this.spawnX+8;this.rX=this.rX+8}
66+
})).size(40);
67+
table.row();
68+
table.button("", run(() => {})).size(40);
69+
//Низ
70+
table.button(new TextureRegionDrawable(Core.atlas.find(m.name + "-down")), Styles.clearFulli, 30, run(() => {
71+
if(this.rY>-39){this.spawnY=this.spawnY-8;this.rY=this.rY-8}
72+
})).size(40);
73+
table.button("", run(() => {this.x=this.x-8;this.drawx=this.drawx-8;})).size(40);
5474
},
5575
update(tile){
5676
if(this.pint <= 0){
57-
this.loadTex()
5877
this.pint++
78+
this.loadS();
5979
}
80+
},
81+
draw(){
82+
Draw.rect(this.block.name,this.x,this.y);
83+
Draw.rect(this.block.name+"-g",this.spawnX,this.spawnY);
84+
},
85+
loadS(){
86+
this.spawnX = this.x;
87+
this.spawnY = this.y;
6088
}
6189
}));
90+
m.floating = true;
6291
m.update = true;
6392
m.configurable = true;

scripts/blocks/skip.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
const skip = extendContent(Block, "skip", {});
2+
3+
skip.buildType = () => extend(Building, {
4+
update(){},
5+
buildConfiguration(table) {
6+
table.button(new TextureRegionDrawable(Core.atlas.find("cheat-play")), Styles.clearFulli, 30, run(() => {
7+
const dialog = new BaseDialog("[pink]Скип волн");
8+
dialog.setFillParent(false);
9+
const text = new Label("[red]1");
10+
dialog.cont.add(text);
11+
dialog.cont.row();
12+
dialog.cont.slider(1,99999999,1,new Floatc({get: function (value){text.setText("[red]"+value)}}))
13+
dialog.buttons.button("@ok", run(() => {
14+
dialog.hide();
15+
var i = text.getText().toString();
16+
i=i.replace(/\D+/g,"");
17+
Vars.state.wave=Number(i);
18+
//Действие
19+
})).width(125);
20+
dialog.row();
21+
dialog.buttons.button("@back", run(() => {
22+
dialog.hide();
23+
})).width(125);
24+
dialog.show()
25+
})).size(40);
26+
}
27+
});
28+
skip.update = true;
29+
skip.configurable = true;

scripts/blocks/turret.js

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@ energyBall.speed = 5;
55
energyBall.lifetime = 200;
66
energyBall.damage = 999999999;
77

8+
const c = extend(BasicBulletType,{});
9+
c.shootEffect = Fx.none;
10+
c.smokeEffect = Fx.none;
11+
c.speed = 5;
12+
c.lifetime = 200;
13+
c.damage = 999999999;
14+
15+
const p = extend(BasicBulletType,{});//LiquidBulletType
16+
//p.liquid = Vars.content.getByName(ContentType.liquid, "cheat-x250")
17+
p.speed = 5;
18+
p.lifetime = 200;
19+
p.damage = 999999999;
20+
21+
energyBall.fragBullets = 6;
22+
energyBall.fragBullet = c;
23+
p.fragBullets = 3;
24+
c.fragBullet = p;
25+
826
const turret = extendContent(ItemTurret,"turret",{
927
init(){
1028
this.ammo(Vars.content.getByName(ContentType.item, "copper"), energyBall,1);
@@ -23,13 +41,10 @@ turret.buildType = prov(()=>extend(ItemTurret.ItemTurretBuild,turret,{
2341
this.handleItem(this,Items.copper)
2442
this.health = Number.MAX_VALUE;
2543
this.super$updateTile();
26-
}/*,
27-
draw(tile){
28-
Draw.rect("block-1",this.tile.drawx(),this.tile.drawy());
29-
},*/
44+
}
3045
}));
3146
turret.itemCapacity=100000000;
3247
turret.range = 500;
3348
turret.reload = 1;
34-
turret.shots = 5;
49+
turret.shots = 2;
3550
turret.health = 900000000;

scripts/main.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@ require("blocks/shield");
1010
require("blocks/boost");
1111
require("blocks/cc");
1212
require("blocks/item");
13+
require("blocks/skip");
1314

14-
print("");
15+
print("\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/");
1516
print("$$$$$$$$$$$$$$$$$$$");
1617
print("Mindustry CheatMod");
1718
print("by paulieg626");
1819
print("$$$$$$$$$$$$$$$$$$$");
19-
print("");
20+
print("/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\");
21+
22+
var mod = Vars.mods.locateMod("cheat");
23+
mod.meta.displayName = "[yellow]Cheat[orange]MOD";
24+
mod.meta.description = "@mod.cheat.description";
25+
mod.meta.author = "[brick]paulieg626";

sprites/blocks/drill/drill-item.png

124 Bytes
Loading
399 Bytes
Loading

sprites/blocks/drill/drill-top.png

201 Bytes
Loading

sprites/blocks/drill/drill.png

457 Bytes
Loading

sprites/blocks/skip.png

695 Bytes
Loading

sprites/icons/magic-down.png

247 Bytes
Loading

sprites/icons/magic-g.png

139 Bytes
Loading

sprites/icons/magic-left.png

205 Bytes
Loading

sprites/icons/magic-right.png

207 Bytes
Loading

sprites/icons/magic-up.png

234 Bytes
Loading

sprites/icons/play.png

261 Bytes
Loading

sprites/units/mega_boss.png

-5.9 KB
Binary file not shown.

sprites/units/mega_boss2.png

-6.8 KB
Binary file not shown.

sprites/units/unit2.png

7.27 KB
Loading

0 commit comments

Comments
 (0)