Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ _tmp_bedrock_source

generated
!src/generated/
.*
.*

# build/debug artifacts
*.log
errfiles.txt
mc_sources/
23 changes: 18 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ group = mod_group_id

// This is the repositories block in your build.gradle. NOT the one in publishing, or in buildscript. If it does not exist already, create it.
repositories {
// 阿里云 Maven 镜像(国内加速),public 为 central 聚合镜像
maven {
name = "AliyunPublic"
url = "https://maven.aliyun.com/repository/public"
}
maven {
name = "AliyunCentral"
url = "https://maven.aliyun.com/repository/central"
}
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
Expand Down Expand Up @@ -98,7 +107,7 @@ neoForge {
}

// applies to all the run configs above
configureEach {
configureEach { run ->
// Recommended logging data for a userdev environment
// The markers can be added/remove as needed separated by commas.
// "SCAN": For mods scan.
Expand All @@ -111,16 +120,17 @@ neoForge {
// Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
logLevel = org.slf4j.event.Level.INFO

// Keep dev runs conservative on memory so the client does not over-allocate
// heap/native space on machines with a small Windows page file.
// 客户端需要加载全部资源/模型,给 4G;数据生成与服务端 2G 即可,
// 统一 SerialGC + 小线程栈,降低小页面文件机器上的原生内存压力。
def heapSize = run.name == 'client' ? '4G' : '2G'
jvmArguments.addAll(
'-Xms128m',
'-Xmx8G',
"-Xmx${heapSize}",
'-Xss512k',
'-XX:ReservedCodeCacheSize=128m',
'-XX:CICompilerCount=2',
'-XX:+UseSerialGC',
'-XX:HeapBaseMinAddress=6G'
'-XX:TieredStopAtLevel=1'
)
}
}
Expand Down Expand Up @@ -169,6 +179,9 @@ dependencies {
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
// http://www.gradle.org/docs/current/userguide/dependency_management.html
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
// 将 Kotlin 标准库打进最终 jar,否则游戏环境缺少 kotlin.jvm.internal.* 导致 NoClassDefFoundError
jarJar("org.jetbrains.kotlin:kotlin-stdlib:2.2.0")
jarJar("org.jetbrains:annotations:24.1.0")
}

// This block of code expands all declared replace properties in the specified resource targets.
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
org.gradle.jvmargs=-Xmx1G
org.gradle.jvmargs=-Xmx896m -XX:+UseSerialGC -XX:TieredStopAtLevel=1 -XX:CICompilerCount=2 -Xss512k -XX:ReservedCodeCacheSize=96m
org.gradle.daemon=false
org.gradle.parallel=false
org.gradle.caching=false
org.gradle.configuration-cache=false
kotlin.compiler.execution.strategy=in-process

#read more on this at https://github.com/neoforged/ModDevGradle?tab=readme-ov-file#better-minecraft-parameter-names--javadoc-parchment
# you can also find the latest versions at: https://parchmentmc.org/docs/getting-started
Expand Down
57 changes: 57 additions & 0 deletions list/blocks.txt
Original file line number Diff line number Diff line change
@@ -1,28 +1,40 @@
abyssal_summoner
amethyst_lantern
ancient_ice
ash
ash_cage
ash_summoner
baby_blue_eyes_flower
balloon_flower
bat_summoner
bizarre_chilli_crop
black_flower_block
blue_flower_block
blue_gem_ore
blue_ice_brick_block
breeze_flower
broken_dirt
butter_flower
butterfly_pea
candy_block
cave_crate
chiseled_ice_brick
christmas_gift_block
cloud_flower
compress_flower_block
compressed_ice
corn_crop
crate
crimson_lamp
crinum
dandelion
deep_dandelion
deep_summoner
depart_grass
desert_fan_flower
dirt_ghost_block
enchanted_summoner
end_altar
end_coal_ore
end_diamond_ore
end_emerald_ore
Expand All @@ -31,33 +43,60 @@ end_iron_ore
end_lapis_ore
end_ore
end_redstone_ore
everlasting_winter_summoner
experience_flower_crop
eye_of_nature_log
fan_flower
flesh_block
flower_ghost_block
flowing_block
forest_summoner
fritillary_crop
frozen_cage
frozen_crate
frozen_mirror_flower
fuse
ghost_ice
gold_flower
golden_bookshelf
golden_bookshelf_frame
golden_chain
golden_fence_block
golden_lamp
hammer_flower
houttuynia_crop
ice_bookshelf
ice_brick_block
ice_lantern
ice_mixed_brick
ice_rope_block
item_picker
lace_block_black
lace_block_light_red
lamp_flower
lampshade
lava_flower_crop
lava_ore
leaves_flower
leek_crop
light_obsidian
lightning_summoner
lurk_block
lurk_bud
lurk_end_stone
lurk_fruit
lurk_grass
lurk_log
lurk_mushroom
lurk_orchid
lurk_spring
magic_letter_box
maple_flower
mine
mining_machine
mock_strawberry
monitor
monitor_activated
mooli_crop
mouth_flower
nether_coal_ore
Expand All @@ -69,29 +108,47 @@ nether_lapis_ore
nether_redstone_ore
nether_stick_flower
nightmare_block
nuke_block
pink_dandelion
pink_fan_flower
pink_flower_block
plain_tower_summoner
purpur_summoner
radiate_dirt
radiate_stone
radiate_stonebrick
raining_summoner
red_flower_block
red_gem_ore
red_lantern
red_patterned_stonebrick
red_spider_lily
red_stonebrick
rice_crop
rosemary
rotten_flesh_block
russet_grass
scale_block
small_stone_block_entity
smooth_amethyst_block
snow_brick_block
snow_flower
snow_lotus
solidified_lava_block
soul_soil_diamond_ore
soul_summoner
soybean_crop
spark_flower
spell_flower
star_flower
steel_block
stick_flower
stone_heap
stone_road
stream_ore
sunny_summoner
sweet_berries_block
thin_rope_block
thyme
uranium_block
uranium_ore
Expand Down
1 change: 1 addition & 0 deletions list/creative_tabs.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
decisland_accessories_tab
decisland_blocks_tab
decisland_crops_tab
decisland_foods_tab
decisland_masks_tab
Expand Down
3 changes: 3 additions & 0 deletions list/entities.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ copper_dart
coral_dart
deep_energy
diamond_dart
elf_of_leaves
emerald_dart
energy_ball
energy_ray
Expand All @@ -32,6 +33,7 @@ iron_dart
jellyfish_by_jellyfish_staff
lapis_bullet
lava_dart
leaves_golem
mind_controller
muddy_ball
netherite_dart
Expand Down Expand Up @@ -59,3 +61,4 @@ wave_energy
winter_energy
wither_cloud
wood_dart
zombie_warrior
Loading
Loading